summaryrefslogtreecommitdiff
path: root/libraries/base/Debug
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2012-10-27 19:13:27 +0100
committerIan Lynagh <ian@well-typed.com>2012-10-27 19:13:27 +0100
commitfda30027384069e79df15a7674707a73e56288ed (patch)
treeac2cf3a0624ebd0df36755a0757f9f41fcb9b7c8 /libraries/base/Debug
parent57f65911762147ae20af7e41166597e9f0c34ec8 (diff)
downloadhaskell-fda30027384069e79df15a7674707a73e56288ed.tar.gz
Remove commented types in module export lists
These comments are rather less useful now that haddock can give docs with the same informatino in the module synopsis. Having to maintain them when making changes to the library is a pain, and when people forget about doing so there is nothing that checks that the comments are right, so mistakes tend to linger. Of the comments that my script detected, 78 of 684 were already incorrect in one way or another, e.g. missing context: Text.Show.showsPrec Comment type: Int -> a -> ShowS Actual type: Show a => Int -> a -> ShowS wrong context: Numeric.readInt Comment type: Integral a => a -> (Char -> Bool) -> (Char -> Int) -> ReadS a Actual type: Num a => a -> (Char -> Bool) -> (Char -> Int) -> ReadS a not following a class change (e.g. Num losing its Eq superclass): Text.Read.Lex.readOctP Comment type: Num a => ReadP a Actual type: (Eq a, Num a) => ReadP a not following the Exceptions change: GHC.Conc.childHandler Comment type: Exception -> IO () Actual type: SomeException -> IO () or just always been wrong: GHC.Stable.deRefStablePtr Comment type: StablePtr a -> a Actual type: StablePtr a -> IO a
Diffstat (limited to 'libraries/base/Debug')
-rw-r--r--libraries/base/Debug/Trace.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/base/Debug/Trace.hs b/libraries/base/Debug/Trace.hs
index 998b4a4b5e..f5839eead2 100644
--- a/libraries/base/Debug/Trace.hs
+++ b/libraries/base/Debug/Trace.hs
@@ -21,10 +21,10 @@
module Debug.Trace (
-- * Tracing
-- $tracing
- trace, -- :: String -> a -> a
+ trace,
traceShow,
traceStack,
- traceIO, -- :: String -> IO ()
+ traceIO,
putTraceMsg,
-- * Eventlog tracing