As you work on your final projects, you might find that lists and functions are not sufficient, and you might need more library functions. Today, we will look at various interesting libraries, and also try go get a hang of how to find them and how to use their documentation. We will also talk about performance a bit.
The lecture will consist of live coding an example program (reading statistics from this baseball data base and presenting them differently). In doing so, we learned about the following list of libraries:
- Bytestrings, in their strict and lazy variant, to represent binary or ASCII data.
Data.Map
, part of containers.- cassava to parse CSV files.
- vector to efficiently represent sequences
- statistics to calculate a correlation
- table-layout for pretti ASCII (or unicode) tables
- blaze-html to generate valid HTML code
This is (almost) the code that we came up with.