Skip to content

Commit

Permalink
Fixed issue typelevel#4642
Browse files Browse the repository at this point in the history
  • Loading branch information
aluscent committed Oct 29, 2024
1 parent 769bf21 commit 80527cf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion alleycats-core/src/main/scala/alleycats/syntax/all.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@

package alleycats.syntax

object all extends EmptySyntax with FoldableSyntax
object all extends EmptySyntax with FoldableSyntax with ExtractSyntax
12 changes: 12 additions & 0 deletions alleycats-core/src/main/scala/alleycats/syntax/extract.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package alleycats
package syntax

import alleycats.Extract

object extract extends ExtractSyntax

trait ExtractSyntax {
implicit class ExtractOps[F[_], A](fa: F[A])(implicit ev: Extract[F]) {
def extract(): A = ev.extract(fa)
}
}

0 comments on commit 80527cf

Please sign in to comment.