X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Data%2FBool.hs;h=ba2d8aea27c0084287a65f2902c6151c12435d6f;hb=HEAD;hp=2515d5884e38879c9211d808f2a50dbb16c60016;hpb=f7a485978f04e84b086f1974b88887cc72d832d0;p=ghc-base.git diff --git a/Data/Bool.hs b/Data/Bool.hs index 2515d58..ba2d8ae 100644 --- a/Data/Bool.hs +++ b/Data/Bool.hs @@ -1,4 +1,5 @@ -{-# OPTIONS -fno-implicit-prelude #-} +{-# LANGUAGE CPP, NoImplicitPrelude #-} + ----------------------------------------------------------------------------- -- | -- Module : Data.Bool @@ -9,18 +10,31 @@ -- Stability : experimental -- Portability : portable -- --- The Bool type and related functions. +-- The 'Bool' type and related functions. -- ----------------------------------------------------------------------------- module Data.Bool ( + -- * Booleans Bool(..), - (&&), -- :: Bool -> Bool -> Bool - (||), -- :: Bool -> Bool -> Bool - not, -- :: Bool -> Bool - otherwise, -- :: Bool + -- ** Operations + (&&), -- :: Bool -> Bool -> Bool + (||), -- :: Bool -> Bool -> Bool + not, -- :: Bool -> Bool + otherwise, -- :: Bool ) where #ifdef __GLASGOW_HASKELL__ import GHC.Base #endif + +#ifdef __NHC__ +import Prelude +import Prelude + ( Bool(..) + , (&&) + , (||) + , not + , otherwise + ) +#endif