hawk icon indicating copy to clipboard operation
hawk copied to clipboard

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

Open juhp opened this issue 3 years ago • 2 comments

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?

juhp avatar Jul 03 '21 05:07 juhp

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?

gelisam avatar Jul 04 '21 23:07 gelisam

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.

juhp avatar Jul 05 '21 07:07 juhp