- Create a new project working-with-iso with a simple stack template:
stack new working-with-iso simple
- 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 ...