FixedPoint-simple-0.6.1: Fixed point, large word, and large int numerical representations (types and common class instances)

Safe HaskellNone
LanguageHaskell98

Data.FixedPoint.TH

Synopsis

Documentation

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.

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.