Revision as of 01:10, 3 October 2009
Hask is the name usually given to the category having Haskell types as objects and Haskell functions between them as morphisms.
A type-constructor that is an instance of the Functor class is an endofunctor on Hask.
The seq problemThe right identity law fails in Hask if we distinguish values which can be distinguished by
ghci> (undefined :: Int -> Int) `seq` () * Exception: Prelude.undefined ghci> (id . undefined :: Int -> Int) `seq` () ()
This article is a stub. You can help by expanding it.