| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Agda.Interaction.ExitCode
Synopsis
- data AgdaError
- agdaErrorToInt :: AgdaError -> Int
- agdaErrorFromInt :: Int -> Maybe AgdaError
- exitSuccess :: IO a
- exitAgdaWith :: AgdaError -> IO ()
Documentation
Constructors
| UnknownError | 1 |
| TCMError | 42 |
| OptionError | 71 |
| ImpossibleError | 154 |
Instances
| Bounded AgdaError Source # | |
| Enum AgdaError Source # | |
Defined in Agda.Interaction.ExitCode Methods succ :: AgdaError -> AgdaError # pred :: AgdaError -> AgdaError # fromEnum :: AgdaError -> Int # enumFrom :: AgdaError -> [AgdaError] # enumFromThen :: AgdaError -> AgdaError -> [AgdaError] # enumFromTo :: AgdaError -> AgdaError -> [AgdaError] # enumFromThenTo :: AgdaError -> AgdaError -> AgdaError -> [AgdaError] # | |
| Eq AgdaError Source # | |
| Show AgdaError Source # | |
agdaErrorToInt :: AgdaError -> Int Source #
Return the error corresponding to an exit code from the Agda process
exitSuccess :: IO a #
The computation exitSuccess is equivalent to
exitWith ExitSuccess, It terminates the program
successfully.
exitAgdaWith :: AgdaError -> IO () Source #