pretty-ghci-0.2.0.0: Functionality for beautifying GHCi

Safe HaskellNone
LanguageHaskell2010

Text.PrettyPrint.GHCi.Value.Parser

Synopsis

Documentation

parseValue :: String -> Maybe Value Source #

Parse a value from a String. Returns Nothing for inputs that could not be parsed.

type Id = String Source #

A conid or varid (possibly ending in hashes, to account for MagicHash)

type Op = String Source #

A conop or varop

data Value Source #

A very simple representation of the output of Show

Constructors

Prefix Id [Value] 
Infix Value (NonEmpty (Op, Value)) 
Record Id (NonEmpty (Id, Value)) 
Tuple [Value] 
List [Value] 
Num String

integer or floating point

Char String

character

Str String

string

Paren Value 
Instances
Show Value Source # 
Instance details

Defined in Text.PrettyPrint.GHCi.Value.Parser

Methods

showsPrec :: Int -> Value -> ShowS #

show :: Value -> String #

showList :: [Value] -> ShowS #