Idris-dev/test/reg059/reg059.idr
Edwin Brady 4d0a065f86 Change "class/instance" keywords
To "interface/implementation". Old syntax is still valid but gives a
deprecation warning.
2016-01-13 11:18:33 +00:00

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)