What on Earth is ghc talking about? O:-) (overlapping paterns)
emptyBT = EmptyTreedepth emptyBT = 0 depth (NodeBT _ left right) = max (1 + depth left) (1 + depth right)
GHC is always right...
Your first clause is GENERIC, the pattern is a variable, not a constant.Replace emptyBT by EmptyTree. Jerzy Karczmarczuk
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe