Skip to Content
Learn Haskell by Example
book

Learn Haskell by Example

by Philipp Hagenlocher
December 2024
Beginner content levelBeginner
456 pages
13h 37m
English
Manning Publications
Content preview from Learn Haskell by Example

7 Working with CSV files

This chapter covers

  • Haskell’s record syntax and how to use it
  • Using smart constructors to safely create data structures satisfying some property
  • Creating instances for type classes
  • Defining your own type classes with default implementations

In the last chapter, we tackled a search problem and wrote some powerful artificial intelligence for a children’s game. In this chapter, however, we want to take care of earnest business, and nothing screams business like spreadsheets! Don’t worry, we will not deal with any data directly. As programmers, we obviously want to automate such tasks, and the easiest way for us to deal with data in spreadsheet form is using comma-separated values (CSV) files.

In this chapter, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Get Programming with Haskell

Get Programming with Haskell

Will Kurt
Haskell in Depth

Haskell in Depth

Vitaly Bragilevsky

Publisher Resources

ISBN: 9781633438934Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link