Skip to content

Instantly share code, notes, and snippets.

@sullivan-
Last active December 21, 2015 07:19
Show Gist options
  • Select an option

  • Save sullivan-/6270547 to your computer and use it in GitHub Desktop.

Select an option

Save sullivan-/6270547 to your computer and use it in GitHub Desktop.
import scala.language.higherKinds
trait Monad {
type M[_]
def unitFunction[A](a: A): M[A]
def bindingOperation[A, B](m: M[A], f: (A) => M[B]): M[B]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment