Skip to content

implmnt/mercator-cats

Repository files navigation

mercator-cats

Derives mercator Monadic for cats Monad

Build Status Maven Central

Usage

Add to your build.sbt

libraryDependencies += "im.plmnt" %% "mercator-cats" % "1.0.0"

Can be used with magnolia combine if the Monad instance exists for Typeclass

import mercator.cats._

type Typeclass[T]

def combine[T](caseClass: CaseClass[Typeclass, T]): Typeclass[T] =
  caseClass.constructMonadic { param => 
    ...
  }