/haskell-by-multimedia

"Haskell School of Expression" - "Functional Programming through Multimedia" book examples.

Primary LanguageHaskellBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

haskell-by-multimedia

"Haskell School of Expression" - "Learning Functional Programming through Multimedia" book examples (WIP).

Step taken for SOE to build with latest haskell (8.4+):

  1. Download SOE sources from book website: http://www.cs.yale.edu/homes/hudak/SOE/software1.htm (look for SOE zip file).
  2. Add OpenGL, GLFW, and older packages (required for SOE Library) to your package.yaml file (assuming you're using stack build tool, else add them to your cabal-file/install-them-directly with cabal).
- GLFW >= 0.5.2.5
- OpenGL
- old-time
- stm

(Look up packages on stackage to get familiar with what they do/are). 3. Move all non *.hs files from SOE folder if you're including the folder in your './src' folder (stack build will fail due to the modules in '*.lhs' files not being named the same as their file names). 4. Add 'src/' location for SOE library to your package.yaml file (see './package.yaml' file in this repo). 5. That's it, examples starting in chapter 3 of book should build (and run successfully).

Resources

Resources used by SOE library (which is used by 'book examples' code):

License

BSD-3 Clause