haskell - cabal: how to automatically update the build-depends field in the .cabal file? -
how automatically update build-depends field in .cabal-file? example, start following .cabal file:
name: hunit version: 1.1.1 synopsis: unit testing framework haskell homepage: http://hunit.sourceforge.net/ category: testing author: dean herington license: bsd3 license-file: license cabal-version: >= 1.10 build-type: simple library build-depends: base >= 2 && < 4 exposed-modules: test.hunit.base, test.hunit.lang, test.hunit.terminal, test.hunit.text, test.hunit default-extensions: cpp
then, install package:
cabal install warp
now, have add warp >=3.0 && <3.1
build-depends
field, make file this:
name: hunit version: 1.1.1 synopsis: unit testing framework haskell homepage: http://hunit.sourceforge.net/ category: testing author: dean herington license: bsd3 license-file: license cabal-version: >= 1.10 build-type: simple library build-depends: base >= 2 && < 4, warp >=3.0 && <3.1 exposed-modules: test.hunit.base, test.hunit.lang, test.hunit.terminal, test.hunit.text, test.hunit default-extensions: cpp
my question is: how update file automatically?
Comments
Post a Comment