basement-0.0.1: Foundation scrap box of array & string

LicenseBSD-style
MaintainerFoundation
Safe HaskellNone
LanguageHaskell2010

Basement.Compat.NumLiteral

Description

Literal support for Integral and Fractional

Synopsis

Documentation

class Integral a where Source #

Integral Literal support

e.g. 123 :: Integer 123 :: Word8

Minimal complete definition

fromInteger

Methods

fromInteger :: Integer -> a Source #

Instances

Integral Double Source # 
Integral Float Source # 
Integral Int Source # 
Integral Int8 Source # 
Integral Int16 Source # 
Integral Int32 Source # 
Integral Int64 Source # 
Integral Integer Source # 
Integral Word Source # 
Integral Word8 Source # 
Integral Word16 Source # 
Integral Word32 Source # 
Integral Word64 Source # 
Integral Natural Source # 
Integral COff Source # 
Integral CInt Source # 
Integral CFloat Source # 
Integral CDouble Source # 
Integral CSize Source # 
Integral CUIntPtr Source # 
Integral Word128 Source # 
Integral Word256 Source # 
Integral (CountOf ty) Source # 
Integral (Offset ty) Source # 

class Fractional a where Source #

Fractional Literal support

e.g. 1.2 :: Double 0.03 :: Float

Minimal complete definition

fromRational

Methods

fromRational :: Rational -> a Source #