Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A Genetic Algorithm library in Haskell

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Guardfile regex January 19, 2014
Octocat-spinner-32 LICENSE
Octocat-spinner-32 Makefile
Octocat-spinner-32 README.md
Octocat-spinner-32 Setup.hs
Octocat-spinner-32 genetics.cabal
Octocat-spinner-32 genetics.hs
Octocat-spinner-32 hellogenetics.hs
README.md

genetics - A Genetic Algorithm library in Haskell

Hackage

http://hackage.haskell.org/package/genetics

REQUIREMENTS

Install random-fu with cabal install -p random-fu.

Recommend configuring cabal to default to profiled libraries:

https://github.com/mcandre/dotfiles/blob/master/.cabal/config#L24

OPTIONAL

Use bundle to install Guard.

DEVELOPMENT

Guard

Start Guard in a shell, and it will automatically run unit tests when the source code changes:

$ guard
    ...

Lint

Keep the code tidy with HLint:

$ cabal install hlint
$ make lint

EXAMPLE

$ cabal update
$ cabal install -p random-fu
$ make
./hellogenetics +RTS -N
Hello World!

Profiling

$ make profile

If profiling shows an error message, resolve by reinstalling the dependency libraries with cabal install -p <library>, as lambdor recommends.

Coverage

$ make coverage
Something went wrong with that request. Please try again.