Safe Haskell | None |
---|
Test.IOTasks.OutputPattern
Synopsis
- data PatternKind
- data OutputPattern (k :: PatternKind)
- wildcard :: forall (k :: PatternKind). OutputPattern k
- nonEmptyWildcard :: forall (k :: PatternKind). OutputPattern k
- text :: forall (k :: PatternKind). String -> OutputPattern k
- resultOf :: forall a (tk :: TermKind). (Typeable a, Show a) => Term tk a -> OutputPattern 'SpecificationP
- decoratedResultOf :: forall a (tk :: TermKind). (Typeable a, Show a) => Term tk a -> OutputPattern 'SpecificationP
- valueTerms :: forall (k :: PatternKind). OutputPattern k -> [SomeTermK]
- showPattern :: forall (k :: PatternKind). OutputPattern k -> String
- showPatternSimple :: forall (k :: PatternKind). OutputPattern k -> String
- evalPattern :: forall (k :: PatternKind). ValueMap -> OutputPattern k -> (OverflowWarning, OutputPattern 'TraceP)
- (>:) :: OutputPattern 'TraceP -> OutputPattern 'TraceP -> Bool
Documentation
data PatternKind Source #
Constructors
SpecificationP | |
TraceP |
data OutputPattern (k :: PatternKind) Source #
Instances
wildcard :: forall (k :: PatternKind). OutputPattern k Source #
nonEmptyWildcard :: forall (k :: PatternKind). OutputPattern k Source #
text :: forall (k :: PatternKind). String -> OutputPattern k Source #
resultOf :: forall a (tk :: TermKind). (Typeable a, Show a) => Term tk a -> OutputPattern 'SpecificationP Source #
decoratedResultOf :: forall a (tk :: TermKind). (Typeable a, Show a) => Term tk a -> OutputPattern 'SpecificationP Source #
Mandatory decoration of some term's result
Conceptually we have
writeOutput [decoratedResultOf t] = writeOutput [nonEmptyWildcard <> resultOf t <> wildcard, wildcard <> resultOf t <> nonEmptyWildcard]
but matching failure will produce a specialized message
valueTerms :: forall (k :: PatternKind). OutputPattern k -> [SomeTermK] Source #
showPattern :: forall (k :: PatternKind). OutputPattern k -> String Source #
showPatternSimple :: forall (k :: PatternKind). OutputPattern k -> String Source #
evalPattern :: forall (k :: PatternKind). ValueMap -> OutputPattern k -> (OverflowWarning, OutputPattern 'TraceP) Source #
(>:) :: OutputPattern 'TraceP -> OutputPattern 'TraceP -> Bool Source #
coverage relation on patterns