<commit_before>homepage: https://github.com/haskell-Z/z-data
changelog-type: markdown
hash: 71bcb9c1314674ce44ea3a7e045db3902077eaa8a084d4d401d29b4df9de66fe
test-bench-deps:
  Z-Data: -any
  base: -any
  hspec: '>=2.5.4'
  word8: -any
  HUnit: -any
  integer-gmp: '>=0.2 && <1.1'
  quickcheck-instances: -any
  hashable: -any
  scientific: -any
  QuickCheck: '>=2.10'
  primitive: -any
maintainer: <EMAIL>
synopsis: Array, vector and text
changelog: "# Revision history for Z-Data\n\n## 0.1.7.1  -- 2020-10-17\n\n* Add `singleton`
  to `Z.IO.CBytes`, fix `unpack` when there're trailing illegal UTF8 codepoints.\n\n##
  0.1.7.0  -- 2020-10-15\n\n* Change `defaultChunkSize` from 32K to 16K to reduce
  memory overhead.\n* Change `CBytes` to use null terminated byte array, add JSON
  instances.\n* Add JSON instances to various arrays, Fix `Char`'s JSON instance to
  reject string length > 1.\n* Add `decodeText` and `decodeText'` to `Z.Data.JSON`.\n\n##
  0.1.6.1  -- 2020-10-09\n\n* Remove `Str` newtype.\n* Make `CBytes` a newtype.\n*
  Add JSON instances for `ExitCode`, Add Unaligned instances for `Ptr a`.\n* Use type
  alias instead of newtypes for `Locale`, `Category` in `Z.Data.Text`. \n\n## 0.1.6.0
  \ -- 2020-10-09\n\n* Rename `ToText` to `ShowT`, `toText` to `showT`, add FFI types
  instances, remove `Str` newtype.\n* Change `Text` 's `Show` and `ShowT` escaping
  rules to reuse JSON escaping, remove `Read` instance.\n* Add `ShowT` instances to
  `CBytes` and FFI types.\n\n## 0.1.5.0  -- 2020-10-02\n\n* Rework `CBytes` type to
  use unpinned byte array, add `withCBytesUnsafe`, `allocCBytesUnsafe`.\n* Export
  `head`, `tail`, `init`, `last` from `Z.IO.Vector`, `Z.IO.Text` (well, safety first).\n*
  Change `unalignedSize` in `UnalignedAccess` class's type to take a instance type
  and return `Int`.\n* Rename `UnalignedAccess` to `Unaligned`.\n\n## 0.1.4.2  --
  2020-10-02\n\n* Remove `withMutablePrimArrayUnsafe/Safe` from `Z.Foreign`.\n* Add
  `allocPrimArrayUnsafe/Safe`, `allocPrimVectorUnsafe/Safe`, `allocBytesUnsafe/Safe`,
  `fromPtr/fromPrimPtr`\n  to `Z.Foreign`.\n\n## 0.1.4.1  -- 2020-09-29\n\n* Add `fromNullTerminated`
  to `Z.Foreign`(and `Z.Data.Vector.Base`).\n* Change `Category` and `Locale`(`Z.Data.Text`)
  to use pattern synonyms, add `envLocale` to `Z.Data.Text`.\n* Add `validateASCII`
  and `validateASCIIMaybe` to `Z.Data.Text`.\n\n## 0.1.4.0  -- 2020-09-24\n\n* Make
  library works with GHC 8.6 and 8.8 again.\n* Add `pinPrimVector` and `pinPrimArray`
  to `Z.Foreign`.\n* Export `fail'` from `Z.Data.Parser`\n\n## 0.1.3.1  -- 2020-09-24\n\n*
  Change `clearMBA` 's type to match `clearPtr`.\n* Move `peekMBA`, `pokeMBA` to `UnalignedAccess`
  class.\n\n## 0.1.3.0  -- 2020-09-20\n\n* Add indexing funtion to `Z.Data.Vector`
  and `Z.Data.Text`.\n* Add `peekMBA`, `pokeMBA` and `clearMBA` to `Z.Foreign`.\n\n##
  0.1.2.0  -- 2020-09-19\n\n* Rename `read/write/indexWord8ArrayAs` to `read/write/indexWord8ArrayAs#`.\n*
  Add `read/write/indexWord8ArrayAs`, `read/write/indexPrimWord8ArrayAs`.\n* Fix JSON
  encoding code in generic instance(constructor with single payload case).\n\n"
