Created
August 9, 2010 12:45
-
-
Save aycanirican/515365 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| {-# LANGUAGE TypeFamilies #-} | |
| module JS.Ann where | |
| -- | annotated fixpoint combinator | |
| data FixA (a ∷ (* → *) → (* → *)) | |
| (f ∷ (* → *)) | |
| = InA { outa ∷ a f (FixA a f) } | |
| | InF { outf ∷ f (FixA a f) } | |
| -- | Identity annotation | |
| newtype Id f a = Id {unId ∷ f a } deriving Show | |
| -- | Identity annotation fixpoint combinator | |
| type Fix f = FixA Id f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment