FixedPoint-simple-0.6.1: Fixed point, large word, and large int numerical representations (types and common class instances)
Data.FixedPoint.TH
Synopsis
mkWord :: Int -> DecsQ Source
$(mkWord X) Makes a type alias named WordX for a word of X bits. Notice X must be a multiple of 8, Word8 must be in scope, BigWord must be in scope, and this splice will add all smaller WordY type aliases needed that aren't already in scope.
$(mkWord X)
WordX
X
Word8
BigWord
WordY
mkInt :: Int -> DecsQ Source
$(mkInt X) Makes a type alias named IntX for an int of X bits. See the requirements under mkWord for additional information.
$(mkInt X)
IntX
mkWord
mkFixedPoint :: Int -> Int -> DecsQ Source