Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ScriptDevil/9c22912ddadeed42a1cd to your computer and use it in GitHub Desktop.
Save ScriptDevil/9c22912ddadeed42a1cd to your computer and use it in GitHub Desktop.
Haskell Data Analysis Cookbook - Package List
#!/bin/sh
# I intend this to be a readable/executable script for installing all
# the packages discussed in "Haskell Data Analysis Cookbook" by
# Nishant Shukla
# Use cabal > 1.18 since I use sandboxes for the code here
# I use sandboxes because I have found that package conflicts
# (mostly because of version number issues) are terribe to deal with
# in Haskell. Use a script like the one in
# https://gist.github.com/cstrahan/8984109
# to use the sandbox's package db. The gist works for me in zsh.
# Run in the root of the directory you maintain examples from this
# book.
cabal sandbox init
# I will fill in this gist as and when I finish chapters in the book
# Chapter 1
## CSV - For parsing CSV files
cabal install csv
## Aeson - For parsing JSON files
cabal install aeson
## HXT - For parsing XML files
cabal install hxt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment