data Simple = Myint Int | Mydouble Double | Mystring String deriving (Eq, Show)
data Complex = Struct String [(String,Simple)] deriving (Eq, Show)

...

Haskell On Function to check the data ...

by headcrab.myopenid.com, December 08, 2009 22:19

Have written this variation...

25c35e90595b236da0fee29edb70db7f Talk
class IsComplex a where
    isComplex :: a -> Bool

...

Haskell Function to check the data ...

by headcrab.myopenid.com, December 08, 2009 18:03, 2 refactorings, tagged with types, polymorphism

For two given data types, S...

25c35e90595b236da0fee29edb70db7f Talk