git.haskell.org
/
ghc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b02de8
)
Allow '-' to be used as an infix type constructor.
author
Iavor S. Diatchki
<diatchki@Perun.(none)>
Sat, 10 Nov 2012 20:24:25 +0000
(12:24 -0800)
committer
Iavor S. Diatchki
<diatchki@Perun.(none)>
Sat, 10 Nov 2012 20:24:25 +0000
(12:24 -0800)
compiler/parser/Parser.y.pp
patch
|
blob
|
history
diff --git
a/compiler/parser/Parser.y.pp
b/compiler/parser/Parser.y.pp
index
3c18498
..
3029930
100644
(file)
--- a/
compiler/parser/Parser.y.pp
+++ b/
compiler/parser/Parser.y.pp
@@
-1887,6
+1887,7
@@
tyconsym :: { Located RdrName }
: CONSYM { L1 $! mkUnqual tcClsName (getCONSYM $1) }
| VARSYM { L1 $! mkUnqual tcClsName (getVARSYM $1) }
| '*' { L1 $! mkUnqual tcClsName (fsLit "*") }
+ | '-' { L1 $! mkUnqual tcClsName (fsLit "-") }
-----------------------------------------------------------------------------