Open TravisWhitaker opened 7 years ago
So I got a windows box set up, but was unable to reproduce this...
Maybe it doesn't work when running in the same directory? I don't think this will ever work quite right though because most of the files are c2hs files which need to be run through the preprocessor, and ghci isn't going to do that for you whenever you update them...
When building with cabal or Stack on Windows 10 with GHC 8.2.1,
stack ghci
andcabal repl
both yield:Using the generated
cabal.buildinfo.generated
, which looks like this on my machine:Strangely, simply copying
cuda.buildinfo.generated
tocuda.buildinfo
, without rebuilding or reconfiguring, allowsstack repl
to work. I haven't managed to cause a similar effect with any combination ofcabal repl
,cabal configure
, orcabal clean
.stack ghci
doesn't seem to work by callingSetup.hs
; I verified this by simply adding aputStr
beforedefaultMainWithHooks
. I also added prints togetHookedBuildInfo
, so I have no idea by what code path Stack is able to read thecuda.buildinfo
file (and fail to read thecuda.buildinfo.generated
file!).In practice I doubt anyone is using this library alone in GHCi, but this behavior is very strange and might be some Cabal and/or Stack bug. I'm curious if anyone can manage to reproduce this.