Skip to content
GitLab
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
b4fec12b
Commit
b4fec12b
authored
Feb 18, 2008
by
Ian Lynagh
Browse files
Make literals in the syntax tree strict
parent
24fa3d0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/hsSyn/HsLit.lhs
View file @
b4fec12b
...
...
@@ -55,9 +55,9 @@ instance Eq HsLit where
_ == _ = False
data HsOverLit id -- An overloaded literal
= HsIntegral Integer (SyntaxExpr id) PostTcType -- Integer-looking literals;
| HsFractional Rational (SyntaxExpr id) PostTcType -- Frac-looking literals
| HsIsString FastString (SyntaxExpr id) PostTcType -- String-looking literals
= HsIntegral
!
Integer (SyntaxExpr id) PostTcType -- Integer-looking literals;
| HsFractional
!
Rational (SyntaxExpr id) PostTcType -- Frac-looking literals
| HsIsString
!
FastString (SyntaxExpr id) PostTcType -- String-looking literals
-- Before type checking, the SyntaxExpr is 'fromInteger' or 'fromRational'
-- After type checking, it is (fromInteger 3) or lit_78; that is,
-- the expression that should replace the literal.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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