test: add new structure instance + implicit lambda tests
This commit is contained in:
parent
c7fcb2c5a7
commit
dcd64fae5a
1 changed files with 11 additions and 0 deletions
11
tests/lean/run/structInst2.lean
Normal file
11
tests/lean/run/structInst2.lean
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import Init.Control.Option
|
||||
|
||||
new_frontend
|
||||
|
||||
def optMonad {m} [Monad m] : Monad (OptionT m) :=
|
||||
{ pure := OptionT.pure, bind := OptionT.bind }
|
||||
|
||||
def optAlt {m} [Monad m] : Alternative (OptionT m) :=
|
||||
{ failure := OptionT.fail,
|
||||
orelse := OptionT.orelse,
|
||||
toApplicative := Monad.toApplicative (OptionT m) } -- TODO: check toApplicative binder annotations
|
||||
Loading…
Add table
Reference in a new issue