hedgehog-1.0.2: Release with confidence.
Safe HaskellSafe
LanguageHaskell98

Hedgehog.Internal.Show

Synopsis

Documentation

type Name = String Source #

A name.

data Value Source #

Generic Haskell values. NaN and Infinity are represented as constructors. The String in the literals is the text for the literals "as is".

A chain of infix constructors means that they appeared in the input string without parentheses, i.e

1 :+: 2 :*: 3 is represented with InfixCons 1 [(":+:",2),(":*:",3)], whereas

1 :+: (2 :*: 3) is represented with InfixCons 1 [(":+:",InfixCons 2 [(":*:",3)])].

Constructors

Con Name [Value]

Data constructor

InfixCons Value [(Name, Value)]

Infix data constructor chain

Rec Name [(Name, Value)]

Record value

Tuple [Value]

Tuple

List [Value]

List

Neg Value

Negated value

Ratio Value Value

Rational

Integer String

Non-negative integer

Float String

Non-negative floating num.

Char String

Character

String String

String

Date String

01-02-2003

Time String

08:30:21

Quote String
time|2003-02-01T08:30:21Z|

Instances

Instances details
Eq Value 
Instance details

Defined in Text.Show.Value

Methods

(==) :: Value -> Value -> Bool

(/=) :: Value -> Value -> Bool

Show Value 
Instance details

Defined in Text.Show.Value

Methods

showsPrec :: Int -> Value -> ShowS

show :: Value -> String

showList :: [Value] -> ShowS

data ValueDiff Source #

Instances

Instances details
Eq ValueDiff Source # 
Instance details

Defined in Hedgehog.Internal.Show

Methods

(==) :: ValueDiff -> ValueDiff -> Bool

(/=) :: ValueDiff -> ValueDiff -> Bool

Show ValueDiff Source # 
Instance details

Defined in Hedgehog.Internal.Show

Methods

showsPrec :: Int -> ValueDiff -> ShowS

show :: ValueDiff -> String

showList :: [ValueDiff] -> ShowS

data LineDiff Source #

Constructors

LineSame String 
LineRemoved String 
LineAdded String 

Instances

Instances details
Eq LineDiff Source # 
Instance details

Defined in Hedgehog.Internal.Show

Methods

(==) :: LineDiff -> LineDiff -> Bool

(/=) :: LineDiff -> LineDiff -> Bool

Show LineDiff Source # 
Instance details

Defined in Hedgehog.Internal.Show

Methods

showsPrec :: Int -> LineDiff -> ShowS

show :: LineDiff -> String

showList :: [LineDiff] -> ShowS

mkValue :: Show a => a -> Maybe Value Source #

showPretty :: Show a => a -> String Source #

renderValue :: Value -> String Source #