hsExprTest-3.6.5: Expression Testing
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Journal

Description

A journal can be used (when running under the ExprTest service) to set points and affect evaluation environment.

Synopsis

Journal Sinks

data JournalSink #

A journal is either NullSink (journalling does nothing) or is a sing created with getJournalSinkFd.

Constructors

NullSink 

getJournalSinkFd :: Fd -> IO JournalSink #

Get a JournalSink from a file descriptor. Journalling to aprropriate file descriptor provided by ExprTest service allows you to control evaluation environment and assing points.

class ToJSON e => JournalMsg e where #

Minimal complete definition

Nothing

Methods

journal :: JournalSink -> e -> IO () #

Submit an entry to journal.

Instances

Instances details
JournalMsg Points # 
Instance details

Defined in Test.Journal

Methods

journal :: JournalSink -> Points -> IO () #

Journal Entries

data Points #

Used for assigning points.

Constructors

Points 

Fields

Instances

Instances details
FromJSON Points # 
Instance details

Defined in Test.Journal

Methods

parseJSON :: Value -> Parser Points

parseJSONList :: Value -> Parser [Points]

ToJSON Points # 
Instance details

Defined in Test.Journal

Methods

toJSON :: Points -> Value

toEncoding :: Points -> Encoding

toJSONList :: [Points] -> Value

toEncodingList :: [Points] -> Encoding

Show Points # 
Instance details

Defined in Test.Journal

Methods

showsPrec :: Int -> Points -> ShowS

show :: Points -> String

showList :: [Points] -> ShowS

Eq Points # 
Instance details

Defined in Test.Journal

Methods

(==) :: Points -> Points -> Bool

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

JournalMsg Points # 
Instance details

Defined in Test.Journal

Methods

journal :: JournalSink -> Points -> IO () #

Details