tonymorris/fp-course

Missing functor import in src/Course/Monad.hs

halvorgb opened this issue · 1 comments

The (>>=) excercise (https://github.com/tonymorris/course/blob/master/src/Course/Monad.hs#L143-L155) tells you to use <$>, but it is Course.Functor is not imported.
Also, the excercise already has a correct implementation using flip - this is different from every other excercise I've done which have errors with TODO messages.

Patch for import fix.

diff --git a/src/Course/Monad.hs b/src/Course/Monad.hs
index c45c471..cc71ed8 100644
--- a/src/Course/Monad.hs
+++ b/src/Course/Monad.hs
@@ -10,6 +10,7 @@ module Course.Monad(
 , (<=<)
 ) where

+import Course.Functor
 import Course.Applicative hiding ((<*>))
 import Course.Core
 import Course.Id

I see that I'm in the wrong repository - I'm submitting this issue in NICTA/course.