Code Monkey home page Code Monkey logo

Comments (10)

jdegoes avatar jdegoes commented on July 30, 2024

hoise is in fact map for a higher-order Functor, where the objects are transformers and the arrows are natural transformations. 😄

from purescript-control.

paf31 avatar paf31 commented on July 30, 2024

Yes, MFunctor should be a functor in the category of monads (takes monads to monads, monad morphisms to monad morphisms, plus appropriate laws). So maybe this should be called FFunctor or FunctorFunctor 😛

from purescript-control.

garyb avatar garyb commented on July 30, 2024

Isn't the 1 enough? 😉 That's our usual approach for higher order classes.

from purescript-control.

paf31 avatar paf31 commented on July 30, 2024

I think Functor1 could possibly mean a few different things. Either forall a. Functor (f a), or something from plain type constructors to type constructors, etc. There is also stuff like ProfunctorFunctor etc., so we'll eventually want names where we can differentiate these things.

from purescript-control.

garyb avatar garyb commented on July 30, 2024

Ah yeah, that makes sense. What about FunctorF rather than FFunctor then? Since I assume it'd be ProfunctorF in that scheme also?

FunctorFunctor just seems too silly, even though it's entirely accurate 😆

from purescript-control.

paf31 avatar paf31 commented on July 30, 2024

It's sort of a shame that we can't write these classes once. I think we'd need at least polykinds and constraint kinds to do that.

I'm fine with any name that addresses the concern above.

from purescript-control.

garyb avatar garyb commented on July 30, 2024

I know! I've made attempts and doing them the right way in Haskell without much luck either, so either I was taking the wrong approach, or you need some really fancy type magic to make it work.

from purescript-control.

paf31 avatar paf31 commented on July 30, 2024

I wrote some thoughts along these lines a while ago here actually.

from purescript-control.

paf31 avatar paf31 commented on July 30, 2024

I think purescript-mmorph and purescript-hoist are the way to go here. Close?

from purescript-control.

garyb avatar garyb commented on July 30, 2024

👍

from purescript-control.

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.