mirror of
https://github.com/ilyakooo0/Idris-dev.git
synced 2024-11-11 03:34:13 +03:00
4d0a065f86
To "interface/implementation". Old syntax is still valid but gives a deprecation warning.
9 lines
288 B
Idris
9 lines
288 B
Idris
interface Monad m => ContainerMonad (m : Type -> Type) where
|
|
Elem : a -> m a -> Type
|
|
tagElem : (mx : m a) -> m (x : a ** Elem x mx)
|
|
|
|
interface Monad m => ContainerMonad2 a (m : Type -> Type) where
|
|
Elem2 : a -> m a -> Type
|
|
tagElem2 : (mx : m a) -> m (x : a ** Elem2 x mx)
|
|
|