liquidhaskell-0.8.10.1: Liquid Types for Haskell
Safe HaskellNone
LanguageHaskell98

Language.Haskell.Liquid.UX.Tidy

Description

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

Tidying functions

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

class Result a where #

Converting Results To Answers -------------------------------------

Methods

result :: a -> FixResult UserError #

Instances

Instances details
Result SourceError # 
Instance details

Defined in Language.Haskell.Liquid.GHC.Interface

Methods

result :: SourceError -> FixResult UserError #

Result UserError # 
Instance details

Defined in Language.Haskell.Liquid.UX.Tidy

Methods

result :: UserError -> FixResult UserError #

Result Error # 
Instance details

Defined in Language.Haskell.Liquid.UX.Tidy

Methods

result :: Error -> FixResult UserError #

Result [Error] # 
Instance details

Defined in Language.Haskell.Liquid.UX.Tidy

Methods

result :: [Error] -> FixResult UserError #

Result (FixResult Cinfo) # 
Instance details

Defined in Language.Haskell.Liquid.UX.Tidy

Methods

result :: FixResult Cinfo -> FixResult UserError #

Error to UserError

MOVE TO TYPES

Orphan instances

Show Error # 
Instance details

Methods

showsPrec :: Int -> Error -> ShowS #

show :: Error -> String #

showList :: [Error] -> ShowS #

Exception Error # 
Instance details

PPrint Error # 
Instance details

Methods

pprintTidy :: Tidy -> Error -> Doc #

pprintPrec :: Int -> Tidy -> Error -> Doc #

Exception [Error] # 
Instance details

PPrint (CtxError Doc) #

Pretty Printing Error Messages --------------------------------------------

Need to put PPrint Error instance here (instead of in Types), as it depends on PPrint SpecTypes, which lives in this module.

Instance details

Methods

pprintTidy :: Tidy -> CtxError Doc -> Doc #

pprintPrec :: Int -> Tidy -> CtxError Doc -> Doc #

PPrint (CtxError SpecType) # 
Instance details

Methods

pprintTidy :: Tidy -> CtxError SpecType -> Doc #

pprintPrec :: Int -> Tidy -> CtxError SpecType -> Doc #