basic-deps:
  case-insensitive: ==1.2.*
  base: '>=4.12 && <5.0'
  unordered-containers: ==0.2.*
  integer-gmp: '>=0.2 && <1.1'
  tagged: ==0.8.*
  ghc-prim: '>=0.5.3 && <0.6.2'
  hashable: ==1.3.*
  deepseq: '>=1.4 && <1.5'
  scientific: ==0.3.*
  QuickCheck: '>=2.10'
  template-haskell: '>=2.14.0'
  primitive: '>=0.7.1 && <0.7.2'
all-versions:
- 0.1.0.0
- 0.1.1.0
- 0.1.2.0
- 0.1.3.0
- 0.1.3.1
- 0.1.4.0
- 0.1.4.1
- 0.1.4.2
- 0.1.5.0
- 0.1.6.0
- 0.1.6.1
- 0.1.7.0
- 0.1.7.1
author: <NAME>, <NAME>
latest: 0.1.7.1
description-type: markdown
description: "## Z-Data\n\n[![Hackage](https://img.shields.io/hackage/v/Z-Data.svg?style=flat)](https://hackage.haskell.org/package/Z-Data)
  [![Linux Build Status](https://github.com/haskell-Z/z-data/workflows/ubuntu-ci/badge.svg)](https://github.com/haskell-Z/z-data/actions)
  [![MacOS Build Status](https://github.com/haskell-Z/z-data/workflows/osx-ci/badge.svg)](https://github.com/haskell-Z/z-data/actions)
  [![Windows Build Status](https://github.com/haskell-Z/z-data/workflows/win-ci/badge.svg)](https://github.com/haskell-Z/z-data/actions)\n\nThis
  package is part of [Z](https://github.com/haskell-Z/Z) project, provides basic data
  structures and functions:\n\n* Array, vector(array slice)\n* Text based UTF-8, basic
  unicode manipulating\n* FFI utilties\n* Parsing and building monad\n* JSON encoding
  and decoding\n\n## Requirements\n\n* A working haskell compiler system, GHC(>=8.6),<commit_msg>Update from Hackage at 2020-10-17T07:22:50Z<commit_after>homepage: https://github.com/haskell-Z/z-data
changelog-type: markdown
hash: 82883fb0ac5c2ee193efb981abfe364e05b5c50f296bfa559b75aa039f07692f
test-bench-deps:
  Z-Data: -any
  base: -any
  hspec: '>=2.5.4'
  word8: -any
  HUnit: -any
  integer-gmp: '>=0.2 && <1.1'
  quickcheck-instances: -any
  hashable: -any
  scientific: -any
  QuickCheck: '>=2.10'
  primitive: -any
maintainer: <EMAIL>
synopsis: Array, vector and text
changelog: "# Revision history for Z-Data\n\n## 0.1.7.2  -- 2020-10-17\n\n* Add `withPrimArrayListUnsafe`,
  `withPrimArrayListSafe`, `withCBytesUnsafe`, `withCBytesListSafe`.\n\n## 0.1.7.1
  \ -- 2020-10-17\n\n* Add `singleton` to `Z.IO.CBytes`, fix `unpack` when there're
  trailing illegal UTF8 codepoints.\n\n## 0.1.7.0  -- 2020-10-15\n\n* Change `defaultChunkSize`
  from 32K to 16K to reduce memory overhead.\n* Change `CBytes` to use null terminated
  byte array, add JSON instances.\n* Add JSON instances to various arrays, Fix `Char`'s
  JSON instance to reject string length > 1.\n* Add `decodeText` and `decodeText'`
  to `Z.Data.JSON`.\n\n## 0.1.6.1  -- 2020-10-09\n\n* Remove `Str` newtype.\n* Make
  `CBytes` a newtype.\n* Add JSON instances for `ExitCode`, Add Unaligned instances
  for `Ptr a`.\n* Use type alias instead of newtypes for `Locale`, `Category` in `Z.Data.Text`.
  \n\n## 0.1.6.0  -- 2020-10-09\n\n* Rename `ToText` to `ShowT`, `toText` to `showT`,
  add FFI types instances, remove `Str` newtype.\n* Change `Text` 's `Show` and `ShowT`
  escaping rules to reuse JSON escaping, remove `Read` instance.\n* Add `ShowT` instances
  to `CBytes` and FFI types.\n\n## 0.1.5.0  -- 2020-10-02\n\n* Rework `CBytes` type
  to use unpinned byte array, add `withCBytesUnsafe`, `allocCBytesUnsafe`.\n* Export
  `head`, `tail`, `init`, `last` from `Z.IO.Vector`, `Z.IO.Text` (well, safety first).\n*
  Change `unalignedSize` in `UnalignedAccess` class's type to take a instance type
  and return `Int`.\n* Rename `UnalignedAccess` to `Unaligned`.\n\n## 0.1.4.2  --
  2020-10-02\n\n* Remove `withMutablePrimArrayUnsafe/Safe` from `Z.Foreign`.\n* Add
  `allocPrimArrayUnsafe/Safe`, `allocPrimVectorUnsafe/Safe`, `allocBytesUnsafe/Safe`,
  `fromPtr/fromPrimPtr`\n  to `Z.Foreign`.\n\n## 0.1.4.1  -- 2020-09-29\n\n* Add `fromNullTerminated`
  to `Z.Foreign`(and `Z.Data.Vector.Base`).\n* Change `Category` and `Locale`(`Z.Data.Text`)
  to use pattern synonyms, add `envLocale` to `Z.Data.Text`.\n* Add `validateASCII`
  and `validateASCIIMaybe` to `Z.Data.Text`.\n\n## 0.1.4.0  -- 2020-09-24\n\n* Make
  library works with GHC 8.6 and 8.8 again.\n* Add `pinPrimVector` and `pinPrimArray`
  to `Z.Foreign`.\n* Export `fail'` from `Z.Data.Parser`\n\n## 0.1.3.1  -- 2020-09-24\n\n*
  Change `clearMBA` 's type to match `clearPtr`.\n* Move `peekMBA`, `pokeMBA` to `UnalignedAccess`
  class.\n\n## 0.1.3.0  -- 2020-09-20\n\n* Add indexing funtion to `Z.Data.Vector`
  and `Z.Data.Text`.\n* Add `peekMBA`, `pokeMBA` and `clearMBA` to `Z.Foreign`.\n\n##
  0.1.2.0  -- 2020-09-19\n\n* Rename `read/write/indexWord8ArrayAs` to `read/write/indexWord8ArrayAs#`.\n*
  Add `read/write/indexWord8ArrayAs`, `read/write/indexPrimWord8ArrayAs`.\n* Fix JSON
  encoding code in generic instance(constructor with single payload case).\n\n"
basic-deps:
  case-insensitive: ==1.2.*
  base: '>=4.12 && <5.0'
  unordered-containers: ==0.2.*
  integer-gmp: '>=0.2 && <1.1'
  tagged: ==0.8.*
  ghc-prim: '>=0.5.3 && <0.6.2'
  hashable: ==1.3.*
  deepseq: '>=1.4 && <1.5'
  scientific: ==0.3.*
  QuickCheck: '>=2.10'
  template-haskell: '>=2.14.0'
  primitive: '>=0.7.1 && <0.7.2'
all-versions:
- 0.1.0.0
- 0.1.1.0
- 0.1.2.0
- 0.1.3.0
- 0.1.3.1
- 0.1.4.0
- 0.1.4.1
- 0.1.4.2
- 0.1.5.0
- 0.1.6.0
- 0.1.6.1
- 0.1.7.0
- 0.1.7.1
- 0.1.7.2
author: <NAME>, <NAME>
latest: 0.1.7.2
description-type: markdown
description: "## Z-Data\n\n[![Hackage](https://img.shields.io/hackage/v/Z-Data.svg?style=flat)](https://hackage.haskell.org/package/Z-Data)
  [![Linux Build Status](https://github.com/haskell-Z/z-data/workflows/ubuntu-ci/badge.svg)](https://github.com/haskell-Z/z-data/actions)
  [![MacOS Build Status](https://github.com/haskell-Z/z-data/workflows/osx-ci/badge.svg)](https://github.com/haskell-Z/z-data/actions)
  [![Windows Build Status](https://github.com/haskell-Z/z-data/workflows/win-ci/badge.svg)](https://github.com/haskell-Z/z-data/actions)\n\nThis
  package is part of [Z](https://github.com/haskell-Z/Z) project, provides basic data
  structures and functions:\n\n* Array, vector(array slice)\n* Text based UTF-8, basic
  unicode manipulating\n* FFI utilties\n* Parsing and building monad\n* JSON encoding
  and decoding\n\n## Requirements\n\n* A working haskell compiler system, GHC(>=8.6),
{'fraction_non_alphanumeric': 0.19269386883144626, 'fraction_numerical': 0.06643879512924589, 'mean_word_length': 3.4971181556195967, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 33, 'https://': 20, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 52, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '479317', 'n_tokens_mistral': 4242, 'n_tokens_neox': 3920, 'n_words': 857}