text-builder 0.6.6.6 → 0.6.7
raw patch · 2 files changed
+11/−4 lines, 2 filesdep ~text-builder-dev
Dependency ranges changed: text-builder-dev
Files
- library/Text/Builder.hs +9/−2
- text-builder.cabal +2/−2
library/Text/Builder.hs view
@@ -21,6 +21,7 @@ -- ** Textual text,+ lazyText, string, asciiByteString, hexData,@@ -69,6 +70,7 @@ import Data.ByteString (ByteString) import Data.Text (Text)+import qualified Data.Text.Lazy as TextLazy import Text.Builder.Prelude hiding (intercalate, length, null) import qualified TextBuilderDev as Dev @@ -154,14 +156,19 @@ utf8CodeUnits4 = coerce Dev.utf8CodeUnits4 -- | ASCII byte string-{-# INLINEABLE asciiByteString #-}+{-# INLINE asciiByteString #-} asciiByteString :: ByteString -> Builder asciiByteString = coerce Dev.asciiByteString -- | Strict text-{-# INLINEABLE text #-}+{-# INLINE text #-} text :: Text -> Builder text = coerce Dev.text++-- | Lazy text+{-# INLINE lazyText #-}+lazyText :: TextLazy.Text -> Builder+lazyText = coerce Dev.lazyText -- | String {-# INLINE string #-}
text-builder.cabal view
@@ -1,7 +1,7 @@ cabal-version: 3.0 name: text-builder-version: 0.6.6.6+version: 0.6.7 category: Text synopsis: An efficient strict text builder homepage: https://github.com/nikita-volkov/text-builder@@ -31,7 +31,7 @@ base >=4.11 && <5, bytestring >=0.10 && <0.12, text >=1.2 && <3,- text-builder-dev >=0.3 && <0.4,+ text-builder-dev >=0.3.1 && <0.4, test-suite test import: language-settings