X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Futils%2FPretty.lhs;h=b873ac70b1886654889959929fc7067624d01f77;hp=96ea1fbfc5ed876d99c599e3fca5a3dea3076558;hb=ad94d40948668032189ad22a0ad741ac1f645f50;hpb=7c085edd732bd1fd52e758017da9eac583bfba1a diff --git a/compiler/utils/Pretty.lhs b/compiler/utils/Pretty.lhs index 96ea1fb..b873ac7 100644 --- a/compiler/utils/Pretty.lhs +++ b/compiler/utils/Pretty.lhs @@ -152,6 +152,13 @@ Relative to John's original paper, there are the following new features: \begin{code} +{-# OPTIONS -w #-} +-- The above warning supression flag is a temporary kludge. +-- While working on this module you are encouraged to remove it and fix +-- any warnings in the module. See +-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings +-- for details + module Pretty ( Doc, -- Abstract Mode(..), TextDetails(..), @@ -446,7 +453,7 @@ int n = text (show n) integer n = text (show n) float n = text (show n) double n = text (show n) -rational n = text (show (fromRat n)) +rational n = text (show (fromRat n :: Double)) --rational n = text (show (fromRationalX n)) -- _showRational 30 n) quotes p = char '`' <> p <> char '\''