License | BSD-style |
---|---|
Maintainer | Foundation |
Safe Haskell | None |
Language | Haskell2010 |
Basement.Compat.NumLiteral
Description
Literal support for Integral and Fractional
- class Integral a where
- class Fractional a where
- class HasNegation a where
Documentation
Integral Literal support
e.g. 123 :: Integer 123 :: Word8
Minimal complete definition
Methods
fromInteger :: Integer -> a #
Instances
class Fractional a where #
Fractional Literal support
e.g. 1.2 :: Double 0.03 :: Float
Minimal complete definition
Methods
fromRational :: Rational -> a #
Instances
class HasNegation a where #
Negation support
e.g. -(f x)
Minimal complete definition
Instances