Skip to content

Commit

Permalink
finished exercises on Course.Comonad
Browse files Browse the repository at this point in the history
  • Loading branch information
miladz68 committed Dec 27, 2016
1 parent 1dfba10 commit 19a8e58
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Course/Comonad.hs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ instance Comonad Id where
copure ::
Id a
-> a
copure =
error "todo: Course.Comonad copure#instance Id"
copure (Id a) = a

-- | Witness that all things with (<<=) and copure also have (<$>).
--
Expand All @@ -44,5 +43,4 @@ instance Comonad Id where
(a -> b)
-> f a
-> f b
(<$>) =
error "todo: Course.Comonad#(<$>)"
(<$>) f = (<<=) (f.copure)

0 comments on commit 19a8e58

Please sign in to comment.