--- /dev/null
+# This Makefile runs the tests using GHC's testsuite framework. It
+# assumes the package is part of a GHC build tree with the testsuite
+# installed in ../../../testsuite.
+
+TOP=../../../testsuite
+include $(TOP)/mk/boilerplate.mk
+include $(TOP)/mk/test.mk
--- /dev/null
+
+test('readFloat', exit_code(1), compile_and_run, [''])
+test('enumDouble', normal, compile_and_run, [''])
+test('enumRatio', normal, compile_and_run, [''])
--- /dev/null
+
+main :: IO ()
+main = print (succ (1.0e20 :: Double))
--- /dev/null
+
+import Data.Ratio
+main = print [ 1, 4%(3::Int) .. 1 ]
--- /dev/null
+
+import Numeric
+
+main :: IO ()
+main = putStrLn $ showFloat (read "" :: Float) ""
--- /dev/null
+readFloat: Prelude.read: no parse