Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Overloaded type-level natural numbers.
Documentation
A way to overload type level Nat
s.
A number type-literal 42
is desugared to
FromNat
42
Enabled with:
{-# OPTIONS -fplugin=Overloaded -fplugin-opt=Overloaded:TypeNats #-}
Instances
FromNatC Nat Source # | |
Defined in Overloaded.TypeNats | |
FromNatC Nat Source # | |
Defined in Overloaded.TypeNats | |
FromNatC Bin Source # | |
Defined in Overloaded.TypeNats | |
FromNatC BinP Source # | |
Defined in Overloaded.TypeNats |