Reputation: 31
it there a command to tell stack
to add a dependency in the cabal file? I think of a convenient way like with npm
or yarn
(npm install <module> --save
, yarn add <module>
). I think it is a bit tedious to manually add a new module in die cabal file. Maybe this functionality could automatically include version information as well.
I know that a cabal file has different targets, so it is not as easy as with npm
or yarn
. But I think it would be useful.
Thanks :)
Upvotes: 2
Views: 333
Reputation: 9179
No, there's no such command in stack
. But there's an open issue for that:
https://github.com/commercialhaskell/stack/issues/1933
Upvotes: 1