liquidhaskell-0.8.0.2: Liquid Types for Haskell

Safe HaskellNone
LanguageHaskell98

Language.Haskell.Liquid.UX.Tidy

Contents

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 #

Tidyness tests

isTmpSymbol :: Symbol -> Bool Source #

Panic and Exit

panicError :: Error -> a Source #

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 Source #

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

Minimal complete definition

result

Methods

result :: a -> FixResult UserError Source #

Instances

Result UserError Source # 

Methods

result :: UserError -> FixResult UserError Source #

Result Error Source # 

Methods

result :: Error -> FixResult UserError Source #

Result [Error] Source # 

Methods

result :: [Error] -> FixResult UserError Source #

Result (FixResult Cinfo) Source # 

Methods

result :: FixResult Cinfo -> FixResult UserError Source #

Error to UserError

MOVE TO TYPES

Orphan instances

Show Error Source # 

Methods

showsPrec :: Int -> Error -> ShowS #

show :: Error -> String #

showList :: [Error] -> ShowS #

Exception Error Source # 
PPrint Error Source # 

Methods

pprintTidy :: Tidy -> Error -> Doc #

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

Exception [Error] Source # 
PPrint (CtxError Doc) Source #

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.

Methods

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

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

PPrint (CtxError SpecType) Source # 

Methods

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

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