projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3feb1f3
)
GArrowFullyEnriched: clean up imports and context
author
Adam Megacz
<megacz@cs.berkeley.edu>
Mon, 29 Aug 2011 23:57:58 +0000
(16:57 -0700)
committer
Adam Megacz
<megacz@cs.berkeley.edu>
Mon, 29 Aug 2011 23:57:58 +0000
(16:57 -0700)
GHC/HetMet/GArrowFullyEnriched.hs
patch
|
blob
|
history
diff --git
a/GHC/HetMet/GArrowFullyEnriched.hs
b/GHC/HetMet/GArrowFullyEnriched.hs
index
113dfcd
..
bf7df6b
100644
(file)
--- a/
GHC/HetMet/GArrowFullyEnriched.hs
+++ b/
GHC/HetMet/GArrowFullyEnriched.hs
@@
-56,12
+56,11
@@
module GHC.HetMet.GArrowFullyEnriched (
-- $extradoc1
) where
-import Control.Category ( (>>>) )
import Control.Category
import GHC.HetMet.GArrow
import Prelude hiding ((.), id)
-data (GArrowSwap g (**) u, GArrowCopy g (**) u, GArrowDrop g (**) u) => Polynomial g (**) u t x y
+data GArrow g (**) u => Polynomial g (**) u t x y
= L (g (t**x) y) -- uses t, wants it as the left arg
| R (g (x**t) y) -- uses t, wants it as the right arg
| B (g (t**x) y) (g (x**t) y) -- uses t, doesn't care which arg