Giter VIP home page Giter VIP logo

Comments (5)

nikita-volkov avatar nikita-volkov commented on June 12, 2024

BasePrelude is only supposed to be used in combination with the NoImplicitPrelude pragma.

from base-prelude.

maxigit avatar maxigit commented on June 12, 2024

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.

nikita-volkov avatar nikita-volkov commented on June 12, 2024

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.

maxigit avatar maxigit commented on June 12, 2024

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.

nikita-volkov avatar nikita-volkov commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.