[Haskell-cafe] pattern match failure as control structure

Dan Mead d.w.mead at gmail.com
Tue Nov 10 05:16:44 EST 2009


hey all,  is there something special about pattern match exceptions?



i'm attempting to catch pattern match failures to use as control for a
production system.


so i want to be able to do something like

catch (head [])   (\e -> print "that theres pattern fail!" )


any suggestions?


More information about the Haskell-Cafe mailing list