When writing a command line tool in Haskell I like to add support for printing the version as defined in the Cabal file. For this I import the generated Paths_proj
module:
import Paths_proj (version)
cabal build
has no problems with this, but HLS tells me (in my editor) that
Main.hs 22 1 error Could not find module ‘Paths_proj’
Use -v (or `:set -v` in ghci) to see a list of the files searched for. (haskell-ghc)
What setup/config am I missing?