This repo contains exploration of State
, Reader
, Writer
and RWS
monads in Haskell, due to collaboration on the university.
Due to development of Stacky, my example for ReadWriteState
Monad is simple concatenative stack-based language bytecode interpreter (+ compiler). You can find it in rws-stack-based-language.hs. Additionaly it uses lenses.
<monad>-<example>.hs
is a file where I explore monad <monad>
by modeling <example>
Only lenses, why there are not part of standard I dunno.
$ sudo pacman -S ghc ghc-libs ghc-static ghc-lens