A First Pass at a File Archiver

Throughout this chapter, you’ll work through building a library for a tool called filepack. The FilePack library that we build will allow users to create archives of files that can be saved to disk, stored in a database, or sent over the internet. The examples you build as you work through this chapter will only support the programmatic creation and extraction of archives, but you are encouraged to create a complete application around this library as an additional example.

For maximum compatibility with third-party systems and tooling, we’ll store the contents of our files as base64 encoded string data. Base64 encoding is a well-known approach to encoding binary data in plain ASCII text so that it can be handled ...

Get Effective Haskell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.