On 27/06/2012, at 12:51 PM, John Lato wrote: > > data Tree a = Leaf a | Branch (Tree a) ( Tree a) > deriving (Foldable, Show)
While I am familiar with deriving (Show), I am not familiar with deriving (Foldable), which looks rather useful. http://www.haskell.org/ghc/docs/7.4.2/html/users_guide/deriving.html just says "With -XDeriveFoldable, you can derive instances of the class Foldable, defined in Data.Foldable." but it provides no details. Would you care to explain more about deriving (Foldable)? _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
