Module

Psa.Types

#ErrorCode

#ModuleName

#Filename

#StatVerbosity

#PsaOptions

type PsaOptions = { ansi :: Boolean, censorCodes :: Set ErrorCode, censorLib :: Boolean, censorSrc :: Boolean, censorWarnings :: Boolean, cwd :: String, filterCodes :: Set ErrorCode, libDirs :: Array String, statVerbosity :: StatVerbosity, strict :: Boolean }

#PsaResult

type PsaResult = { errors :: Array PsaError, warnings :: Array PsaError }

#PsaError

type PsaError = { errorCode :: ErrorCode, errorLink :: String, filename :: Maybe Filename, message :: String, moduleName :: Maybe ModuleName, position :: Maybe Position, suggestion :: Maybe Suggestion }

#PsaAnnotedError

type PsaAnnotedError = { error :: PsaError, message :: String, path :: PsaPath, position :: Maybe Position, source :: Maybe Lines }

#PsaPath

data PsaPath

Relative files paths from the cwd, tagged as either being part of the source files or library files of a project. The Unknown variant exists because some psc errors are inter-module and aren't reported with a canonical file.

Constructors

Instances

#Position

type Position = { endColumn :: Int, endLine :: Int, startColumn :: Int, startLine :: Int }

#Suggestion

type Suggestion = { replaceRange :: Maybe Position, replacement :: String }

#Lines

#encodePsaResult

#encodePsaError

Modules