Include instance signatures on instance methods that are set as exercises.

Previously, it was done using comments in the hands-on course to guide through the type. Now, it is machine-checked.

Unfortunately, a difference between 7.6.3 and 7.8.2 means that redundant parentheses cannot be used for some type constructors in types. This is demonstrated by the source file below.

Issue #84

----

{-# LANGUAGE InstanceSigs #-}

{-

The commented lines in the signature below break the 7.6 compiler.

      Method signature does not match class; it should be
      fmap' :: forall a b. (a -> b) -> (t -> a) -> t -> b

The parentheses are placed redundantly on the
type constructor application -- left-associative.

* Fails using GHC 7.6.3
* Works fine using GHC 7.8.2

-}

class Functor' f where
  fmap' ::
    (a -> b)
    -> f a
    -> f b

instance Functor' ((->) t) where
  fmap' ::
    (a -> b)

--  -> (((->) t) a)
--     -> ((->) t a)

--  -> (((->) t) b)
    -> ((->) t b)
  fmap' =
    (.)
Merge branch 'master' of github.com:NICTA/course
Added tests for Logger instances of Apply and Applicative
Merge pull request #86 from ajcoppa/added-test-for-logger-apply-and-applicative

Added tests for Logger instances of Apply and Applicative
Parser progress
Merge branch 'master' into progress

Fixed Conflicts:
	src/Course/Applicative.hs
	src/Course/Apply.hs
	src/Course/Bind.hs
	src/Course/Comonad.hs
	src/Course/Extend.hs