markov-chain: Markov Chains for generating random sequences with a user definable behaviour.

[ algorithms, library ] [ Propose Tags ]
Versions 0.0.1, 0.0.2, 0.0.3,,,,
Dependencies base (>=1.0 && <5), containers (>=0.1 && <1.0), random (>=1.0 && <2.0), transformers (>=0.0.1 && <0.6) [details]
License LicenseRef-GPL
Author Henning Thielemann <>
Maintainer Henning Thielemann <>
Category Algorithms
Home page
Source repo this: darcs get --tag
head: darcs get
Uploaded by HenningThielemann at Thu Jul 14 08:03:16 UTC 2016
Distributions Debian:, LTSHaskell:, NixOS:, Stackage:, openSUSE:
Downloads 5303 total (58 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2016-07-14 [all 1 reports]
Hackage Matrix CI

This library can be used to generate random sequences of anything with a behaviour that is adapted to some training data. Input a marketing text or a speech and recompose it to another arbitrary text of this sort. Input a dictionary of person names and create new names. Input a sequence of notes and get out a new melody. Input a set of Haskell modules and generate ... nice idea but the result will certainly have neither correct syntax nor types. I think, it's a good thing about Haskell, that you cannot fool it so easily. The idea is very simple: The algorithm analyses your input/training data with respect to how likely an a or e follows the letters r and e. Then on recomposition it chooses subsequent letters randomly according to the frequencies found in the training data. This library is well suited for bull-shit generators.





Choose the new smaller, split-up base package.


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees