Ticket #101 (new task)
Class Aliases
| Reported by: | guest | Owned by: | none |
|---|---|---|---|
| Milestone: | Keywords: | class alias, class aliases | |
| Cc: | Section: | ||
| State: |
Description
See http://repetae.net/john/recent/out/classalias.html
class alias Num a = (Additive a, AdditiveNegation a,
Multiplicative a, FromInteger a) where
one = fromInteger 1
zero = fromInteger 0
negate x = zero - x
Change History
Note: See
TracTickets for help on using
tickets.
