text 0.11.1.8 → 0.11.1.9
raw patch · 4 files changed
+15/−7 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Data/Text/Array.hs +4/−0
- Data/Text/Foreign.hs +4/−0
- tests/tests/src/Data/Text/Tests/QuickCheckUtils.hs +6/−6
- text.cabal +1/−1
Data/Text/Array.hs view
@@ -60,7 +60,11 @@ #if defined(ASSERTS) import Control.Exception (assert) #endif+#if __GLASGOW_HASKELL__ >= 702+import Control.Monad.ST.Unsafe (unsafeIOToST)+#else import Control.Monad.ST (unsafeIOToST)+#endif import Data.Bits ((.&.), xor) import Data.Text.Unsafe.Base (inlinePerformIO) import Data.Text.UnsafeShift (shiftL, shiftR)
Data/Text/Foreign.hs view
@@ -33,7 +33,11 @@ #if defined(ASSERTS) import Control.Exception (assert) #endif+#if __GLASGOW_HASKELL__ >= 702+import Control.Monad.ST.Unsafe (unsafeIOToST)+#else import Control.Monad.ST (unsafeIOToST)+#endif import Data.Text.Internal (Text(..), empty) import Data.Text.Unsafe (lengthWord16) import qualified Data.Text.Array as A
tests/tests/src/Data/Text/Tests/QuickCheckUtils.hs view
@@ -276,13 +276,13 @@ -- Newline and NewlineMode have standard Show instance from GHC 7 onwards #if __GLASGOW_HASKELL__ < 700-instance Show Newline where- show CRLF = "CRLF"- show LF = "LF"+instance Show IO.Newline where+ show IO.CRLF = "CRLF"+ show IO.LF = "LF" -instance Show NewlineMode where- show (NewlineMode i o) = "NewlineMode { inputNL = " ++ show i ++- ", outputNL = " ++ show o ++ " }"+instance Show IO.NewlineMode where+ show (IO.NewlineMode i o) = "NewlineMode { inputNL = " ++ show i +++ ", outputNL = " ++ show o ++ " }" # endif instance Arbitrary IO.NewlineMode where
text.cabal view
@@ -1,5 +1,5 @@ name: text-version: 0.11.1.8+version: 0.11.1.9 homepage: https://github.com/bos/text bug-reports: https://github.com/bos/text/issues synopsis: An efficient packed Unicode text type.