#include "HsVersions.h"
import Type ( Type )
-import Name ( Name )
-import HsTypes ( PostTcType )
+import HsTypes ( SyntaxName, PostTcType )
import Outputable
import FastString
import Ratio ( Rational )
-- and from TRANSLATION
| HsIntPrim Integer -- Unboxed Int
| HsInteger Integer -- Genuinely an integer; arises only from TRANSLATION
+ -- (overloaded literals are done with HsOverLit)
| HsRat Rational Type -- Genuinely a rational; arises only from TRANSLATION
+ -- (overloaded literals are done with HsOverLit)
| HsFloatPrim Rational -- Unboxed Float
| HsDoublePrim Rational -- Unboxed Double
| HsLitLit FastString PostTcType -- to pass ``literal literals'' through to C
lit1 == lit2 = False
data HsOverLit -- An overloaded literal
- = HsIntegral Integer Name -- Integer-looking literals;
+ = HsIntegral Integer SyntaxName -- Integer-looking literals;
-- The name is fromInteger
- | HsFractional Rational Name -- Frac-looking literals
+ | HsFractional Rational SyntaxName -- Frac-looking literals
-- The name is fromRational
instance Eq HsOverLit where