This is a template for using Euterpea library. It can be real pain to setup it properly on ArchLinux haskell support, Stack is simpler solution. Should work on any linux with Stack.
You need to have:
- Stack
- Synthesizer, I use fluidsynth.
$ git clone https://github.com/RobertBendun/euterpea-template
$ cd euterpea-template
$ stack repl
Stack will download all dependencies and required version of GHC and run GHCI.
ghci> import Euterpea
ghci> play song
song
beeing defined in src/Example.hs.