Creating Haskell Projects

Cabal is something of a Swiss army knife in the Haskell ecosystem, and it serves several purposes, including: package and dependency management, building, and running your program. In this section, we’ll take a quick tour of these features and you’ll learn how to get started using cabal to define a new project, manage dependencies, and build the project.

Your Output Might Look Different

images/aside-icons/info.png

This chapter contains some example output you might see when creating new projects with cabal. Since cabal is getting active updates to add new features, you might notice minor differences between the examples here and the output you ...

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.