I have used stack to create a new project.
I see it has created a stack.yaml file and a myproject.cabal file, when i tried to add a dependency (split) in my .cabal file like so:
library
hs-source-dirs:
src
build-depends:
base >= 4.7 && < 5, split
exposed-modules:
Lib
default-language: Haskell2010
i then run stack build and i get a failure message:
Failed to load interface for `Data.List.Split'
Use -v to see a list of the files searched for
i then go back to my .cabal file and find that there is no split dependency listed anymore as the file has been overwritten.
Any idea why this is happening?