Ticket #101 (new task)

Opened 7 years ago

Last modified 7 years ago

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

Changed 7 years ago by ijones

  • owner changed from ijones to none
  • component changed from HaskellPrime to Proposal
Note: See TracTickets for help on using tickets.