-
Notifications
You must be signed in to change notification settings - Fork 39
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
Omit extensions from cabal file which are problematic for "stack ghci" #109
Comments
I was considering switching to base-noprelude. I am not sure if that will somehow have other ripple effects in this situation, but it seems like it should work. With respect to |
Yeah, removing |
I know I felt quite differently in the past, but I'm now on board with On Fri, Nov 20, 2015, 1:17 AM Michael Sloan notifications@github.com
|
I take a more nuanced view on this issue: we can divide language extensions in to 2 categories based on whether they can break existing code or not. Those that don't break anything (usually any syntax extension such as RecordWildCards and in general most extensions that are not about the type system) should go in the There is definitely a grey area. I would argue that everyone should be putting a space after the dollar operator. However, having TemplateHaskell on can still make error messages worse in some cases even if it doesn't alter the ability to compile the code. |
I like that division. On Fri, Nov 20, 2015, 8:25 AM Greg Weber notifications@github.com wrote:
|
2 pull requests above to move things in this direction (#110 and #111) |
Given improvements in |
-XNoImplicitPrelude
can cause issues for modules which require the Prelude. So, if we use "stack ghci" to load a yesod project along with some other project, it doesn't work. See this issue: commercialhaskell/stack#1363-XTemplateHaskell
can also cause issues due to it changing the meaning off $x
andf $(x)
.I realize that this would be a bit of an unpleasant refactoring, but it'd certainly be an improvement, at least with our current tools. Ideally, we wouldn't need to do this - https://ghc.haskell.org/trac/ghc/ticket/10827 - so this could be considered an upstream issue.
The text was updated successfully, but these errors were encountered: