Ticket #98 (new task)
Restricted Data Types Now
| Reported by: | guest | Owned by: | none |
|---|---|---|---|
| Milestone: | Keywords: | restricted data types | |
| Cc: | Section: | ||
| State: |
Description
We should adopt Oleg's "Restricted Data Types Now" approach for simpler cases, like Functor, that don't involve creating new type classes.
class Functor f a b where
fmap :: (a -> b) -> f a -> f b
instance (Ord a, Ord b) => Functor Data.Set.Set a b where
...
Change History
Note: See
TracTickets for help on using
tickets.
