Skip to content
Simple exercises in Haskell.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Coding Challenges in Haskell

What's going on here:

I am solving short exercises in Haskell. My most recent snippets are in the Examples folder.

Typical code snippet from Oscar.hs:
screenshot of Oscar.hs code

Typical output:
screenshot of Oscar.hs output


"Thinking functionally" in the beginning is an extension of GNU/BASh tools and pipes. In Haskell, dollar sign ($) is a pipe flowing from right to left and dot (.) is a pipe for just verbs.

Compared to Javascript, Haskell is more internally consistant with its own rules. In that respect, Haskell is like 11th grade Physics and Javascript is like 10th grade chemistry.

Compared to learning Elm language, the Haskell tutorials are less restricted to the DOM and web development so they unleash a lot of beauty. For example, recursive programming is suddenly useful.

I can read type notation half of the time. Crucially, I often cannot read it in the compiler error messages. And can rarely write it. One trick for writing it is to play around in GHCi and then let GHCi tell me the types, using (:t).


  1. The free, full sized book Learn You a Haskell with awesome illustrations
  2. Instructions for sandboxed installation using Stacker
  3. Chris Allen's Resource List
  4. Hundreds of unannotated examples. Wide-ranging.
You can’t perform that action at this time.