Comments (10)
hoise
is in fact map
for a higher-order Functor
, where the objects are transformers and the arrows are natural transformations. 😄
from purescript-control.
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.
Isn't the 1
enough? 😉 That's our usual approach for higher order classes.
from purescript-control.
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.
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.
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.
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.
I wrote some thoughts along these lines a while ago here actually.
from purescript-control.
I think purescript-mmorph
and purescript-hoist
are the way to go here. Close?
from purescript-control.
👍
from purescript-control.
Related Issues (20)
- Add (<$$>) HOT 2
- $> breaks operator symmetry HOT 28
- Unknown module Data.Functor Control.Category, Data.Unit, Prelude HOT 4
- Annihilation law of alternative has incorrect order? HOT 1
- Add MonadOr? HOT 2
- laws for Lazy HOT 2
- provide filter for Alternative and Monad? HOT 5
- Use fundeps for an intermediate representation in `defer` HOT 8
- Definition of `fix` lacks sharing HOT 1
- MonadZero and MonadPlus seem redundant? HOT 10
- purescript-control#^3.0.0 vs purescript-control#^4.0.0 HOT 1
- class Lazy1 f where defer1 :: forall a. (Unit -> f a) -> f a HOT 10
- Lazy instance for `Effect`
- Deprecate MonadZero HOT 21
- The distributivity law for Alternative rules out effectful instances HOT 28
- Remove deprecated MonadZero instance (v0.15.0 PS)
- Update class hierarchy to remove mention of MonadZero
- Consider updating misleading Alt documentation HOT 2
- Proposal: Make <|> right associative HOT 4
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 purescript-control.