Code Monkey home page Code Monkey logo

Comments (6)

Lysxia avatar Lysxia commented on July 19, 2024

Another alternative is to prevent bind and ret from simplifying, which solves that one problem, but not the one about sharing identifiers. More generally, it's kind of an arbitrary choice to bundle a certain set of methods together in a record, while indexed classes make it easier to mix and match.

from coq-ext-lib.

Lysxia avatar Lysxia commented on July 19, 2024

On a related note, what's the purpose of PMonad again?

from coq-ext-lib.

gmalecha avatar gmalecha commented on July 19, 2024

PMonad was introduced to allow for talking about well-formed types without needing to introduce axioms such as functional extensionality. It was never used extensively and is a good candidate for removal.

On the ret and bind, my only worry with this is terms will get much larger. Rather than simply forall m : Type -> Type, Monad m -> .... you will end up with forall (m : Type -> Type) (rm : Ret m) (bm : Bind m), Monad m rm bm -> ... which can be a lot of extra type checking and a lot of places where resolution can (potentially) get confused. Also, Ret isn't a very good typeclass name. I believe that it is usually called Pointed or something like that.

from coq-ext-lib.

gmalecha avatar gmalecha commented on July 19, 2024

One other thing, I get the impression that there are some users of ExtLib and this change would be a breaking change. We should ensure that if we do this, that we bump the major version number and leave the old packages in Opam (possibly also maintaining them for a little while depending on interest).

from coq-ext-lib.

Lysxia avatar Lysxia commented on July 19, 2024

I've experimented with this a bit and I have to agree that unbundling the Monad class like that makes things too heavyweight.

If we can drop PMonad that would also be great.

from coq-ext-lib.

gmalecha avatar gmalecha commented on July 19, 2024

I think dropping PMonad is a good idea, we really need a better notion of equivalence in Coq otherwise most of these things are too painful.

from coq-ext-lib.

Related Issues (20)

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.