Package

purescript-numerics

Repository
proclivis/purescript-numerics
License
MIT
Uploaded by
Proclivis

Latest release Build status

Numeric types, think Haskell Num, Real, etc.

Module documentation

Example with Word type

import Data.Integral
import Data.Word
fromIntegral 4 .|. fromIntegral
2 :: Word8
Word8 0x06 (6u)

Installation and usage

You can install this package via Bower. You will also need BigInteger.js, which can be installed via npm:

bower install purescript-numerics

For the browser, remember to bundle BigInteger.min.js with your code.

Development

bower install
npm install

Then, use pulp to build, run tests and generate the documentation.