mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-11-30 22:05:32 +03:00
32583d608d
and a small fix for the generation of method types which was okay for Blodwen, but not here
13 lines
364 B
Idris
13 lines
364 B
Idris
public export
|
|
interface Do (m : Type) where
|
|
Next : (a : Type) -> (b : Type) -> m -> Type
|
|
bind : (x : m) -> Next a b x
|
|
|
|
-- This won't actually achieve anything useful, but we're testing whether
|
|
-- it successfully typechecks and in the type of 'foo' we have the right 'a'
|
|
public export
|
|
Monad m => Do (m a) where
|
|
Next a b x = (a -> m b) -> m b
|
|
bind x = ?foo
|
|
|