stgi-1.1: Educational implementation of the STG (Spineless Tagless G-machine)

Safe HaskellNone
LanguageHaskell2010

Stg.Prelude.Number

Contents

Description

Operations on boxed integers.

This module should be imported qualified to avoid clashes with standard Haskell definitions.

Synopsis

Arithmetic

add :: Program Source #

Binary addition of boxed integers

sub :: Program Source #

Difference of boxed integers

mul :: Program Source #

Binary multiplication of boxed integers

div :: Program Source #

Boxed integer division

mod :: Program Source #

Boxed integer modulo operator

Comparisons

eq_Int :: Program Source #

Equality of boxed integers

lt_Int :: Program Source #

Less-than for boxed integers

leq_Int :: Program Source #

Less-or-equal for boxed integers

gt_Int :: Program Source #

Greater-than for boxed integers

geq_Int :: Program Source #

Greater-or-equal for boxed integers

neq_Int :: Program Source #

Inequality of boxed integers

Other

min :: Program Source #

Minimum of two boxed integers

max :: Program Source #

Maximum of two boxed integers