You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following program is the most minimal example I managed to produce so far:
importGHC.Types.SrcLocmain::IO()
main =putStrLn"yeah"dataFoo=FooPsLoc
Here, GHC.Types.SrcLoc comes from ghc or ghc-lib-parser. I tried to inline the definition of PsLoc, or put it into a separate minimal package, but that made the bug go away in the cases I tried.
This minimal reproducible example is also availabe here:
Describe the bug
Certain programs fail at runtime when compiled via mingwW64 after #2156:
x86_64-linux
Steps To Reproduce
The following program is the most minimal example I managed to produce so far:
Here,
GHC.Types.SrcLoc
comes fromghc
orghc-lib-parser
. I tried to inline the definition ofPsLoc
, or put it into a separate minimal package, but that made the bug go away in the cases I tried.This minimal reproducible example is also availabe here:
https://github.com/amesgen/stuff/tree/haskell.nix-mingwW64-runtime-bug
nix build github:amesgen/stuff/haskell.nix-mingwW64-runtime-bug
Expected behavior
The program should execute fine (especially as the
Foo
data type above isn't even used), as it did before #2156.Additional context
The example above is minimized from trying to compile Ormolu with haskell.nix after #2156.
The error message is already mentioned in the haskell.nix codebase, so maybe this rings a bell:
haskell.nix/overlays/windows.nix
Lines 26 to 34 in 9549b8a
The text was updated successfully, but these errors were encountered: