ivory-0.1.0.0: Safe embedded C programming.
Ivory.Language.IIntegral
Synopsis
class (IvoryExpr a, Num a) => IvoryIntegral a whereSource
Integral, without the baggage from Haskell (i.e., supertypes of Real and Enum).
Real
Enum
Methods
iDiv :: a -> a -> aSource
Has C semantics: like Haskell's quot (truncate towards 0).
quot
(.%) :: a -> a -> aSource
Has C semantics: like Haskell's rem.
rem
Instances
iDivE :: Expr -> Expr -> ExprSource
iModE :: Expr -> Expr -> ExprSource