Closed ibrahimsag closed 8 years ago
Could be related to the recent b61dabe27cc39fb164d20fd3abfe70b21699c6de where Utils.hs
was added explicitly to the list of modules in the test suite. I don't know why it's causing an issue for you though. I would guess it's a Nix-specific thing.
I think I've tracked down the problem. The test suite is configured with two source directories:
hs-source-dirs: ., tests
At a guess, cabal
is starting with .
and seeing tests/Utils.hs
as if it were Tests/Utils.hs
.
Switching the order of hs-source-dirs
fixed the problem for me, but that still feels pretty fragile. I'm not sure if this is fundamentally an issue with cabal
or just that you shouldn't provide nested source dirs.
hs-source-dirs: tests, .
I'm not sure exactly what's causing this problem to pop up in Nix but not elsewhere—perhaps it's a matter of the cabal
version? Here's mine:
[nix-shell:~/programming/glob]$ cabal --version
cabal-install version 1.24.0.0
compiled using version 1.24.0.0 of the Cabal library
Thinking about it some more, it's probably because I ran this on OS X and OS X filepaths are case-insensitive, so tests/Utils.hs
looks the same as Tests/Utils.hs
.
Thanks for the sleuthing, sounds plausible. I pushed out 0.7.11 which gets rid of the whole tests/Utils.hs
file. I don't have a case-insensitive file system conveniently on hand so I don't know if that actually resolves this issue. Please let me know either way.
Yes, 0.7.11 builds for me on OS X. Thanks!
Hey, I get the following error. does it make any sense to you?