Hakaru-FLOLAC16 icon indicating copy to clipboard operation
Hakaru-FLOLAC16 copied to clipboard

Some materials for "The taste of probabilistic programming and modeling" by Oleg Kiselyov at FLOLAC'16

Hakaru-FLOLAC16

How to run these codes

  1. Clone this repo (or just download it anyway)

    git clone [email protected]:banacorn/Hakaru-FLOLAC16.git
    cd Hakaru-FLOLAC16
    
  2. Enter GHCi

    ghci Discrete1.hs
    

    For example, you can play with those DSTs with runSample :: Int -> Dst a -> [a] in Discrete

    *Discrete> runSample 10 twocoins
    [True,False,True,False,False,True,False,False,False,True]
    
  3. You may need some of these packages: mtl, transformers, random

    cabal install mtl transformers random
    

Courtesy of Oleg Kiselyov.