lean4-htt/library/init/monad.lean
2016-05-24 13:06:01 -07:00

11 lines
367 B
Text

/-
Copyright (c) Luke Nelson and Jared Roesch. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Luke Nelson and Jared Roesch
-/
prelude
import init.functor
structure monad [class] (m : Type → Type) extends functor m : Type :=
(return : Π {a:Type}, a → m a)
(bind : Π {a b: Type}, m a → (a → m b) → m b)