/haskell-monads-exploration

Exploring State, Reader, Writer, RWS monads in Haskell

Primary LanguageHaskellBoost Software License 1.0BSL-1.0

Haskell Monads exploration

This repo contains exploration of State, Reader, Writer and RWS monads in Haskell, due to collaboration on the university.

What's interesting here?

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.

File naming convention

<monad>-<example>.hs is a file where I explore monad <monad> by modeling <example>

Dependencies

Only lenses, why there are not part of standard I dunno.

$ sudo pacman -S ghc ghc-libs ghc-static ghc-lens