Safe Haskell | None |
---|---|
Language | Haskell98 |
This module contains functions for cleaning up types before they are rendered, e.g. in error messages or annoations, and also some PPrint instances that rely upon tidying.
Synopsis
- tidySpecType :: Tidy -> SpecType -> SpecType
- tidySymbol :: Symbol -> Symbol
- panicError :: Error -> a
- class Result a where
- errorToUserError :: Error -> UserError
- cinfoError :: Cinfo -> Error
Tidying functions
tidySpecType :: Tidy -> SpecType -> SpecType #
tidySymbol :: Symbol -> Symbol #
Panic and Exit
panicError :: Error -> a #
This function is put in this module as it depends on the Exception instance, which depends on the PPrint instance, which depends on tidySpecType.
Show an Error, then crash
Final result
Converting Results To Answers -------------------------------------
Instances
Result SourceError # | |
Defined in Language.Haskell.Liquid.GHC.Interface result :: SourceError -> FixResult UserError # | |
Result UserError # | |
Defined in Language.Haskell.Liquid.UX.Tidy | |
Result Error # | |
Defined in Language.Haskell.Liquid.UX.Tidy | |
Result [Error] # | |
Defined in Language.Haskell.Liquid.UX.Tidy | |
Result (FixResult Cinfo) # | |
Defined in Language.Haskell.Liquid.UX.Tidy |
Error to UserError
errorToUserError :: Error -> UserError #
MOVE TO TYPES
cinfoError :: Cinfo -> Error #
Orphan instances
Show Error # | |
Exception Error # | |
toException :: Error -> SomeException # fromException :: SomeException -> Maybe Error # displayException :: Error -> String # | |
PPrint Error # | |
pprintTidy :: Tidy -> Error -> Doc # pprintPrec :: Int -> Tidy -> Error -> Doc # | |
Exception [Error] # | |
toException :: [Error] -> SomeException # fromException :: SomeException -> Maybe [Error] # displayException :: [Error] -> String # | |
PPrint (CtxError Doc) # | Pretty Printing Error Messages -------------------------------------------- Need to put |
PPrint (CtxError SpecType) # | |