Haskell-Data-Analysis-Cookbook/Ch12
2014-06-24 20:28:06 -04:00
..
Code01_csv Added Chapter 12 2014-06-24 20:28:06 -04:00
Code02_json Added Chapter 12 2014-06-24 20:28:06 -04:00
Code03_sql Added Chapter 12 2014-06-24 20:28:06 -04:00
Code04_html Added Chapter 12 2014-06-24 20:28:06 -04:00
Code05_mongo Added Chapter 12 2014-06-24 20:28:06 -04:00
Code06_tex Added Chapter 12 2014-06-24 20:28:06 -04:00
Code07_template Added Chapter 12 2014-06-24 20:28:06 -04:00
Code08_mat Added Chapter 12 2014-06-24 20:28:06 -04:00
LICENSE Added Chapter 12 2014-06-24 20:28:06 -04:00
README.md Added Chapter 12 2014-06-24 20:28:06 -04:00

Chapter 12

Chapter 12, The Final Exporting, concludes the book with an enumeration of algorithms for exporting data to CSV, JSON, HTML, MongoDB, and SQLite.

This is the accompanying source code for Haskell Data Analysis Cookbook. Refer to the book for step-by-step explanations.

Recipes

  • Code01: Exporting data to a CSV file
  • Code02: Exporting data as JSON
  • Code03: Using SQLite to store data
  • Code04: Saving data to a MongoDB database
  • Code05: Presenting results in an HTML web page
  • Code06: Creating a LaTeX table to display results
  • Code07: Personalizing messages using a text template
  • Code08: Exporting matrix values to a file

How to use

Setting up the environment

Install the Haskell Platform.

$ sudo apt-get install haskell-platform

Alternatively, install GHC 7.6 (or above) and Cabal.

$ sudo apt-get install ghc cabal-install

Running the code

A Makefile is provided in each recipe. Compile the corresponding executable by running make.

$ make

Run the resulting code. For example,

$ ./Code01

To clean up the directory:

$ make clean