@hackage euler0.6.0

Mathematics utilities for Haskell

Euler - Mathematics functions for Haskell.

Build Status

What is this?

This repo contains functions to help in mathematics calculations or puzzles using Haskell. Currently there is only one module, Primes, which contains implementations of three sieves:

The current major version (0) is stable enough to be used for Project Euler problems.

You can also find this package in Hackage.

How to build?

If you want to build it locally, you'll need GHC and cabal. You'll also need happy though you don't need to have it globally. Here's how you can do it:

git clone https://github.com/decomputed/euler.git
cd euler
cabal sandbox init
cabal install happy
cabal install --only-dependencies --enable-tests --enable-benchmarks
cabal build
cabal test
cabal bench

Happy hacking! :-)