[Haskell-cafe] Newbie question on Haskell type

Ben Rudiak-Gould Benjamin.Rudiak-Gould at cl.cam.ac.uk
Fri Oct 14 05:04:11 EDT 2005

Cale Gibbard wrote:
> As an example of this sort of thing, I know that there are only 4
> values of type a -> Bool (without the class context). They are the
> constant functions (\x -> True), (\x -> False), and two kinds of
> failure (\x -> _|_), and _|_, where _|_ is pronounced "bottom" and
> represents something along the lines of nontermination (aborting the
> program also counts).

Don't forget (\x -> x `seq` True) and (\x -> x `seq` False).

-- Ben

More information about the Haskell-Cafe mailing list