Fix build when DEBUG is on
authorMax Bolingbroke <batterseapower@hotmail.com>
Sun, 15 May 2011 22:08:54 +0000 (23:08 +0100)
committerMax Bolingbroke <batterseapower@hotmail.com>
Sun, 15 May 2011 22:08:54 +0000 (23:08 +0100)
compiler/basicTypes/BasicTypes.lhs

index 65002d5..7ea66e1 100644 (file)
@@ -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 }