X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2FbasicTypes%2FBasicTypes.lhs;h=7ea66e1db2bf722a704c66f5c26e72c1e0e2d035;hp=65002d57ced5bf2fb0d6ffab55b38b0eb7951c90;hb=23e89f3d4dc66e4f92296ae390510f1bae1320a4;hpb=6ddfe9b18d4d280676aab2fa797ddbe6f8a09d6b diff --git a/compiler/basicTypes/BasicTypes.lhs b/compiler/basicTypes/BasicTypes.lhs index 65002d5..7ea66e1 100644 --- a/compiler/basicTypes/BasicTypes.lhs +++ b/compiler/basicTypes/BasicTypes.lhs @@ -876,7 +876,8 @@ data FractionalLit = FL { fl_text :: String -- How the value was written in the source , fl_value :: Rational -- Numeric value of the literal } - deriving (Data, Typeable) + deriving (Data, Typeable, Show) + -- The Show instance is required for the derived Lexer.x:Token instance when DEBUG is on negateFractionalLit :: FractionalLit -> FractionalLit negateFractionalLit (FL { fl_text = '-':text, fl_value = value }) = FL { fl_text = text, fl_value = negate value }