add experimental GArrowStatic
authorAdam Megacz <megacz@cs.berkeley.edu>
Sun, 1 May 2011 04:18:41 +0000 (21:18 -0700)
committerAdam Megacz <megacz@cs.berkeley.edu>
Tue, 31 May 2011 21:59:09 +0000 (14:59 -0700)
GHC/HetMet/GArrow.hs

index c340fe2..0c32468 100644 (file)
@@ -183,7 +183,14 @@ class (GArrowSTLC  g (**) u (~>),
 
 
 
-
-
-
+------------------------------------------------------------------------
+-- Experimental, Not Yet Exported
+
+-- See Lindley, Wadler, and Yallop '08 -- except that here ga_force
+-- is primitive since there is no "arr" to define it in terms of.
+class GArrow g (**) u => GArrowStatic g (**) u (~>) where
+  ga_delay :: g a b      -> g u (a~>b)
+  ga_force :: g u (a~>b) -> g a b
+  -- "ga_static/force_delay"   forall a . force (delay a) = a
+  -- "ga_static/delay_force"   forall a . delay (force a) = a