mstksg / purescript-numerics

Haskell like numeric classes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

purescript-numerics

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.

About

Haskell like numeric classes


Languages

Language:PureScript 100.0%