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
Alex D
GHC
Commits
485ab9c9
Commit
485ab9c9
authored
Jan 21, 2009
by
Ian Lynagh
Browse files
When converting TH syntax to GHC syntax, need to put sections in parentheses
Fixes trac #2956
parent
7a4d6655
Changes
1
Show whitespace changes
Inline
Side-by-side
compiler/hsSyn/Convert.lhs
View file @
485ab9c9
...
...
@@ -388,9 +388,11 @@ cvtl e = wrapL (cvt e)
; e' <- returnL $ OpApp x' s' undefined y'
; return $ HsPar e' }
cvt (InfixE Nothing s (Just y)) = do { s' <- cvtl s; y' <- cvtl y
; return $ SectionR s' y' }
; sec <- returnL $ SectionR s' y'
; return $ HsPar sec }
cvt (InfixE (Just x) s Nothing ) = do { x' <- cvtl x; s' <- cvtl s
; return $ SectionL x' s' }
; sec <- returnL $ SectionL x' s'
; return $ HsPar sec }
cvt (InfixE Nothing s Nothing ) = cvt s -- Can I indicate this is an infix thing?
cvt (SigE e t) = do { e' <- cvtl e; t' <- cvtType t
...
...
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