freer-simple/tests/Tests
Will Fancher 86a8212cd8 Added Members Constraint
The Members type family (closed) takes two type-level lists, m and r,
as parameters. m contains the effect labels which should be members of
r. The resulting type is a constraint requiring that all elements of m
be members of r.

This simplifies constraints that require multiple members of the same
effect list. For example.

ioState :: (Member IO r, Member (State Int) r) => Eff r ()

becomes

ioState :: Members '[IO, State Int] r => Eff r ()

Furthermore, it allows apps to easily define their typical effect
constraints alongside the typical runtime effect.

type AppEffs = '[State Int, Writer String, IO]
type AppConstraint r = Members AppEffs r
type RunApp = Eff AppEffs
2016-02-07 06:37:45 -05:00
..
Common.hs release(0.2.1.0): add test suite 2015-09-13 00:00:16 -05:00
Exception.hs Added Members Constraint 2016-02-07 06:37:45 -05:00
Fresh.hs style(tests): address hlint suggestions 2015-09-13 00:17:28 -05:00
NonDetEff.hs release(0.2.1.0): add test suite 2015-09-13 00:00:16 -05:00
Reader.hs release(0.2.1.0): add test suite 2015-09-13 00:00:16 -05:00
State.hs style(tests): address hlint suggestions 2015-09-13 00:17:28 -05:00
StateRW.hs style(tests): address hlint suggestions 2015-09-13 00:17:28 -05:00