cats-mtl


License

License

GroupId

GroupId

org.typelevel
ArtifactId

ArtifactId

cats-mtl_sjs1_2.12
Last Version

Last Version

1.2.1
Release Date

Release Date

Type

Type

jar
Description

Description

cats-mtl
cats-mtl
Project URL

Project URL

https://typelevel.org/cats-mtl/
Project Organization

Project Organization

Typelevel
Source Code Management

Source Code Management

https://github.com/typelevel/cats-mtl

Download cats-mtl_sjs1_2.12

How to add to project

<!-- https://jarcasting.com/artifacts/org.typelevel/cats-mtl_sjs1_2.12/ -->
<dependency>
    <groupId>org.typelevel</groupId>
    <artifactId>cats-mtl_sjs1_2.12</artifactId>
    <version>1.2.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.typelevel/cats-mtl_sjs1_2.12/
implementation 'org.typelevel:cats-mtl_sjs1_2.12:1.2.1'
// https://jarcasting.com/artifacts/org.typelevel/cats-mtl_sjs1_2.12/
implementation ("org.typelevel:cats-mtl_sjs1_2.12:1.2.1")
'org.typelevel:cats-mtl_sjs1_2.12:jar:1.2.1'
<dependency org="org.typelevel" name="cats-mtl_sjs1_2.12" rev="1.2.1">
  <artifact name="cats-mtl_sjs1_2.12" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.typelevel', module='cats-mtl_sjs1_2.12', version='1.2.1')
)
libraryDependencies += "org.typelevel" % "cats-mtl_sjs1_2.12" % "1.2.1"
[org.typelevel/cats-mtl_sjs1_2.12 "1.2.1"]

Dependencies

compile (3)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.12.13
org.scala-js : scalajs-library_2.12 jar 1.5.1
org.typelevel : cats-core_sjs1_2.12 jar 2.6.1

Project Modules

There are no modules declared in this project.

Cats MTL

Provides transformer typeclasses for cats' Monads, Applicatives and Functors.

You can have multiple cats-mtl transformer typeclasses in scope at once without implicit ambiguity, unlike in pre-1.0.0 cats or Scalaz 7.

Usage

libraryDependencies += "org.typelevel" %% "cats-mtl" % "1.2.0"

If your project uses ScalaJS, replace the double-% with a triple. Note that cats-mtl has an upstream dependency on cats-core version 2.x.

Cross-builds are available for Scala 2.12, 2.13, 3.0.0-M2, 3.0.0-M3, and ScalaJS major version 1.x.

If you're not sure where to start or what Cats MTL even is, please refer to the getting started guide.

Supported Classes

  • EitherT
  • Kleisli
  • IorT
  • OptionT
  • ReaderWriterStateT
  • StateT
  • WriterT

Laws

The cats-mtl-laws artifact provides Discipline-style laws for all of the type classes defined in cats-mtl. It is relatively easy to use these laws to test your own implementations of these typeclasses. Take a look here for more.

libraryDependencies += "org.typelevel" %% "cats-mtl-laws" % "1.2.0" % Test

These laws are compatible with both Specs2 and ScalaTest.

Documentation

Links:

  1. Website: typelevel.org/cats-mtl/
  2. ScalaDoc: typelevel.org/cats-mtl/api/

Related Cats links (the core):

  1. Website: typelevel.org/cats/
  2. ScalaDoc: typelevel.org/cats/api/

Community

People are expected to follow the Scala Code of Conduct when discussing cats-mtl on the Github page, Gitter channel, or other venues.

We hope that our community will be respectful, helpful, and kind. If you find yourself embroiled in a situation that becomes heated, or that fails to live up to our expectations, you should disengage and contact one of the project maintainers in private. We hope to avoid letting minor aggressions and misunderstandings escalate into larger problems.

License

All code is available to you under the MIT license, available at http://opensource.org/licenses/mit-license.php and also in the COPYING file.

org.typelevel

typelevel.scala

Let the Scala compiler work for you.

Versions

Version
1.2.1
1.2.0
1.1.3
1.1.2
1.1.1
1.1.0
1.1.0-M1
1.0-9b8941d
1.0-bc23017
1.0.0