[Haskell-cafe] Pointless functors

Martijn van Steenbergen martijn at van.steenbergen.nl
Fri Mar 13 11:11:57 EDT 2009


Eugene Kirpichov wrote:
> 'An arbitrary element' means 'undefined will suffice'
> 
> point x = fmap (const x) undefined

Prelude> fmap (const True) undefined :: [Bool]
*** Exception: Prelude.undefined

Or is that not what you mean?

Martijn.



More information about the Haskell-Cafe mailing list