Problem I’m a very new Haskell programmer, and I’ve written the following code for loading TSV files. I think it […]
Tag: monads
Implement State Monad transformer in Haskell from scratch
Problem When I was studying Monad Transformer, I decided to create StateT s m a from scratch with instances for […]
Monadic transformation on a list, done in three ways
Problem I am working my way through the Haskell Book and ran into the exercises at the end of the […]
Type Validation using State Monad
Problem I am attempting to build a compiler for a stack-based (or concatenative) programming language in Haskell. I’ve done fine […]
How can I use the State monad effectively in Haskell?
Problem I have written a simple fibonacci function in Haskell that uses the State monad to save solutions to overlapping […]
Bubblesort using Writer monad
Problem I still consider myself a newbie to functional programming, and I still have some trouble wrapping my head around […]
Haskell – saving content of HTTP request in selected file
Problem As a Haskell beginner I’m currently playing around the IO monad and prepared simple program which gets from the […]
Probably unneeded returns
Problem This is my first “useful” Haskell program. It’s invoked with filenames as arguments where the last filename is the […]
Hangman game in Haskell, written using a state monad
Problem I recently made a simple hangman game in Haskell but soon wanted to explore the state monad, since it […]
Haskell/Yesod – Butchering use of MaybeT
Problem The following is some code that is used to provide the frontend with certain parameters when rendering a form. […]