| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Control.Coeffect.Coreader
- data IxCoreader s a = IxR {
- runCoreader :: (a, Set s)
- ask :: Var v -> IxCoreader `[v :-> a]` b -> a
Documentation
data IxCoreader s a Source
Provides 'reader monad'-like behaviour but as a comonad, using an indexed version of the product comonad
Constructors
| IxR | |
Fields
| |
Instances
| CoeffectZip [*] IxCoreader | |
| Coeffect [*] IxCoreader | |
| type Unit [*] IxCoreader = [] * | |
| type Meet [*] IxCoreader s t = Union * s t | |
| type CzipInv [*] IxCoreader s t = Unionable s t | |
| type Inv [*] IxCoreader s t = (Unionable s t, Split s t (Union * s t)) | |
| type Plus [*] IxCoreader s t = Union * s t |