cabal-version: 2.2 name: text version: 2.0.2 x-revision: 1 homepage: https://github.com/haskell/text bug-reports: https://github.com/haskell/text/issues synopsis: An efficient packed Unicode text type. description: . An efficient packed, immutable Unicode text type (both strict and lazy). . The 'Text' type represents Unicode character strings, in a time and space-efficient manner. This package provides text processing capabilities that are optimized for performance critical use, both in terms of large data quantities and high speed. . The 'Text' type provides character-encoding, type-safe case conversion via whole-string case conversion functions (see "Data.Text"). It also provides a range of functions for converting 'Text' values to and from 'ByteStrings', using several standard encodings (see "Data.Text.Encoding"). . Efficient locale-sensitive support for text IO is also supported (see "Data.Text.IO"). . These modules are intended to be imported qualified, to avoid name clashes with Prelude functions, e.g. . > import qualified Data.Text as T . == ICU Support . To use an extended and very rich family of functions for working with Unicode text (including normalization, regular expressions, non-standard encodings, text breaking, and locales), see the [text-icu package](https://hackage.haskell.org/package/text-icu) based on the well-respected and liberally licensed [ICU library](http://site.icu-project.org/). license: BSD-2-Clause license-file: LICENSE author: Bryan O'Sullivan maintainer: Haskell Text Team , Core Libraries Committee copyright: 2009-2011 Bryan O'Sullivan, 2008-2009 Tom Harper, 2021 Andrew Lelechenko category: Data, Text build-type: Simple tested-with: GHC == 8.2.2 GHC == 8.4.4 GHC == 8.6.5 GHC == 8.8.4 GHC == 8.10.7 GHC == 9.0.2 GHC == 9.2.4 GHC == 9.4.1 extra-source-files: -- scripts/CaseFolding.txt -- scripts/SpecialCasing.txt README.md changelog.md scripts/*.hs simdutf/LICENSE-APACHE simdutf/LICENSE-MIT simdutf/simdutf.h tests/literal-rule-test.sh tests/LiteralRuleTest.hs flag developer description: operate in developer mode default: False manual: True flag simdutf description: use simdutf library default: True manual: True library c-sources: cbits/is_ascii.c cbits/measure_off.c cbits/reverse.c cbits/utils.c hs-source-dirs: src if flag(simdutf) include-dirs: simdutf cxx-sources: simdutf/simdutf.cpp cbits/validate_utf8.cpp cxx-options: -std=c++17 cpp-options: -DSIMDUTF if impl(ghc >= 9.4) build-depends: system-cxx-std-lib == 1.0 elif os(darwin) || os(freebsd) extra-libraries: c++ elif os(openbsd) extra-libraries: c++ c++abi pthread elif os(windows) -- GHC's Windows toolchain is based on clang/libc++ in GHC 9.4 and later if impl(ghc < 9.3) extra-libraries: stdc++ else extra-libraries: c++ c++abi elif os(linux) extra-libraries: stdc++ else -- This is supposed to be under arch(wasm32), but we can't do that yet -- since cabal check would fail with unrecognized arch, see -- https://github.com/haskell/cabal/pull/8096 for the fix. -- TODO: when a new cabal release is out with that fix, bump cabal in CI -- and add proper arch(wasm32) declaration here. cpp-options: -DSIMDUTF_NO_THREADS cxx-options: -fno-exceptions extra-libraries: c++ c++abi -- Certain version of GHC crash on Windows, when TemplateHaskell encounters C++. -- https://gitlab.haskell.org/ghc/ghc/-/issues/19417 if flag(simdutf) && os(windows) && impl(ghc >= 8.8 && < 8.10.5 || == 9.0.1) build-depends: base < 0 -- For GHC 8.2, 8.6.3 and 8.10.1 even TH + C crash Windows linker. if os(windows) && impl(ghc >= 8.2 && < 8.4 || == 8.6.3 || == 8.10.1) build-depends: base < 0 -- GHC 8.10 has linking issues (probably TH-related) on ARM. if (arch(aarch64) || arch(arm)) && impl(ghc == 8.10.*) build-depends: base < 0 -- Subword primitives in GHC 9.2.1 are broken on ARM platforms. if (arch(aarch64) || arch(arm)) && impl(ghc == 9.2.1) build-depends: base < 0 -- NetBSD + GHC 9.2.1 + TH + C++ does not work together. -- https://gitlab.haskell.org/ghc/ghc/-/issues/22577 if flag(simdutf) && os(netbsd) && impl(ghc < 9.4) build-depends: base < 0 exposed-modules: Data.Text Data.Text.Array Data.Text.Encoding Data.Text.Encoding.Error Data.Text.Foreign Data.Text.IO Data.Text.Internal Data.Text.Internal.Builder Data.Text.Internal.Builder.Functions Data.Text.Internal.Builder.Int.Digits Data.Text.Internal.Builder.RealFloat.Functions Data.Text.Internal.ByteStringCompat Data.Text.Internal.PrimCompat Data.Text.Internal.Encoding Data.Text.Internal.Encoding.Fusion Data.Text.Internal.Encoding.Fusion.Common Data.Text.Internal.Encoding.Utf16 Data.Text.Internal.Encoding.Utf32 Data.Text.Internal.Encoding.Utf8 Data.Text.Internal.Fusion Data.Text.Internal.Fusion.CaseMapping Data.Text.Internal.Fusion.Common Data.Text.Internal.Fusion.Size Data.Text.Internal.Fusion.Types Data.Text.Internal.IO Data.Text.Internal.Lazy Data.Text.Internal.Lazy.Encoding.Fusion Data.Text.Internal.Lazy.Fusion Data.Text.Internal.Lazy.Search Data.Text.Internal.Private Data.Text.Internal.Read Data.Text.Internal.Search Data.Text.Internal.StrictBuilder Data.Text.Internal.Unsafe Data.Text.Internal.Unsafe.Char Data.Text.Lazy Data.Text.Lazy.Builder Data.Text.Lazy.Builder.Int Data.Text.Lazy.Builder.RealFloat Data.Text.Lazy.Encoding Data.Text.Lazy.IO Data.Text.Lazy.Internal Data.Text.Lazy.Read Data.Text.Read Data.Text.Unsafe other-modules: Data.Text.Show build-depends: array >= 0.3 && < 0.6, base >= 4.10 && < 5, binary >= 0.5 && < 0.9, bytestring >= 0.10.4 && < 0.13, deepseq >= 1.1 && < 1.5, ghc-prim >= 0.2 && < 0.11, template-haskell >= 2.5 && < 2.21 ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2 if flag(developer) ghc-options: -fno-ignore-asserts cpp-options: -DASSERTS if impl(ghc >= 9.2.2) ghc-options: -fcheck-prim-bounds default-language: Haskell2010 default-extensions: NondecreasingIndentation other-extensions: BangPatterns CPP DeriveDataTypeable ExistentialQuantification ForeignFunctionInterface GeneralizedNewtypeDeriving MagicHash OverloadedStrings Rank2Types RankNTypes RecordWildCards Safe ScopedTypeVariables TemplateHaskellQuotes Trustworthy TypeFamilies UnboxedTuples UnliftedFFITypes source-repository head type: git location: https://github.com/haskell/text test-suite tests type: exitcode-stdio-1.0 ghc-options: -Wall -threaded -rtsopts hs-source-dirs: tests main-is: Tests.hs other-modules: Tests.Lift Tests.Properties Tests.Properties.Basics Tests.Properties.Builder Tests.Properties.Folds Tests.Properties.Instances Tests.Properties.LowLevel Tests.Properties.Read Tests.Properties.Substrings Tests.Properties.Text Tests.Properties.Transcoding Tests.QuickCheckUtils Tests.Regressions Tests.SlowFunctions Tests.Utils build-depends: QuickCheck >= 2.12.6 && < 2.15, base <5, bytestring, deepseq, directory, ghc-prim, tasty, tasty-hunit, tasty-quickcheck, template-haskell, transformers, text -- Plugin infrastructure does not work properly in 8.6.1, and -- ghc-9.2.1 library depends on parsec, which causes a circular dependency. if impl(ghc >= 8.2.1 && < 8.6 || >= 8.6.2 && < 9.2 || >= 9.2.2) build-depends: tasty-inspection-testing default-language: Haskell2010 default-extensions: NondecreasingIndentation benchmark text-benchmarks type: exitcode-stdio-1.0 ghc-options: -Wall -O2 -rtsopts if impl(ghc >= 8.10) ghc-options: "-with-rtsopts=-A32m --nonmoving-gc" else ghc-options: "-with-rtsopts=-A32m" if impl(ghc >= 8.6) ghc-options: -fproc-alignment=64 build-depends: base, bytestring >= 0.10.4, containers, deepseq, directory, filepath, tasty-bench >= 0.2, text, transformers hs-source-dirs: benchmarks/haskell main-is: Benchmarks.hs other-modules: Benchmarks.Builder Benchmarks.Concat Benchmarks.DecodeUtf8 Benchmarks.EncodeUtf8 Benchmarks.Equality Benchmarks.FileRead Benchmarks.FoldLines Benchmarks.Multilang Benchmarks.Programs.BigTable Benchmarks.Programs.Cut Benchmarks.Programs.Fold Benchmarks.Programs.Sort Benchmarks.Programs.StripTags Benchmarks.Programs.Throughput Benchmarks.Pure Benchmarks.ReadNumbers Benchmarks.Replace Benchmarks.Search Benchmarks.Stream Benchmarks.WordFrequencies default-language: Haskell2010 default-extensions: NondecreasingIndentation other-extensions: DeriveGeneric