10ca90a33474660734184206c42985cb1f7f5d08
[ghc-base.git] / Data / Bool.hs
1 {-# OPTIONS_GHC -XNoImplicitPrelude #-}
2 -----------------------------------------------------------------------------
3 -- |
4 -- Module      :  Data.Bool
5 -- Copyright   :  (c) The University of Glasgow 2001
6 -- License     :  BSD-style (see the file libraries/base/LICENSE)
7 -- 
8 -- Maintainer  :  libraries@haskell.org
9 -- Stability   :  experimental
10 -- Portability :  portable
11 --
12 -- The 'Bool' type and related functions.
13 --
14 -----------------------------------------------------------------------------
15
16 module Data.Bool (
17    -- * Booleans
18    Bool(..),
19    -- ** Operations 
20    (&&),        -- :: Bool -> Bool -> Bool
21    (||),        -- :: Bool -> Bool -> Bool
22    not,         -- :: Bool -> Bool
23    otherwise,   -- :: Bool
24   ) where
25
26 #ifdef __GLASGOW_HASKELL__
27 import GHC.Base
28 #endif
29
30 #ifdef __NHC__
31 import Prelude
32 import Prelude
33   ( Bool(..)
34   , (&&)
35   , (||)
36   , not
37   , otherwise
38   )
39 #endif