Skip to content

Commit 11ab3e1

Browse files
committed
globally: hide Prelude.<>, where appropriate
1 parent cc25530 commit 11ab3e1

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

Data/Text/Buildable.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ import Foreign.Ptr (IntPtr, WordPtr, Ptr, ptrToWordPtr)
3737
import qualified Data.Double.Conversion.Text as C
3838
import qualified Data.Text as ST
3939
import qualified Data.Text.Lazy as LT
40+
#if MIN_VERSION_base(4,11,0)
41+
import Prelude hiding ((<>))
42+
#endif
4043

4144
-- | The class of types that can be rendered to a 'Builder'.
4245
class Buildable p where

Data/Text/Format.hs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ import Data.Text.Format.Params (Params(..))
4141
import Data.Text.Format.Types.Internal (Format(..), Only(..), Shown(..))
4242
import Data.Text.Format.Types.Internal (Hex(..))
4343
import Data.Text.Lazy.Builder
44-
import Prelude hiding (exp, print)
44+
import Prelude hiding (exp, print
45+
#if MIN_VERSION_base(4,11,0)
46+
, (<>)
47+
#endif
48+
)
4549
import System.IO (Handle)
4650
import qualified Data.Double.Conversion.Text as C
4751
import qualified Data.Text as ST

Data/Text/Format/Int.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ import Data.Word (Word, Word8, Word16, Word32, Word64)
2424
import GHC.Base (quotInt, remInt)
2525
import GHC.Num (quotRemInteger)
2626
import GHC.Types (Int(..))
27+
#if MIN_VERSION_base(4,11,0)
28+
import Prelude hiding ((<>))
29+
#endif
2730

2831
#ifdef __GLASGOW_HASKELL__
2932
# if __GLASGOW_HASKELL__ < 611

0 commit comments

Comments
 (0)