[project @ 2002-05-09 13:15:07 by simonmar]
authorsimonmar <unknown>
Thu, 9 May 2002 13:15:08 +0000 (13:15 +0000)
committersimonmar <unknown>
Thu, 9 May 2002 13:15:08 +0000 (13:15 +0000)
Various tweaks needed to get the source processed cleanly with Haddock.

22 files changed:
Control/Arrow.hs
Control/Monad/Error.hs
Control/Monad/Fix.hs
Control/Monad/Identity.hs
Control/Monad/Monoid.hs
Control/Monad/RWS.hs
Control/Monad/Reader.hs
Control/Monad/State.hs
Control/Monad/Trans.hs
Control/Monad/Writer.hs
Data/Array/IO.hs
Data/Array/ST.hs
Data/FiniteMap.hs
Data/PackedString.hs
Debug/QuickCheck.hs
Debug/QuickCheck/Batch.hs
Debug/QuickCheck/Poly.hs
Debug/QuickCheck/Utils.hs
GHC/IOBase.lhs
System/Console/GetOpt.hs
System/Info.hs
Text/PrettyPrint/HughesPJ.hs

index 35cc00d..04f31a6 100644 (file)
@@ -20,6 +20,8 @@
 
 module Control.Arrow where
 
+import Prelude
+
 import Control.Monad
 import Control.Monad.Fix
 
index 6f3967a..6df213e 100644 (file)
@@ -10,9 +10,9 @@
 --
 -- The Error monad.
 --
--- Rendered by Michael Weber <michael.weber@post.rwth-aachen.de>,
+-- Rendered by Michael Weber <mailto:michael.weber@post.rwth-aachen.de>,
 --     inspired by the Haskell Monad Template Library from
---      \A[HREF="http://www.cse.ogi.edu/~andy"]{Andy Gill}}
+--     Andy Gill (<http://www.cse.ogi.edu/~andy>)
 --
 -----------------------------------------------------------------------------
 
index 1122588..53d5c42 100644 (file)
 --
 -- The Fix monad.
 --
---       Inspired by the paper:
---       \em{Functional Programming with Overloading and
---           Higher-Order Polymorphism},
---         \A[HREF="http://www.cse.ogi.edu/~mpj"]{Mark P Jones},
---               Advanced School of Functional Programming, 1995.}
---
+--       Inspired by the paper
+--       /Functional Programming with Overloading and
+--           Higher-Order Polymorphism/, 
+--         Mark P Jones (<http://www.cse.ogi.edu/~mpj>)
+--               Advanced School of Functional Programming, 1995.
 -----------------------------------------------------------------------------
 
 module Control.Monad.Fix (
index e86da0b..282eddb 100644 (file)
 --
 -- The Identity monad.
 --
---       Inspired by the paper:
---       \em{Functional Programming with Overloading and
---           Higher-Order Polymorphism},
---         \A[HREF="http://www.cse.ogi.edu/~mpj"]{Mark P Jones},
---               Advanced School of Functional Programming, 1995.}
+--       Inspired by the paper
+--       /Functional Programming with Overloading and
+--           Higher-Order Polymorphism/, 
+--         Mark P Jones (<http://www.cse.ogi.edu/~mpj>)
+--               Advanced School of Functional Programming, 1995.
 --
 -----------------------------------------------------------------------------
 
index 23b10b3..f892455 100644 (file)
 -- Declaration of the Monoid class,and instances for list and functions
 --
 --       Inspired by the paper
---       \em{Functional Programming with Overloading and
---           Higher-Order Polymorphism},
---         \A[HREF="http://www.cse.ogi.edu/~mpj"]{Mark P Jones},
---               Advanced School of Functional Programming, 1995.}
+--       /Functional Programming with Overloading and
+--           Higher-Order Polymorphism/, 
+--         Mark P Jones (<http://www.cse.ogi.edu/~mpj>)
+--               Advanced School of Functional Programming, 1995.
 -----------------------------------------------------------------------------
 
 module Control.Monad.Monoid (
index a494ef0..7f7f98b 100644 (file)
@@ -7,16 +7,15 @@
 -- 
 -- Maintainer  :  libraries@haskell.org
 -- Stability   :  experimental
--- Portability :  non-portable ( requires mulit-parameter type classes,
---                              requires functional dependencies )
+-- Portability :  non-portable ( mulit-param classes, functional dependencies )
 --
 -- Declaration of the MonadRWS class.
 --
 --       Inspired by the paper
---       \em{Functional Programming with Overloading and
---           Higher-Order Polymorphism},
---         \A[HREF="http://www.cse.ogi.edu/~mpj"]{Mark P Jones},
---               Advanced School of Functional Programming, 1995.}
+--       /Functional Programming with Overloading and
+--           Higher-Order Polymorphism/, 
+--         Mark P Jones (<http://www.cse.ogi.edu/~mpj>)
+--               Advanced School of Functional Programming, 1995.
 -----------------------------------------------------------------------------
 
 module Control.Monad.RWS (
index 8957404..758a19d 100644 (file)
@@ -7,16 +7,15 @@
 -- 
 -- Maintainer  :  libraries@haskell.org
 -- Stability   :  experimental
--- Portability :  non-portable ( requires mulit-parameter type classes,
---                              requires functional dependencies )
+-- Portability :  non-portable ( mulit-param classes, functional dependencies )
 --
 -- Declaration of the Monoid class,and instances for list and functions
 --
 --       Inspired by the paper
---       \em{Functional Programming with Overloading and
---           Higher-Order Polymorphism},
---         \A[HREF="http://www.cse.ogi.edu/~mpj"]{Mark P Jones},
---               Advanced School of Functional Programming, 1995.}
+--       /Functional Programming with Overloading and
+--           Higher-Order Polymorphism/, 
+--         Mark P Jones (<http://www.cse.ogi.edu/~mpj>)
+--               Advanced School of Functional Programming, 1995.
 -----------------------------------------------------------------------------
 
 module Control.Monad.Reader (
index 878b83f..2353d76 100644 (file)
@@ -7,16 +7,15 @@
 -- 
 -- Maintainer  :  libraries@haskell.org
 -- Stability   :  experimental
--- Portability :  non-portable ( requires mulit-parameter type classes,
---                              requires functional dependencies )
+-- Portability :  non-portable ( mulit-param classes, functional dependencies )
 --
 -- State monads.
 --
 --       Inspired by the paper
---       \em{Functional Programming with Overloading and
---           Higher-Order Polymorphism},
---         \A[HREF="http://www.cse.ogi.edu/~mpj"]{Mark P Jones},
---               Advanced School of Functional Programming, 1995.}
+--       /Functional Programming with Overloading and
+--           Higher-Order Polymorphism/, 
+--         Mark P Jones (<http://www.cse.ogi.edu/~mpj>)
+--               Advanced School of Functional Programming, 1995.
 -----------------------------------------------------------------------------
 
 module Control.Monad.State (
index 81ff397..929b242 100644 (file)
 -- The MonadTrans class.
 --
 --       Inspired by the paper
---       \em{Functional Programming with Overloading and
---           Higher-Order Polymorphism},
---         \A[HREF="http://www.cse.ogi.edu/~mpj"]{Mark P Jones},
---               Advanced School of Functional Programming, 1995.}
+--       /Functional Programming with Overloading and
+--           Higher-Order Polymorphism/, 
+--         Mark P Jones (<http://www.cse.ogi.edu/~mpj>)
+--               Advanced School of Functional Programming, 1995.
 -----------------------------------------------------------------------------
 
 module Control.Monad.Trans (
index e79abb9..af7add6 100644 (file)
@@ -7,16 +7,15 @@
 -- 
 -- Maintainer  :  libraries@haskell.org
 -- Stability   :  experimental
--- Portability :  non-portable ( requires mulit-parameter type classes,
---                              requires functional dependencies )
+-- Portability :  non-portable ( mulit-param classes, functional dependencies )
 --
 -- The MonadWriter class.
 --
 --       Inspired by the paper
---       \em{Functional Programming with Overloading and
---           Higher-Order Polymorphism},
---         \A[HREF="http://www.cse.ogi.edu/~mpj"]{Mark P Jones},
---               Advanced School of Functional Programming, 1995.}
+--       /Functional Programming with Overloading and
+--           Higher-Order Polymorphism/, 
+--         Mark P Jones (<http://www.cse.ogi.edu/~mpj>)
+--               Advanced School of Functional Programming, 1995.
 -----------------------------------------------------------------------------
 
 module Control.Monad.Writer (
index b47e147..5c6e361 100644 (file)
@@ -9,7 +9,7 @@
 -- Stability   :  experimental
 -- Portability :  non-portable
 --
--- Mutable boxed/unboxed arrays in the IO monad.
+-- Mutable boxed and unboxed arrays in the IO monad.
 --
 -----------------------------------------------------------------------------
 
index d8c3028..e71dece 100644 (file)
@@ -8,7 +8,7 @@
 -- Stability   :  experimental
 -- Portability :  non-portable
 --
--- Mutable boxed/unboxed arrays in the ST monad.
+-- Mutable boxed and unboxed arrays in the ST monad.
 --
 -----------------------------------------------------------------------------
 
index a44bb36..88279bd 100644 (file)
@@ -201,7 +201,7 @@ emptyFM
     bottom = panic "emptyFM"
 -}
 
--- #define EmptyFM (Branch _ _ IF_GHC(0#,0) _ _)
+--  #define EmptyFM (Branch _ _ IF_GHC(0#,0) _ _)
 
 unitFM key elt = Branch key elt IF_GHC(1#,1) emptyFM emptyFM
 
index cc5240e..fd4528b 100644 (file)
@@ -10,7 +10,7 @@
 --
 -- The PackedString type, and associated operations.
 --
--- Original GHC implementation by Bryan O'Sullivan, 
+-- Original GHC implementation by Bryan O\'Sullivan, 
 -- rewritten to use UArray by Simon Marlow.
 --
 -----------------------------------------------------------------------------
index 7bf87f2..99af89b 100644 (file)
@@ -67,6 +67,8 @@ module Debug.QuickCheck
   )
  where
 
+import Prelude
+
 import System.Random
 import Data.List( group, sort, intersperse )
 import Control.Monad( liftM2, liftM3, liftM4 )
index 66b0109..1b5cafa 100644 (file)
@@ -88,6 +88,8 @@ module Debug.QuickCheck.Batch
    , bottom            -- :: a                 {- _|_ -}
    ) where
 
+import Prelude
+
 import System.Random
 import Control.Concurrent
 import Control.Exception hiding (catch, evaluate)
index 82bda15..f254432 100644 (file)
@@ -26,6 +26,8 @@ module Debug.QuickCheck.Poly
   , OrdGAMMA
   ) where
 
+import Prelude
+
 import Debug.QuickCheck
 import Debug.QuickCheck.Utils
 
index 4705615..8d22c27 100644 (file)
@@ -20,6 +20,8 @@ module Debug.QuickCheck.Utils
   , isTotalOrder
   ) where
 
+import Prelude
+
 import Debug.QuickCheck
 
 isAssociativeBy :: (Show a,Testable prop) 
index 9c2c034..3e6462a 100644 (file)
@@ -24,7 +24,10 @@ import Data.Maybe  ( Maybe(..) )
 import GHC.Show
 import GHC.List
 import GHC.Read
+
+#ifndef __HADDOCK__
 import {-# SOURCE #-} Data.Dynamic
+#endif
 
 -- ---------------------------------------------------------------------------
 -- The IO Monad
@@ -270,22 +273,22 @@ type FilePath = String
 -- effects. For output, items are written out from the internal
 -- buffer according to the buffer mode:
 --
--- * line-buffering  the entire output buffer is written
+-- o line-buffering  the entire output buffer is written
 --   out whenever a newline is output, the output buffer overflows, 
 --   a flush is issued, or the handle is closed.
 --
--- * block-buffering the entire output buffer is written out whenever 
+-- o block-buffering the entire output buffer is written out whenever 
 --   it overflows, a flush is issued, or the handle
 --   is closed.
 --
--- * no-buffering output is written immediately, and never stored
+-- o no-buffering output is written immediately, and never stored
 --   in the output buffer.
 --
 -- The output buffer is emptied as soon as it has been written out.
 
 -- Similarly, input occurs according to the buffer mode for handle {\em hdl}.
 
--- * line-buffering when the input buffer for the handle is not empty,
+-- o line-buffering when the input buffer for the handle is not empty,
 --   the next item is obtained from the buffer;
 --   otherwise, when the input buffer is empty,
 --   characters up to and including the next newline
@@ -293,10 +296,10 @@ type FilePath = String
 --   are available until the newline character is
 --   available.
 --
--- * block-buffering when the input buffer for the handle becomes empty,
+-- o block-buffering when the input buffer for the handle becomes empty,
 --   the next block of data is read into this buffer.
 --
--- * no-buffering the next input item is read and returned.
+-- o no-buffering the next input item is read and returned.
 
 -- For most implementations, physical files will normally be block-buffered 
 -- and terminals will normally be line-buffered. (the IO interface provides
index ca32286..72ffea2 100644 (file)
@@ -8,7 +8,7 @@
 -- Stability   :  experimental
 -- Portability :  portable
 --
--- A Haskell port of GNU's getopt library 
+-- A Haskell port of the GNU getopt library 
 --
 -----------------------------------------------------------------------------
 
index fce5b43..a064991 100644 (file)
@@ -9,7 +9,7 @@
 -- Portability :  portable
 --
 -- Misc information about the characteristics of the host 
--- architecture/machine lucky enough to run your program.
+-- architecture\/machine lucky enough to run your program.
 --
 -----------------------------------------------------------------------------
 
index 0bcfbbb..5ad32c0 100644 (file)
@@ -8,12 +8,12 @@
 -- Stability   :  provisional
 -- Portability :  portable
 --
--- John Hughes's and Simon Peyton Jones's Pretty Printer Combinators
+-- John Hughes\'s and Simon Peyton Jones\'s Pretty Printer Combinators
 -- 
--- Based on "The Design of a Pretty-printing Library"
+-- Based on /The Design of a Pretty-printing Library/
 -- in Advanced Functional Programming,
 -- Johan Jeuring and Erik Meijer (eds), LNCS 925
--- http://www.cs.chalmers.se/~rjmh/Papers/pretty.ps
+-- <http://www.cs.chalmers.se/~rjmh/Papers/pretty.ps>
 --
 -- Heavily modified by Simon Peyton Jones, Dec 96
 --