On Wed, 14 Nov 2007, Jules Bean wrote: > Henning Thielemann wrote: > > > > No problem, write a function like 'maybe' to inspect the data. > > > > Instead of 'f m' with > > f :: Maybe T -> S > > f (Just x) = g x > > f Nothing = h > > Yes. It is a problem. > > Do you write all your code using higher-order functions, never matching > explicitly on constructors? I don't.
I do it more and more, because it let me switch the underlying data structure more easily. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe