Haskell examples from Learn You a Haskell for Great Good!
In order to execute the following samples the Haskell platform needs to be installed.. In order to execute the code from the command line you need to run the following:
ghci
:l myfunctions.hs -- to load the module
:r -- reloads all modules