summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorIavor S. Diatchki <diatchki@Perun.(none)>2012-11-10 12:24:25 -0800
committerIavor S. Diatchki <diatchki@Perun.(none)>2012-11-10 12:24:25 -0800
commitdf04d2d875f4f17b04cd8bd396b62b1eadd932e8 (patch)
tree12ebe563ae6e146019a40d1399dafe98efaa24e3 /compiler
parent1b02de8dd7a2eba0f8e136398e59ee2b9af85102 (diff)
downloadhaskell-df04d2d875f4f17b04cd8bd396b62b1eadd932e8.tar.gz
Allow '-' to be used as an infix type constructor.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/parser/Parser.y.pp1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/parser/Parser.y.pp b/compiler/parser/Parser.y.pp
index 3c184989b1..3029930903 100644
--- 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 "-") }
-----------------------------------------------------------------------------