typeclasses
Here are 74 public repositories matching this topic...
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
-
Updated
Apr 25, 2020 - Haskell
-
Updated
Feb 7, 2020 - Scala
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
-
Updated
Apr 17, 2020
-
Updated
May 15, 2020 - Scala
-
Updated
May 20, 2020 - JavaScript
-
Updated
May 20, 2020 - Scala
-`@annotationEntries`
+`@annotations`-`(valueParameters)`
+`(params)`-`(typeArguments)`
+`(typeArgs)`It would be nice to have something like
def adaptError[A](fa: F[A])(pf: PartialFunction[E, E]): F[A]
in Handle typeclass
This can be done as in the
https://github.com/HoTT/HoTT
@Zimmi48 , does the coq-community has standard template for this?
It makes sense to role out this tools uniformly
-
Updated
Nov 22, 2018 - Scala
-
Updated
May 1, 2020 - TeX
-
Updated
May 20, 2020 - Scala
-
Updated
Jun 17, 2017 - JavaScript
-
Updated
May 12, 2020 - TeX
-
Updated
May 15, 2020 - Scala
-
Updated
Jun 2, 2019 - F#
Something like this
class Resource<A> {
IO<A> acquire;
Consumer1<A> release;
Resource(IO<A> acquire, Consumer1<A> release) {
this.acquire = acquire;
this.release = release;
}
public <B> IO<B> use(Function1<A, IO<B>> use) {
return IO.bracket(acquire, use, release);
}
}-
Updated
May 14, 2020 - Kotlin
Hi Taine,
In one of your example, you have
@trait Addable{L, R} begin
(+) :: [L, R] => Any
(+) = Base.:+
endI'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.:+
endBut then I'm having trouble getting the `@i
-
Updated
May 8, 2018 - Scala
-
Updated
Feb 6, 2020 - Java
-
Updated
May 18, 2020 - Scala
-
Updated
Dec 30, 2018 - OCaml
-
Updated
Mar 1, 2020 - Coq
-
Updated
Apr 5, 2020
-
Updated
May 20, 2020 - Scala
Improve this page
Add a description, image, and links to the typeclasses topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the typeclasses topic, visit your repo's landing page and select "manage topics."
What version are you currently using?
LATEST
What would you like to see?
When you are trying to review the first 2 levels of the Open ladder of functional programming using Kotlin and Arrow, I don´t find many examples in the documentation about the following topics: