-
Notifications
You must be signed in to change notification settings - Fork 843
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autogenerated "Paths_" does not build in the presence of OverloadedStrings and RebindableSyntax #3789
Labels
Milestone
Comments
See sol/hpack#195 for why Paths_ is added. This is an upstream Cabal issue, I am working on a fix. For now, and probably for a year or two, just don't include those in default-extensions. |
Should I make an issue for cabal? |
4 tasks
@rohit507 That's ok, I fixed it here: haskell/cabal#5054 |
Brilliant, thank you. Do you have any idea when this would end up in a release? |
Good question, not sure! |
phadej
added a commit
to phadej/cabal
that referenced
this issue
Feb 1, 2018
Fixes haskell#5086 The haskell#5054 links to commercialhaskell/stack#3789 which says - `Ensure you have OverloadedStrings and RebindableSyntax extensions enabled.` So we warn only in that case. Only `OverloadeStrings` (or `OverloadedLists`) or `RebindableSyntax` seems to be ok.
phadej
added a commit
to phadej/cabal
that referenced
this issue
Feb 1, 2018
Fixes haskell#5086 The haskell#5054 links to commercialhaskell/stack#3789 which says - `Ensure you have OverloadedStrings and RebindableSyntax extensions enabled.` So we warn only in that case. Only `OverloadeStrings` (or `OverloadedLists`) or `RebindableSyntax` seems to be ok. Also make `allBuildInfos` return all (not only buildable) build infos, removing FIXME. `allBuildInfos` is used only in D.PD.Check.
phadej
added a commit
to phadej/cabal
that referenced
this issue
Feb 1, 2018
Fixes haskell#5086 The haskell#5054 links to commercialhaskell/stack#3789 which says - `Ensure you have OverloadedStrings and RebindableSyntax extensions enabled.` So we warn only in that case. Only `OverloadeStrings` (or `OverloadedLists`) or `RebindableSyntax` seems to be ok. Also make `allBuildInfos` return all (not only buildable) build infos, removing FIXME. `allBuildInfos` is used only in D.PD.Check.
phadej
added a commit
to phadej/cabal
that referenced
this issue
Feb 1, 2018
Fixes haskell#5086 The haskell#5054 links to commercialhaskell/stack#3789 which says - `Ensure you have OverloadedStrings and RebindableSyntax extensions enabled.` So we warn only in that case. Only `OverloadeStrings` (or `OverloadedLists`) or `RebindableSyntax` seems to be ok. Also make `allBuildInfos` return all (not only buildable) build infos, removing FIXME. `allBuildInfos` is used only in D.PD.Check.
phadej
added a commit
to phadej/cabal
that referenced
this issue
Feb 1, 2018
Fixes haskell#5086 The haskell#5054 links to commercialhaskell/stack#3789 which says - `Ensure you have OverloadedStrings and RebindableSyntax extensions enabled.` So we warn only in that case. Only `OverloadeStrings` (or `OverloadedLists`) or `RebindableSyntax` seems to be ok. Also make `allBuildInfos` return all (not only buildable) build infos, removing FIXME. `allBuildInfos` is used only in D.PD.Check.
phadej
added a commit
to phadej/cabal
that referenced
this issue
Feb 2, 2018
Fixes haskell#5086 The haskell#5054 links to commercialhaskell/stack#3789 which says - `Ensure you have OverloadedStrings and RebindableSyntax extensions enabled.` So we warn only in that case. Only `OverloadeStrings` (or `OverloadedLists`) or `RebindableSyntax` seems to be ok. Also make `allBuildInfos` return all (not only buildable) build infos, removing FIXME. `allBuildInfos` is used only in D.PD.Check.
phadej
added a commit
to phadej/cabal
that referenced
this issue
Feb 2, 2018
Fixes haskell#5086 The haskell#5054 links to commercialhaskell/stack#3789 which says - `Ensure you have OverloadedStrings and RebindableSyntax extensions enabled.` So we warn only in that case. Only `OverloadeStrings` (or `OverloadedLists`) or `RebindableSyntax` seems to be ok. Also make `allBuildInfos` return all (not only buildable) build infos, removing FIXME. `allBuildInfos` is used only in D.PD.Check.
phadej
added a commit
to phadej/cabal
that referenced
this issue
Feb 2, 2018
Fixes haskell#5086 The haskell#5054 links to commercialhaskell/stack#3789 which says - `Ensure you have OverloadedStrings and RebindableSyntax extensions enabled.` So we warn only in that case. Only `OverloadeStrings` (or `OverloadedLists`) or `RebindableSyntax` seems to be ok. Also make `allBuildInfos` return all (not only buildable) build infos, removing FIXME. `allBuildInfos` is used only in D.PD.Check.
phadej
added a commit
to haskell/cabal
that referenced
this issue
Feb 2, 2018
Fixes #5086 The #5054 links to commercialhaskell/stack#3789 which says - `Ensure you have OverloadedStrings and RebindableSyntax extensions enabled.` So we warn only in that case. Only `OverloadeStrings` (or `OverloadedLists`) or `RebindableSyntax` seems to be ok. Also make `allBuildInfos` return all (not only buildable) build infos, removing FIXME. `allBuildInfos` is used only in D.PD.Check.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
General summary/comments (optional)
It looks like some combination of Hpack, OverloadedLists, OverloadedString, and RebindableSyntax results in the generation of an invalid "Paths_*" module for the project. In particular, it doesn't import GHC.Exts to compensate for the lack of "fromListN" and "fromString" within scope.
I'm not sure whether this is an issue with stack or cabal's "Distribution.Simple.defaultMain" so I'm asking here first.
Steps to reproduce
Basic:
stack build
within the attached example project.Suspected:
Expected
Build Succeeds
Actual
Trimmed output below, full output at http://lpaste.net/361747
Stack version
Method of installation
curl -sSL https://get.haskellstack.org/ | sh
with a recentstack upgrade
The text was updated successfully, but these errors were encountered: