We can writeinstance Bounded a => Bounded (Maybe a) whereminBound = NothingmaxBound = Just maxBoundinstance (Bounded a, Bounded b) => Bounded (Either a b) whereminBound = Left minBoundmaxBound = Right maxBoundWhile Bounded intentionally does not have an Ord superclass, I think it's worth mentioning that these are the instances that arise naturally from the Ord instances for the types in question.
_______________________________________________
Libraries mailing list
Libraries@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries