Comments (5)
BasePrelude is only supposed to be used in combination with the NoImplicitPrelude
pragma.
from base-prelude.
I didn't realize that. It's a shame because hiding a function has to be done only once (by one people) whereas the pragma as to be done over and over.
from base-prelude.
The project is not about doing something once, it's about replacing the standard Prelude with a more general one. You'd discover way more functions in BasePrelude, which would conflict with the standard Prelude, if you did the change you suggested.
BTW, FYI, pragmas can be done project-wide, so member-hiding is not an issue. E.g.: https://github.com/nikita-volkov/hasql/blob/81f78acf0d90913360ec2d991b246daed948ca81/hasql.cabal#L44-L45
from base-prelude.
Fair enough, I just think it would be a "better" replacement if you could just do import BasePrelude
and nothing else. You can indeed do pragmas project-wide, but you still have to do it for every project and every target. Anyway, that's your decision.
from base-prelude.
I just think it would be a "better" replacement if you could just do import BasePrelude and nothing else.
It wouldn't be a replacement then, but an extension. Either way, you'd have to lose an important property of BasePrelude: the preference of polymorphic functions, which would conflict with their monomorphic counterparts from Prelude. (.)
and id
are exactly a case of that, with the ones exported by BasePrelude being generalized to the Category
typeclass.
You can indeed do pragmas project-wide, but you still have to do it for every project and every target.
And what's the problem about that?
from base-prelude.
Related Issues (11)
- export System.Environment
- FilePath not exported HOT 3
- Fails to compile with GHC 7.4.2 HOT 3
- `printf` isn't exported HOT 1
- No re-export of Data.Bifunctor HOT 5
- base-prelude violates the PVP HOT 7
- Reexport (&) and so on when we can HOT 3
- base-4.9 changes HOT 10
- Missing changes from base-4.8 and 4.7 HOT 2
- Consider removing the Option type HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from base-prelude.