Closed isovector closed 5 years ago
This PR represents the work @shlevy and I did during BayHac. It adds typeclasses to represent categorical {co,contra,in}-variant functors for effects, giving us common functions to map over effects.
For example,
eg :: Eff '[Writer String] () eg = effmap show $ tell True
Instances are provided for all effects which have meaningful type parameters.
This PR represents the work @shlevy and I did during BayHac. It adds typeclasses to represent categorical {co,contra,in}-variant functors for effects, giving us common functions to map over effects.
For example,
Instances are provided for all effects which have meaningful type parameters.