-
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
base-noprelude instead of NoImplicitPrelude #111
base: postgres
Are you sure you want to change the base?
Conversation
base-noprelude serves the same end but avoids using a language extension If we like this direction, The setup should be altered so that Prelude.hs is Import.NoFoundation
I have no experience with base-prelude, but it sounds like an interesting solution to the problem. That said, I think we may end up with more confusion from users who see no special preludes imported and yet non-default-Prelude behavior present. That said, it's not like the current situation doesn't lead to that confusion either... So how's this: if it works with Stack, I'm on board with the change. |
To be more explicit we probably could use base-noprelude and still explicitly import an |
That's a very interesting idea. On Mon, Nov 23, 2015 at 7:14 AM, Greg Weber [email protected]
|
Unfortunately
|
IMHO, I think that the language extension is more widely recognized than |
@meteficha we would prefer that also but are trying to balance making |
There is the option of just putting NoImplicitPrelude in each module. |
I am ok with a standard boilerplate line for some language extensions. They seem pretty unavoidable for the others anyways. @meteficha what do you think? {-# Language NoImplicitPrelude, OverloadedStrings, NoMonomorphismRestriction #-} |
Hmmm, I didn't know there was an issue with |
I tried out base-noprelude on a different non-yesod project and got the same result from
So I am stumped on base-noprelude right now and favor putting the bothersome language extensions in each file. |
This is a path to address the main problem from #109. Although I am not sure if as it currently stands it will create a problem from exporting a
Prelude
module.base-noprelude serves the same end but avoids using a language extension
If we like this direction,
The setup should be altered so that Prelude.hs is Import.NoFoundation