Arrow.hs: fix loopl/loopr transposition
authorAdam Megacz <megacz@cs.berkeley.edu>
Thu, 2 Jun 2011 02:03:50 +0000 (19:03 -0700)
committerAdam Megacz <megacz@cs.berkeley.edu>
Thu, 2 Jun 2011 02:03:50 +0000 (19:03 -0700)
GHC/HetMet/Arrow.hs

index cb20a6a..f40ed5b 100644 (file)
@@ -48,8 +48,8 @@ instance Arrow a => GArrowReify a (,) () x y x y where
   ga_reify     =  arr
 
 instance ArrowLoop a => GArrowLoop a (,) () where
-  ga_loopl     =  loop
-  ga_loopr  f  =  loop (ga_swap >>> f >>> ga_swap)
+  ga_loopr     =  loop
+  ga_loopl  f  =  loop (ga_swap >>> f >>> ga_swap)
 
 instance ArrowApply a => GArrowApply a (,) () a where
   ga_applyl    = ga_swap >>> app