|
1 | | -{-# LANGUAGE BangPatterns #-} |
2 | 1 | {-# LANGUAGE CPP #-} |
3 | 2 | {-# LANGUAGE MagicHash #-} |
4 | 3 | {-# LANGUAGE PatternSynonyms #-} |
5 | 4 | {-# LANGUAGE RankNTypes #-} |
6 | | -{-# LANGUAGE RecordWildCards #-} |
7 | 5 | {-# LANGUAGE UnboxedTuples #-} |
8 | 6 | {-# LANGUAGE UnliftedFFITypes #-} |
9 | 7 |
|
10 | 8 | {-# OPTIONS_GHC -fno-warn-unused-matches #-} |
| 9 | +{- HLINT ignore "Redundant guard" -} |
| 10 | + |
11 | 11 | -- | |
12 | 12 | -- Module : Data.Text.Array |
13 | 13 | -- Copyright : (c) 2009, 2010, 2011 Bryan O'Sullivan |
@@ -61,9 +61,6 @@ module Data.Text.Array |
61 | 61 | #if defined(ASSERTS) |
62 | 62 | import GHC.Stack (HasCallStack) |
63 | 63 | #endif |
64 | | -#if !MIN_VERSION_base(4,11,0) |
65 | | -import Foreign.C.Types (CInt(..)) |
66 | | -#endif |
67 | 64 | import GHC.Exts hiding (toList) |
68 | 65 | import GHC.ST (ST(..), runST) |
69 | 66 | import GHC.Word (Word8(..)) |
@@ -350,12 +347,5 @@ compareInternal |
350 | 347 | -> Int |
351 | 348 | compareInternal (ByteArray src1#) (I# off1#) (ByteArray src2#) (I# off2#) (I# count#) = i |
352 | 349 | where |
353 | | -#if MIN_VERSION_base(4,11,0) |
354 | 350 | i = I# (compareByteArrays# src1# off1# src2# off2# count#) |
355 | | -#else |
356 | | - i = fromIntegral (memcmp src1# off1# src2# off2# count#) |
357 | | - |
358 | | -foreign import ccall unsafe "_hs_text_memcmp2" memcmp |
359 | | - :: ByteArray# -> Int# -> ByteArray# -> Int# -> Int# -> CInt |
360 | | -#endif |
361 | 351 | {-# INLINE compareInternal #-} |
0 commit comments