Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
f0d10e34
Commit
f0d10e34
authored
Apr 06, 2012
by
pcapriotti
Browse files
Allow promoted constructors in the typedoc production (#5948)
parent
3f46b1e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/parser/Parser.y.pp
View file @
f0d10e34
...
...
@@ -1053,6 +1053,9 @@ typedoc :: { LHsType RdrName }
| btype '
->
' ctypedoc { LL $ HsFunTy $1 $3 }
| btype docprev '
->
' ctypedoc { LL $ HsFunTy (L (comb2 $1 $2) (HsDocTy $1 $2)) $4 }
| btype '
~
' btype { LL $ HsEqTy $1 $3 }
-- see Note [Promotion]
| btype SIMPLEQUOTE qconop type { LL $ mkHsOpTy $1 $3 $4 }
| btype SIMPLEQUOTE varop type { LL $ mkHsOpTy $1 $3 $4 }
btype :: { LHsType RdrName }
: btype atype { LL $ HsAppTy $1 $2 }
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment