gelisam / hawk

Haskell text processor for the command-line
Apache License 2.0
361 stars 20 forks source link

testsuite: Build_doctests missing from exposed-modules or other-modules #268

Open juhp opened 3 years ago

juhp commented 3 years ago

This is not very serious and I don't use hpack much, so maybe it can't handle it but this warning is appearing when linking the testsuite:

Warning: The following modules should be added to exposed-modules or other-modules in /var/home/petersen/github/hawk/haskell-awk.cabal:
             - In test:reference:
                 Build_doctests
             - In test:reference:
                 Build_doctests
             - In test:reference:
                 Build_doctests

         Missing modules in the cabal file are likely to cause undefined reference errors from the linker, along with other problems.

I couldn't persuade hpack to add it, so maybe it is wontfix, unless we want to drop using hpack at some point?

gelisam commented 3 years ago

unless we want to drop using hpack at some point?

now that cabal supports common stanzas, the only remaining hpack feature I care about is automatically grabbing all the .hs files from a folder, so I don't have to edit the .cabal file every time I create a new package. My ex-colleague made a build-time library which is supposed to bring this functionality to cabal, should we try it?

juhp commented 3 years ago

Ya, we can give it a go, if you want. I would be in favour of moving away from hpack anyway: I feel hint seems too complicated for it, though it is doing pretty well.