xddq / why-monads-make-lives-easier

short code snipped created after watching "don't fear the monad"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quickstart

  • Code for the blog post here
  • Download haskell. Just follow this link here. I did not have it on my new machine and I was up and running in 2 minutes.
  • Load the test file into the haskell REPL.
    • $ ghci
    • $ :l Test.hs
  • Try out the "shoveIt" and "shoveIt2" functions and check the result.
    • $ shoveIt 2
    • $ shoveIt 3
    • $ shoveIt2 5
    • $ shoveIt2 6

About

short code snipped created after watching "don't fear the monad"


Languages

Language:Haskell 100.0%