diff --git a/memegen/codelab/memegen_codelab.md b/memegen/codelab/memegen_codelab.md index f957ba3..0b252ca 100644 --- a/memegen/codelab/memegen_codelab.md +++ b/memegen/codelab/memegen_codelab.md @@ -214,17 +214,17 @@ generic. Later, when we define the application state, we will be able to put a concrete type signature. Try to build the application by running `stack build`. It will fail. -The `snap` dependency is missing. Open the Cabal configuration and add the +The `snap` dependency is missing. Open the `package.yml` and add the library dependency: ``` -library - ... - exposed-modules: Memegen.Lib - build-depends: base >= 4.7 && < 5 - , snap + dependencies: + - base >= 4.7 && < 5 + - snap ``` +We now need to let Stack automatically update our cabal configuration. Run `stack solve --update-config`. You may have to run `stack install cabal-install` prior to running this command. + To make the code compile successfully, we still need to make a couple of changes: * Add the *OverloadedStrings* syntax extension. It is required by `makeSnaplet`