← All packages

text2.1.4

An efficient packed Unicode text type.

Open the imported Cabal file ↗

author
Bryan O'Sullivan <bos@serpentine.com>
bug-reports
https://github.com/haskell/text/issues
build-type
Simple
cabal-version
2.2
category
Data, Text
copyright
2009-2011 Bryan O'Sullivan, 2008-2009 Tom Harper, 2021 Andrew Lelechenko
extra-doc-files
README.md changelog.md
extra-source-files
scripts/*.hs simdutf/LICENSE-APACHE simdutf/LICENSE-MIT simdutf/simdutf_c.h simdutf/simdutf.h tests/literal-rule-test.sh tests/LiteralRuleTest.hs
homepage
https://github.com/haskell/text
license
BSD-2-Clause
license-file
LICENSE
maintainer
Haskell Text Team <andrew.lelechenko@gmail.com>, Core Libraries Committee
name
text
synopsis
An efficient packed Unicode text type.
tested-with
GHC == 8.4.4 GHC == 8.6.5 GHC == 8.8.4 GHC == 8.10.7 GHC == 9.0.2 GHC == 9.2.8 GHC == 9.4.8 GHC == 9.6.7 GHC == 9.8.4 GHC == 9.10.1 GHC == 9.12.2
version
2.1.4
Show the complete metadata as JSON
{
  "schemaVersion": 1,
  "name": "text",
  "version": "2.1.4",
  "cabalVersion": "2.2",
  "buildType": "Simple",
  "fields": {
    "author": [
      "Bryan O'Sullivan <bos@serpentine.com>"
    ],
    "bug-reports": [
      "https://github.com/haskell/text/issues"
    ],
    "build-type": [
      "Simple"
    ],
    "cabal-version": [
      "2.2"
    ],
    "category": [
      "Data, Text"
    ],
    "copyright": [
      "2009-2011 Bryan O'Sullivan, 2008-2009 Tom Harper, 2021 Andrew Lelechenko"
    ],
    "description": [
      ".\nAn efficient packed, immutable Unicode text type (both strict and\nlazy).\n.\nThe 'Text' type represents Unicode character strings, in a time and\nspace-efficient manner. This package provides text processing\ncapabilities that are optimized for performance critical use, both\nin terms of large data quantities and high speed.\n.\nThe 'Text' type provides character-encoding, type-safe case\nconversion via whole-string case conversion functions (see \"Data.Text\").\nIt also provides a range of functions for converting 'Text' values to\nand from 'ByteStrings', using several standard encodings\n(see \"Data.Text.Encoding\").\n.\nEfficient locale-sensitive support for text IO is also supported\n(see \"Data.Text.IO\").\n.\nThese modules are intended to be imported qualified, to avoid name\nclashes with Prelude functions, e.g.\n.\n> import qualified Data.Text as T\n.\n== ICU Support\n.\nTo use an extended and very rich family of functions for working\nwith Unicode text (including normalization, regular expressions,\nnon-standard encodings, text breaking, and locales), see\nthe [text-icu package](https://hackage.haskell.org/package/text-icu)\nbased on the well-respected and liberally\nlicensed [ICU library](http://site.icu-project.org/)."
    ],
    "extra-doc-files": [
      "README.md\nchangelog.md"
    ],
    "extra-source-files": [
      "scripts/*.hs\nsimdutf/LICENSE-APACHE\nsimdutf/LICENSE-MIT\nsimdutf/simdutf_c.h\nsimdutf/simdutf.h\ntests/literal-rule-test.sh\ntests/LiteralRuleTest.hs"
    ],
    "homepage": [
      "https://github.com/haskell/text"
    ],
    "license": [
      "BSD-2-Clause"
    ],
    "license-file": [
      "LICENSE"
    ],
    "maintainer": [
      "Haskell Text Team <andrew.lelechenko@gmail.com>, Core Libraries Committee"
    ],
    "name": [
      "text"
    ],
    "synopsis": [
      "An efficient packed Unicode text type."
    ],
    "tested-with": [
      "GHC == 8.4.4\nGHC == 8.6.5\nGHC == 8.8.4\nGHC == 8.10.7\nGHC == 9.0.2\nGHC == 9.2.8\nGHC == 9.4.8\nGHC == 9.6.7\nGHC == 9.8.4\nGHC == 9.10.1\nGHC == 9.12.2"
    ],
    "version": [
      "2.1.4"
    ]
  },
  "components": [
    {
      "kind": "library",
      "name": "main",
      "tree": {
        "data": {
          "buildable": null,
          "exposedModules": [
            "Data.Text",
            "Data.Text.Array",
            "Data.Text.Encoding",
            "Data.Text.Encoding.Error",
            "Data.Text.Foreign",
            "Data.Text.IO",
            "Data.Text.IO.Utf8",
            "Data.Text.Internal",
            "Data.Text.Internal.ArrayUtils",
            "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.Internal.Validate",
            "Data.Text.Internal.Validate.Native",
            "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"
          ],
          "otherModules": [
            "Data.Text.Show",
            "Data.Text.Internal.Measure",
            "Data.Text.Internal.Reverse",
            "Data.Text.Internal.Transformation",
            "Data.Text.Internal.IsAscii"
          ],
          "dependencies": [
            {
              "package": "array",
              "range": ">=0.3 && <0.6",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "base",
              "range": ">=4.11 && <5",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "binary",
              "range": ">=0.8.3 && <0.9",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "bytestring",
              "range": ">=0.10.4 && <0.13",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "deepseq",
              "range": ">=1.1 && <1.6",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "ghc-prim",
              "range": ">=0.2 && <0.15",
              "libraries": [
                "main"
              ]
            }
          ],
          "fields": {}
        },
        "branches": [
          {
            "condition": {
              "or": [
                {
                  "arch": "javascript"
                },
                {
                  "flag": "pure-haskell"
                }
              ]
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [],
                "fields": {}
              },
              "branches": []
            },
            "else": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [],
                "fields": {}
              },
              "branches": [
                {
                  "condition": {
                    "arch": "aarch64"
                  },
                  "then": {
                    "data": {
                      "buildable": null,
                      "exposedModules": [],
                      "otherModules": [],
                      "dependencies": [],
                      "fields": {}
                    },
                    "branches": []
                  },
                  "else": {
                    "data": {
                      "buildable": null,
                      "exposedModules": [],
                      "otherModules": [],
                      "dependencies": [],
                      "fields": {}
                    },
                    "branches": []
                  }
                }
              ]
            }
          },
          {
            "condition": {
              "and": [
                {
                  "flag": "simdutf"
                },
                {
                  "not": {
                    "or": [
                      {
                        "arch": "javascript"
                      },
                      {
                        "flag": "pure-haskell"
                      }
                    ]
                  }
                }
              ]
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [
                  "Data.Text.Internal.Validate.Simd"
                ],
                "otherModules": [],
                "dependencies": [],
                "fields": {}
              },
              "branches": [
                {
                  "condition": {
                    "compiler": "ghc",
                    "range": ">=9.4"
                  },
                  "then": {
                    "data": {
                      "buildable": null,
                      "exposedModules": [],
                      "otherModules": [],
                      "dependencies": [
                        {
                          "package": "system-cxx-std-lib",
                          "range": "==1.0",
                          "libraries": [
                            "main"
                          ]
                        }
                      ],
                      "fields": {}
                    },
                    "branches": []
                  },
                  "else": {
                    "data": {
                      "buildable": null,
                      "exposedModules": [],
                      "otherModules": [],
                      "dependencies": [],
                      "fields": {}
                    },
                    "branches": [
                      {
                        "condition": {
                          "or": [
                            {
                              "os": "osx"
                            },
                            {
                              "os": "freebsd"
                            }
                          ]
                        },
                        "then": {
                          "data": {
                            "buildable": null,
                            "exposedModules": [],
                            "otherModules": [],
                            "dependencies": [],
                            "fields": {
                              "extra-libraries": [
                                "c++"
                              ]
                            }
                          },
                          "branches": []
                        },
                        "else": {
                          "data": {
                            "buildable": null,
                            "exposedModules": [],
                            "otherModules": [],
                            "dependencies": [],
                            "fields": {}
                          },
                          "branches": [
                            {
                              "condition": {
                                "os": "openbsd"
                              },
                              "then": {
                                "data": {
                                  "buildable": null,
                                  "exposedModules": [],
                                  "otherModules": [],
                                  "dependencies": [],
                                  "fields": {
                                    "extra-libraries": [
                                      "c++ c++abi pthread"
                                    ]
                                  }
                                },
                                "branches": []
                              },
                              "else": {
                                "data": {
                                  "buildable": null,
                                  "exposedModules": [],
                                  "otherModules": [],
                                  "dependencies": [],
                                  "fields": {}
                                },
                                "branches": [
                                  {
                                    "condition": {
                                      "os": "windows"
                                    },
                                    "then": {
                                      "data": {
                                        "buildable": null,
                                        "exposedModules": [],
                                        "otherModules": [],
                                        "dependencies": [],
                                        "fields": {}
                                      },
                                      "branches": [
                                        {
                                          "condition": {
                                            "compiler": "ghc",
                                            "range": "<9.3"
                                          },
                                          "then": {
                                            "data": {
                                              "buildable": null,
                                              "exposedModules": [],
                                              "otherModules": [],
                                              "dependencies": [],
                                              "fields": {
                                                "extra-libraries": [
                                                  "stdc++"
                                                ]
                                              }
                                            },
                                            "branches": []
                                          },
                                          "else": {
                                            "data": {
                                              "buildable": null,
                                              "exposedModules": [],
                                              "otherModules": [],
                                              "dependencies": [],
                                              "fields": {
                                                "extra-libraries": [
                                                  "c++ c++abi"
                                                ]
                                              }
                                            },
                                            "branches": []
                                          }
                                        }
                                      ]
                                    },
                                    "else": {
                                      "data": {
                                        "buildable": null,
                                        "exposedModules": [],
                                        "otherModules": [],
                                        "dependencies": [],
                                        "fields": {}
                                      },
                                      "branches": [
                                        {
                                          "condition": {
                                            "arch": "wasm32"
                                          },
                                          "then": {
                                            "data": {
                                              "buildable": null,
                                              "exposedModules": [],
                                              "otherModules": [],
                                              "dependencies": [],
                                              "fields": {
                                                "extra-libraries": [
                                                  "c++ c++abi"
                                                ]
                                              }
                                            },
                                            "branches": []
                                          },
                                          "else": {
                                            "data": {
                                              "buildable": null,
                                              "exposedModules": [],
                                              "otherModules": [],
                                              "dependencies": [],
                                              "fields": {
                                                "extra-libraries": [
                                                  "stdc++"
                                                ]
                                              }
                                            },
                                            "branches": []
                                          }
                                        }
                                      ]
                                    }
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                }
              ]
            },
            "else": null
          },
          {
            "condition": {
              "and": [
                {
                  "and": [
                    {
                      "flag": "simdutf"
                    },
                    {
                      "os": "windows"
                    }
                  ]
                },
                {
                  "compiler": "ghc",
                  "range": ">=8.8 && <8.10.5 || ==9.0.1"
                }
              ]
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "base",
                    "range": "<0",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            },
            "else": null
          },
          {
            "condition": {
              "and": [
                {
                  "os": "windows"
                },
                {
                  "compiler": "ghc",
                  "range": "(>=8.2 && <8.4 || ==8.6.3) || ==8.10.1"
                }
              ]
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "base",
                    "range": "<0",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            },
            "else": null
          },
          {
            "condition": {
              "and": [
                {
                  "or": [
                    {
                      "arch": "aarch64"
                    },
                    {
                      "arch": "arm"
                    }
                  ]
                },
                {
                  "compiler": "ghc",
                  "range": ">=8.10 && <8.11"
                }
              ]
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "base",
                    "range": "<0",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            },
            "else": null
          },
          {
            "condition": {
              "and": [
                {
                  "or": [
                    {
                      "arch": "aarch64"
                    },
                    {
                      "arch": "arm"
                    }
                  ]
                },
                {
                  "compiler": "ghc",
                  "range": "==9.2.1"
                }
              ]
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "base",
                    "range": "<0",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            },
            "else": null
          },
          {
            "condition": {
              "and": [
                {
                  "and": [
                    {
                      "flag": "simdutf"
                    },
                    {
                      "os": "netbsd"
                    }
                  ]
                },
                {
                  "compiler": "ghc",
                  "range": "<9.4"
                }
              ]
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "base",
                    "range": "<0",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            },
            "else": null
          },
          {
            "condition": {
              "compiler": "ghc",
              "range": "<9.14"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "template-haskell",
                    "range": ">=2.5 && <3",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            },
            "else": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "template-haskell-lift",
                    "range": ">=0.1 && <0.2",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            }
          },
          {
            "condition": {
              "compiler": "ghc",
              "range": "<9.4"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "data-array-byte",
                    "range": ">=0.1 && <0.2",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            },
            "else": null
          },
          {
            "condition": {
              "flag": "developer"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [],
                "fields": {}
              },
              "branches": [
                {
                  "condition": {
                    "compiler": "ghc",
                    "range": ">=9.2.2"
                  },
                  "then": {
                    "data": {
                      "buildable": null,
                      "exposedModules": [],
                      "otherModules": [],
                      "dependencies": [],
                      "fields": {}
                    },
                    "branches": []
                  },
                  "else": null
                }
              ]
            },
            "else": null
          }
        ]
      }
    },
    {
      "kind": "test-suite",
      "name": "tests",
      "tree": {
        "data": {
          "buildable": null,
          "exposedModules": [],
          "otherModules": [
            "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.Properties.CornerCases",
            "Tests.Properties.Validate",
            "Tests.QuickCheckUtils",
            "Tests.RebindableSyntaxTest",
            "Tests.Regressions",
            "Tests.SlowFunctions",
            "Tests.ShareEmpty",
            "Tests.Utils"
          ],
          "dependencies": [
            {
              "package": "QuickCheck",
              "range": ">=2.12.6 && <2.18",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "base",
              "range": "<5",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "binary",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "bytestring",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "deepseq",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "ghc-prim",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "tasty",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "tasty-hunit",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "tasty-quickcheck",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "temporary",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "transformers",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "text",
              "range": "-any",
              "libraries": [
                "main"
              ]
            }
          ],
          "fields": {
            "type": [
              "exitcode-stdio-1.0"
            ]
          }
        },
        "branches": [
          {
            "condition": {
              "compiler": "ghc",
              "range": "<9.4"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "data-array-byte",
                    "range": ">=0.1 && <0.2",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            },
            "else": null
          },
          {
            "condition": {
              "compiler": "ghc",
              "range": "<9.14"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "template-haskell",
                    "range": "-any",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            },
            "else": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "template-haskell-lift",
                    "range": "-any",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            }
          },
          {
            "condition": {
              "compiler": "ghc",
              "range": "(>=8.2.1 && <8.6 || >=8.6.2 && <9.2) || >=9.2.2"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "tasty-inspection-testing",
                    "range": "-any",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            },
            "else": null
          },
          {
            "condition": {
              "os": "openbsd"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "splitmix",
                    "range": "<0.1.3 || >0.1.3.1",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            },
            "else": null
          }
        ]
      }
    },
    {
      "kind": "benchmark",
      "name": "text-benchmarks",
      "tree": {
        "data": {
          "buildable": null,
          "exposedModules": [],
          "otherModules": [
            "Benchmarks.Builder",
            "Benchmarks.Concat",
            "Benchmarks.DecodeUtf8",
            "Benchmarks.EncodeUtf8",
            "Benchmarks.Equality",
            "Benchmarks.FileRead",
            "Benchmarks.FileWrite",
            "Benchmarks.FoldLines",
            "Benchmarks.Micro",
            "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"
          ],
          "dependencies": [
            {
              "package": "base",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "bytestring",
              "range": ">=0.10.4",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "containers",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "deepseq",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "directory",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "filepath",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "tasty-bench",
              "range": ">=0.2",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "temporary",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "text",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "transformers",
              "range": "-any",
              "libraries": [
                "main"
              ]
            }
          ],
          "fields": {
            "type": [
              "exitcode-stdio-1.0"
            ]
          }
        },
        "branches": [
          {
            "condition": {
              "compiler": "ghc",
              "range": ">=8.6"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [],
                "fields": {}
              },
              "branches": []
            },
            "else": null
          },
          {
            "condition": {
              "flag": "extendedbenchmarks"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [],
                "fields": {}
              },
              "branches": []
            },
            "else": null
          }
        ]
      }
    }
  ],
  "setupDependencies": [],
  "flags": [
    {
      "name": "developer",
      "default": false,
      "manual": true,
      "description": "operate in developer mode"
    },
    {
      "name": "simdutf",
      "default": true,
      "manual": true,
      "description": "use simdutf library, causes Data.Text.Internal.Validate.Simd to be exposed"
    },
    {
      "name": "pure-haskell",
      "default": false,
      "manual": true,
      "description": "Don't use text's standard C routines\nNB: This feature is not fully implemented. Several C routines are still in\nuse.\nWhen this flag is true, text will use pure Haskell variants of the\nroutines. This is not recommended except for use with GHC's JavaScript\nbackend.\nThis flag also disables simdutf."
    },
    {
      "name": "extendedbenchmarks",
      "default": false,
      "manual": true,
      "description": "Runs extra benchmarks which can be very slow."
    }
  ],
  "sourceRepositories": [
    {
      "kind": "head",
      "fields": {
        "location": [
          "https://github.com/haskell/text"
        ],
        "type": [
          "git"
        ]
      }
    }
  ],
  "warnings": [],
  "sourceUrl": "https://hackage.haskell.org/package/text-2.1.4/text.cabal",
  "sha256": "32823fd40b02db9b4ef4c527c9c3e6c1dcd365b8a79521f9d78d2c0a0a8d64f1",
  "importedAt": "2026-10-04T08:58:43.912Z",
  "dependencies": [
    {
      "package": "array",
      "range": ">=0.3 && <0.6",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    },
    {
      "package": "base",
      "range": ">=4.11 && <5",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    },
    {
      "package": "binary",
      "range": ">=0.8.3 && <0.9",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    },
    {
      "package": "bytestring",
      "range": ">=0.10.4 && <0.13",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    },
    {
      "package": "deepseq",
      "range": ">=1.1 && <1.6",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    },
    {
      "package": "ghc-prim",
      "range": ">=0.2 && <0.15",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    },
    {
      "package": "system-cxx-std-lib",
      "range": "==1.0",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "and": [
            {
              "flag": "simdutf"
            },
            {
              "not": {
                "or": [
                  {
                    "arch": "javascript"
                  },
                  {
                    "flag": "pure-haskell"
                  }
                ]
              }
            }
          ]
        },
        {
          "compiler": "ghc",
          "range": ">=9.4"
        }
      ]
    },
    {
      "package": "base",
      "range": "<0",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "and": [
            {
              "and": [
                {
                  "flag": "simdutf"
                },
                {
                  "os": "windows"
                }
              ]
            },
            {
              "compiler": "ghc",
              "range": ">=8.8 && <8.10.5 || ==9.0.1"
            }
          ]
        }
      ]
    },
    {
      "package": "base",
      "range": "<0",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "and": [
            {
              "os": "windows"
            },
            {
              "compiler": "ghc",
              "range": "(>=8.2 && <8.4 || ==8.6.3) || ==8.10.1"
            }
          ]
        }
      ]
    },
    {
      "package": "base",
      "range": "<0",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "and": [
            {
              "or": [
                {
                  "arch": "aarch64"
                },
                {
                  "arch": "arm"
                }
              ]
            },
            {
              "compiler": "ghc",
              "range": ">=8.10 && <8.11"
            }
          ]
        }
      ]
    },
    {
      "package": "base",
      "range": "<0",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "and": [
            {
              "or": [
                {
                  "arch": "aarch64"
                },
                {
                  "arch": "arm"
                }
              ]
            },
            {
              "compiler": "ghc",
              "range": "==9.2.1"
            }
          ]
        }
      ]
    },
    {
      "package": "base",
      "range": "<0",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "and": [
            {
              "and": [
                {
                  "flag": "simdutf"
                },
                {
                  "os": "netbsd"
                }
              ]
            },
            {
              "compiler": "ghc",
              "range": "<9.4"
            }
          ]
        }
      ]
    },
    {
      "package": "template-haskell",
      "range": ">=2.5 && <3",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "compiler": "ghc",
          "range": "<9.14"
        }
      ]
    },
    {
      "package": "template-haskell-lift",
      "range": ">=0.1 && <0.2",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "not": {
            "compiler": "ghc",
            "range": "<9.14"
          }
        }
      ]
    },
    {
      "package": "data-array-byte",
      "range": ">=0.1 && <0.2",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "compiler": "ghc",
          "range": "<9.4"
        }
      ]
    },
    {
      "package": "QuickCheck",
      "range": ">=2.12.6 && <2.18",
      "libraries": [
        "main"
      ],
      "component": "test-suite:tests",
      "conditions": []
    },
    {
      "package": "base",
      "range": "<5",
      "libraries": [
        "main"
      ],
      "component": "test-suite:tests",
      "conditions": []
    },
    {
      "package": "binary",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:tests",
      "conditions": []
    },
    {
      "package": "bytestring",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:tests",
      "conditions": []
    },
    {
      "package": "deepseq",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:tests",
      "conditions": []
    },
    {
      "package": "ghc-prim",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:tests",
      "conditions": []
    },
    {
      "package": "tasty",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:tests",
      "conditions": []
    },
    {
      "package": "tasty-hunit",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:tests",
      "conditions": []
    },
    {
      "package": "tasty-quickcheck",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:tests",
      "conditions": []
    },
    {
      "package": "temporary",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:tests",
      "conditions": []
    },
    {
      "package": "transformers",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:tests",
      "conditions": []
    },
    {
      "package": "text",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:tests",
      "conditions": []
    },
    {
      "package": "data-array-byte",
      "range": ">=0.1 && <0.2",
      "libraries": [
        "main"
      ],
      "component": "test-suite:tests",
      "conditions": [
        {
          "compiler": "ghc",
          "range": "<9.4"
        }
      ]
    },
    {
      "package": "template-haskell",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:tests",
      "conditions": [
        {
          "compiler": "ghc",
          "range": "<9.14"
        }
      ]
    },
    {
      "package": "template-haskell-lift",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:tests",
      "conditions": [
        {
          "not": {
            "compiler": "ghc",
            "range": "<9.14"
          }
        }
      ]
    },
    {
      "package": "tasty-inspection-testing",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:tests",
      "conditions": [
        {
          "compiler": "ghc",
          "range": "(>=8.2.1 && <8.6 || >=8.6.2 && <9.2) || >=9.2.2"
        }
      ]
    },
    {
      "package": "splitmix",
      "range": "<0.1.3 || >0.1.3.1",
      "libraries": [
        "main"
      ],
      "component": "test-suite:tests",
      "conditions": [
        {
          "os": "openbsd"
        }
      ]
    },
    {
      "package": "base",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "benchmark:text-benchmarks",
      "conditions": []
    },
    {
      "package": "bytestring",
      "range": ">=0.10.4",
      "libraries": [
        "main"
      ],
      "component": "benchmark:text-benchmarks",
      "conditions": []
    },
    {
      "package": "containers",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "benchmark:text-benchmarks",
      "conditions": []
    },
    {
      "package": "deepseq",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "benchmark:text-benchmarks",
      "conditions": []
    },
    {
      "package": "directory",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "benchmark:text-benchmarks",
      "conditions": []
    },
    {
      "package": "filepath",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "benchmark:text-benchmarks",
      "conditions": []
    },
    {
      "package": "tasty-bench",
      "range": ">=0.2",
      "libraries": [
        "main"
      ],
      "component": "benchmark:text-benchmarks",
      "conditions": []
    },
    {
      "package": "temporary",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "benchmark:text-benchmarks",
      "conditions": []
    },
    {
      "package": "text",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "benchmark:text-benchmarks",
      "conditions": []
    },
    {
      "package": "transformers",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "benchmark:text-benchmarks",
      "conditions": []
    }
  ],
  "exposedModules": [
    "Data.Text",
    "Data.Text.Array",
    "Data.Text.Encoding",
    "Data.Text.Encoding.Error",
    "Data.Text.Foreign",
    "Data.Text.IO",
    "Data.Text.IO.Utf8",
    "Data.Text.Internal",
    "Data.Text.Internal.ArrayUtils",
    "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.Internal.Validate",
    "Data.Text.Internal.Validate.Native",
    "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",
    "Data.Text.Internal.Validate.Simd"
  ],
  "documents": {
    "readme": {
      "status": "available",
      "sha256": "99bf1acbc0fa829473a39c3ad053f6541136379b423783aa7c8be00c3f4b4a01",
      "error": null,
      "checkedAt": "2026-10-04T08:58:45.145Z"
    },
    "changelog": {
      "status": "available",
      "sha256": "d2318730e93f187875f5bfee63afbf2977bb8a34bb50cfe56c0dca24de834536",
      "error": null,
      "checkedAt": "2026-10-04T08:58:44.966Z"
    }
  },
  "versions": [
    {
      "version": "2.1.4",
      "imported_at": "2026-10-04T08:58:43.912Z"
    },
    {
      "version": "2.1.3",
      "imported_at": "2026-10-03T20:44:13.668Z"
    }
  ]
}

Import a package

Enter a package name and an exact version from Hackage. The site contains imported versions only.