[Haskell-cafe] Why isn't pattern matching lazy by default?

C.M.Brown cmb21 at kent.ac.uk
Wed Sep 19 18:02:49 EDT 2007


Hi Isaac

>
> or
>
> f x = let
>           g (Just x) = x
>           g Nothing = error "Nothing"
>        in g x
>

That's interesting, thanks!


Chris.



More information about the Haskell-Cafe mailing list