Skip to content

triggerNZ/scalaz-algebird

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scalaz-algebird

Join the chat at https://gitter.im/triggerNZ/scalaz-algebird Build Status

Conversions between the (isomporphic) typeclasses of scalaz and algebird. No cleverness, just trying to group scattered conversion code into one place.

Links

Conversions implemented

  • Semigroup
  • Monoid
  • Functor
  • Applicative
  • Monad

Usage example

Assuming we have an algebird monoid and we want to convert to scalaz:

import commbank.util._
import AlgebirdToScalaz._

import scalaz.{Monoid => SMonoid, Scalaz}, Scalaz._
import com.twitter.algebird.{Monoid => AMonoid, Max}

import com.twitter.algebird.Operators._

Max(10) |+| Max(30)

Vice-versa we use the ScalazToAlgebird object instead.

Pull requests encouraged.

About

Conversions between scalaz and algebird typeclasses

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages