Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class HasErrorCode a where Source #
Assigns an error-code to data-constructors (values) of error types.
Note, when implementing this method you're only supposed to look at
the outermost constructor (whnf) of the
a
value to decide for the error-code.
Instances
A wrapper to Natural so as to override the pretty instance of Natural with zero padding
Instances
Enum ErrorCode Source # | |
Defined in ErrorCode succ :: ErrorCode -> ErrorCode Source # pred :: ErrorCode -> ErrorCode Source # toEnum :: Int -> ErrorCode Source # fromEnum :: ErrorCode -> Int Source # enumFrom :: ErrorCode -> [ ErrorCode ] Source # enumFromThen :: ErrorCode -> ErrorCode -> [ ErrorCode ] Source # enumFromTo :: ErrorCode -> ErrorCode -> [ ErrorCode ] Source # enumFromThenTo :: ErrorCode -> ErrorCode -> ErrorCode -> [ ErrorCode ] Source # |
|
Eq ErrorCode Source # | |
Ord ErrorCode Source # | |
Defined in ErrorCode |
|
Pretty ErrorCode Source # | |