Skip to content

Instantly share code, notes, and snippets.

View kylc's full-sized avatar

Kyle Cesare kylc

  • Boulder, CO, USA
  • 03:38 (UTC -07:00)
View GitHub Profile
@chrisdone
chrisdone / monadic.hs
Created August 29, 2011 22:23
A demonstration of type class design for monadic applications.
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
import Control.Monad
import Control.Monad.Identity
import Control.Monad.Writer
import Control.Monad.State
import Control.Arrow
import Data.Maybe