Skip to content
#

typeclasses

Here are 74 public repositories matching this topic...

arrow
djspiewak
djspiewak commented Mar 4, 2020

For example, we have no implicit on Bracket's companion for materializing a Bracket[OptionT[F, *], E] given a Bracket[F, E], which we 100% should have. Similarly for EitherT and a bunch of others. The only one present right now derives Kleisli, which is useful but we should have the others, too.

This has been a problem on a few other typeclasses as well. At the very least, Bracket n

magnolia
anne-decusatis
anne-decusatis commented Nov 20, 2018

I was trying to make a small change to the default example, and wanted to test that my change didn't break anything. The compilation error I see looks like it's an issue between Mercator and Either, my guess is because Either has two type parameters (for Left and Right) and Monad only has one (equivalent to Right), but I don't know enough to submit a PR to fix. Please let me know if there's any

cscherrer
cscherrer commented Jan 26, 2020

Hi Taine,

In one of your example, you have

@trait Addable{L, R} begin
    (+) :: [L, R] => Any
    (+) = Base.:+
end

I'd like to do something like this, but avoid the Any. I was thinking something like

@trait Addable{L, R, X} where {X = inferAddable(L,R)} begin
    (+) :: [L, R] => X
    (+) = Base.:+
end

But then I'm having trouble getting the `@i

Improve this page

Add a description, image, and links to the typeclasses topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the typeclasses topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.