@@ -128,23 +128,21 @@ of `package.yaml`.
128
128
129
129
To manage your library:
130
130
131
- 1 . Edit source files in the ` src ` directory.
132
-
133
- The ` app ` directory should preferably contain only files related to
134
- executables.
131
+ 1 . Edit source files in the ` src ` directory. The ` app ` directory should
132
+ preferably contain only files related to executables.
135
133
136
134
2 . Your developing project may need to depend on a library provided by another
137
135
Haskell package.
138
136
139
- - Add the name of that new package to the file ` package.yaml ` , in its
140
- ` dependencies: ` section.
141
- - Run ` stack build ` again. Stack will use ` package.yaml ` to create an
142
- updated ` my-project.cabal ` for you.
137
+ - Add the name of that new package to the file ` package.yaml ` , in its
138
+ ` dependencies: ` section.
139
+ - Run ` stack build ` again. Stack will use ` package.yaml ` to create an
140
+ updated ` my-project.cabal ` for you.
143
141
144
- If desired, you can delete the ` package.yaml ` file and update the
142
+ 3 . If desired, you can delete the ` package.yaml ` file and update the
145
143
` my-project.cabal ` file directly. Stack will then use that file.
146
144
147
- 3 . If you get an error message that tells you that the Stack configuration has
145
+ 4 . If you get an error message that tells you that the Stack configuration has
148
146
no specified version of your added package, follow Stack's likely
149
147
recommandation to add a specific version of that package in the ` stack.yaml `
150
148
file, in its ` extra-deps: ` section.
0 commit comments