ekmett / pointed

pointed and copointed data
Other
23 stars 9 forks source link

Missing Haddocks #5

Open ekmett opened 11 years ago

ekmett commented 11 years ago

We need haddocks for this package.

In addition to the non-existent laws, (Every law you can classically state is a free theorem) we need the extra requirement that if the type is Applicative then pure = point = return, and also if it is a Comonad then extract = copoint.

This ensures consistency of the hierarchy and avoids the worst abuses.