O'Reilly logo

Haskell Cookbook by Yogesh Sajanikar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

  1. Create a new project working-with-iso with a simple stack template:
        stack new working-with-iso simple
  1. Add a dependency on the lens library in the build-depends sub-section of the executable section. Also, add a dependency on text and bytestring and add the quicklz library for compression utility:
 executable working-with-iso
   hs-source-dirs:      src
   main-is:             Main.hs
   default-language:    Haskell2010
   build-depends:       base >= 4.7 && < 5
                        , lens
                        , text
                        , bytestring
Note that, at the time of writing this recipe, the library quicklz is not included in the stack package repository. We need to add it explicitly to the stack.yaml in the project directory. Explicitly add the following packages in the extra-deps section in stack.yaml. We have ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required