I'm looking at Sandy Maguire's _Thinking With Types_ and he's talking about the cardinality of types. He introduces the product type_______________________________________________data MixedFraction a = Fraction
{ mixedBit :: Word8
, numerator :: a
, denominator :: a
}How is this a type for holding mixed fractions such as 5-1/2?
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.