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