[Agda] monad in Set

Dan Licata drl at cs.cmu.edu
Wed Jun 17 14:05:32 CEST 2009


Hi everyone,

Is there a way to describe the syntax of a monad, whose result type is
an arbitrary Agda Set, without using Set1?  E.g.

  data Comp (C : Set) : Set where
    Return : C -> Comp C
    Bind   : {A : Set} -> (A -> Comp C) -> (Comp A -> Comp C)

doesn't work because of the A argument to Bind.

-Dan


More information about the Agda mailing list