Yesod Scaffolding Project: Stack Create an automatic deletion of my package in the cabal file

In the cabal project file, I added the package. But whenever I run stack build

or stack exec -- yesod devel

, the package is automatically removed from cabal.

Why is this?

+3


source to share


1 answer


You don't have to edit the file .cabal

when using hpack

. Yesod forests use a stack with hpack. hpack generates your .cabal file by reading the file package.yaml

. Add your package to a section dependencies

in the package.yaml file, then it is added to the .cabal file at build time.



+2


source







All Articles