Created
June 25, 2011 06:18
-
-
Save kik/1046226 to your computer and use it in GitHub Desktop.
ST and runST interface in Coq (WIP)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Class fmonad (M : (Type -> Type) -> Type) := { | |
fmreturn : forall {A : Type -> Type} {B}, (B -> A B) -> M A; | |
fmbind : forall {A B : Type -> Type} {C}, M A -> ((C -> A C) -> M B) -> M B | |
}. | |
Class ST (T : (Type -> Type) -> Type) := { | |
monadOfST :> fmonad T; | |
runST : forall {A}, T (fun _ => A) -> A | |
}. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment