[project @ 2005-03-15 13:38:27 by simonmar]
[ghc-base.git] / Data / Bool.hs
index 181df1e..0e14538 100644 (file)
@@ -1,22 +1,22 @@
-{-# OPTIONS -fno-implicit-prelude #-}
+{-# OPTIONS_GHC -fno-implicit-prelude #-}
 -----------------------------------------------------------------------------
 -- |
 -- Module      :  Data.Bool
 -- Copyright   :  (c) The University of Glasgow 2001
--- License     :  BSD-style (see the file libraries/core/LICENSE)
+-- License     :  BSD-style (see the file libraries/base/LICENSE)
 -- 
 -- Maintainer  :  libraries@haskell.org
 -- Stability   :  experimental
 -- Portability :  portable
 --
--- $Id: Bool.hs,v 1.3 2002/04/24 16:31:39 simonmar Exp $
---
--- The Bool type and related functions.
+-- The 'Bool' type and related functions.
 --
 -----------------------------------------------------------------------------
 
 module Data.Bool (
+   -- * Booleans
    Bool(..),
+   -- ** Operations 
    (&&),       -- :: Bool -> Bool -> Bool
    (||),       -- :: Bool -> Bool -> Bool
    not,                -- :: Bool -> Bool
@@ -26,3 +26,14 @@ module Data.Bool (
 #ifdef __GLASGOW_HASKELL__
 import GHC.Base
 #endif
+
+#ifdef __NHC__
+import Prelude
+import Prelude
+  ( Bool(..)
+  , (&&)
+  , (||)
+  , not
+  , otherwise
+  )
+#endif