Skip to content

Commit

Permalink
Fix issue #118
Browse files Browse the repository at this point in the history
  • Loading branch information
tonymorris committed Feb 14, 2015
1 parent d6cf38a commit d63e288
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ After this, the following progression of modules is recommended:
* `Course.Apply`
* `Course.Applicative`
* `Course.Bind`
* `Course.Monad`
* `Course.Monad` (please see [this issue](https://github.com/NICTA/course/issues/118))
* `Course.FileIO`
* `Course.State`
* `Course.StateT`
Expand Down
12 changes: 12 additions & 0 deletions src/Course/Monad.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ import Course.List
import Course.Optional
import qualified Prelude as P

{-
The only exercise here is a thinking one. The understanding that the Monad
type-class is the coming together of its sub type-classes
(`Applicative` and `Bind`). There are no coding exercises here. The purpose of
this module is simply to provide a definition for the word "monad" and that
definition is built on previous exercises.
The monad type-class provides no additional methods to `Applicative` and `Bind`.
-}

class (Applicative f, Bind f) => Monad f where

instance Monad Id where
Expand Down

0 comments on commit d63e288

Please sign in to comment.