Skip to content

Testsuite (doctest) needs --write-ghc-environment-files=always #9

Open
@andreasabel

Description

@andreasabel

Tests are failing on hackage: https://hackage.haskell.org/package/type-errors-0.2.0.2/reports/1
I can reproduce this locally because I have cabal configuration setting write-ghc-environment-files: never.

Test suite test: RUNNING...

src/Type/Errors.hs:8:8: error:
    Could not load module ‘Prelude’
    It is a member of the hidden package ‘base-4.16.4.0’.
...
<interactive>:2:71: error:
    Not in scope: type constructor or class ‘Data.String.String’
    No module named ‘Data.String’ is imported.
(seems to hang here)

Tests pass after cabal build --write-ghc-environment-files=always.
Not sure what can be done about it.
One can disable the hackage tests at: https://hackage.haskell.org/package/type-errors-0.2.0.2/reports/testsEnabled/
However, it would be better if one could pass the configuration needed to run the test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions