Debian Codegraph @

src/Effect/Monad/IO/Instances.agda

raw
1 ------------------------------------------------------------------------
2 -- The Agda standard library
3 --
4 -- Typeclass instances for the IO monad
5 ------------------------------------------------------------------------
6
7 {-# OPTIONS --cubical-compatible --guardedness #-}
8
9 module Effect.Monad.IO.Instances where
10
11 open import Effect.Monad.IO
12
13 instance
14 ioMonadIO = monadIO
15 stateTMonadIO = λ {s} {S} {M} {{m}} {{mio}} → liftStateT {s} {S} {M} m mio
16 readerTMonadIO = λ {r} {R} {M} {{mio}} → liftReaderT {r} {R} {M} mio
17 writerTMonadIO = λ {f} {w} {W} {M} {{m}} {{mio}} → liftWriterT {f} {w} {W} {M} m mio