Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Overloaded natural numbers.
Synopsis
- class FromNatural a where
- fromNatural :: Natural -> a
Documentation
class FromNatural a where Source #
fromNatural :: Natural -> a Source #
Instances
FromNatural Integer Source # | |
Defined in Overloaded.Naturals fromNatural :: Natural -> Integer Source # | |
FromNatural Natural Source # | |
Defined in Overloaded.Naturals fromNatural :: Natural -> Natural Source # |