<commit_before>homepage: ''
changelog-type: text
hash: 5b454087c0e8b1fa88429bbf640eb8dec2172c7f99297a2fe67acce4a22f5467
test-bench-deps:
  ghc: ! '>=7.10.2'
  filemanip: ! '>=0.3'
  base: <5
  syb: ! '>=0.5'
  ghc-exactprint: ! '>=0.3'
  filepath: ! '>=1.4'
  HUnit: ! '>=1.2'
  containers: ! '>=0.5'
  silently: ! '>=1.2'
  ghc-paths: ! '>=0.1'
  mtl: ! '>=2.2.1'
  directory: ! '>=1.2'
maintainer: <EMAIL>
synopsis: ExactPrint for GHC
changelog: ! "2016-07-24 v0.5.2\n\t* Move annotations from the `RdrName` to `HsVar`
  and `PatVar` for\n\tconsistency.\n\n2016-06-03 v0.5.1.1\n\t* Fix haddocks for GHC
  8.0 (@phadej)\n\t* Add test files for ghc710-only to dist tarball (#41)\n2016-06-02
  v0.5.1.0\n\t* Support for GHC 8.0.1\n\t* Add graftT to the Transform module, courtesy
  of @xich\n\t* Add semi-pure parsing function, courtesy of @lspitzner\n2015-12-13
  v0.5.0.1\n\t* Fix a bug (#34) where quasiquote values would not roundtrip.\n\n2015-11-21
  v0.5\n\t* Add new options to enable \"rigid\" layout rules. This makes the\n\tannotations
  more rigid in the sense that if you move AST fragments around\n\tit is more likely
  that their internal components will remain in the same\n\tposition relative to each
  other.\n\n\t* Fix a bug where files failed to parse if the file started with comments.\n\n\t*
  Fix a bug where \"[e||\" was turned into \"[||\"\n\n\n2015-11-15 v0.4.2\n\t* Fix
  round tripping of arrow notation using \">-\" and \">>-\".\n2015-09-28 v0.4.1\n\t*
  Revert removing cast from markLocated until further inspection in HaRe.\n2015-09-28
  v0.4.0.0\n\t* Rework HasDecls so that there are only instances for which it is\n\tidempotent.
  Provide functions for managing an LHsBind which is not\n\tidempotent, and performing
  general transformations on an AST\n\tincluding FunBinds.\n\t* Manage LHsDecl instances
  so that the Annotation always attaches\n\tto the wrapped item, so that they can
  be seamlessly used in a top\n\tlevel (wrapped) or local (unwrapped) context.\n\t*
  Tweak transformations based on HaRe integration.\n\t* This release supports the
  HaRe 8.0 release, which finally works\n\twith GHC 7.10.2\n\t* Rename `exactPrintWithAnns`
  to `exactPrint`. This will possibly\n\tbreak earlier client libraries, but is a
  simple rename.\n\t* Bring in semanticPrintM which allows wrapper functions to be\n\tprovided
  for the generated output, for use when emitting e.g. HTML\n\tmarked up source.\n\n2015-08-13
  v0.3.1.1\n\t* Add missing test files to sdist, closes #23\n\n2015-08-02 v0.3.1\n\n\t*
  Mark LHS at the beginning of HsCase and HsIf expressions\n\t* Mark trailing semi
  colons on ANN pragmas\n\t* Correctly mark trailing semi colons distinctly from internal
  semicolons\n\t* setPrecedingLinesDecl applies the setting to both the Decl and\n\t
  \ the item wrapped in the Decl.\n\n\n2015-07-20 v0.3\n\tSubstantial rework to manage
  changes introduced in GHC 7.10.2 rc2\n\tand beyond.\n\n\tSimplification of the core
  Annotation data type coupled with\n\tsimplification of the various phases, by @mpickering.\n\n\tIntroduction
  of initial Transform functions, driven by the needs\n\tof HaRe [1] and apply-refact
  [2] for applying hlint hints. Both of\n\tthese are currently works in progress,
  and this module is likely\n\tto change substantially in future releases.\n\n\tSupport
  for processing files making use of CPP.\n\n\tLinks\n\t[1] https://github.com/alanz/HaRe/tree/wip\n\t[2]
  https://github.com/mpickering/apply-refact\n\n2015-03-24 v0.2\n\tThis release contains
  a major rewrite of all internal modules.\n\n\tThe external interface has also changed
  significantly. A description is\n\tomitted.\n\n\t# Top-level changes\n\tThe most
  notable change is that the common structor of the modules known as\n\t`ExactPrint`
  and `Annotate` has been factored out into a common module\n\t(`Annotate`). The aforementioned
  modules are now known as `Delta` and\n\t`Print` and contain functions to interpret
  this common structure.\n\n\tThe top level module `ExactPrint` now just reexports
  a consistent interface\n\tfrom the base modules.\n\n\tIntroduced a new module `Lookup`
  which contains a mapping from AnnKeywordId\n\tto their String representation.\n\n\t#
  Internal Changes\n\n\t`Annotate` contains all the information about which annotations
  appear on\n\teach AST element. This is achieved by building up a syntax tree (using
  a\n\tfree monad) which can then be interpreted by programs requiring access to\n\tthis
  information.\n\n\t# Layout compensation\n\n\tThe method which compensates for layout
  rules has been clarified.\n\n\t\t1. When the Layout Flag is activated in `Annotate`,
  we mark\n\tthe current column as the start of the layout block.\n\n\t\t2. This is
  important when we move to a new line. We take the offset at\n\t\tthat current point
  to be the baseline and calculate the correct next\n\t\tposition based on this.\n\n\t\t3.
  This method is very general as one can think of a entire source file as\n\t\tobeying
  layout rules where the offset is equal to zero.\n\n\n2015-03-11 v0.1.1.0\n\tHandles
  indentation when the AST is edited\n\tMajor rework of internal monads by @mpickering\n2015-01-28
  v0.1.0.1\n\tUpdate cabal to prevent building with GHC 7.70,thanks @peti\n2015-01-24
  v0.1.0.0\n\tInitial release, for GHC 7.10 RC 2\n"
basic-deps:
  free: ! '>=4.12'
  ghc: ! '>=7.10.2'
  bytestring: ! '>=0.10.6'
  base: ! '>=4.7 && <5.0'
  syb: ! '>=0.5'
  filepath: ! '>=1.4'
  containers: ! '>=0.5'
  ghc-paths: ! '>=0.1'
  mtl: ! '>=2.2.1'
  directory: ! '>=1.2'
all-versions:
- '0.1.0.0'
- '0.1.0.1'
- '0.1.1.0'
- '0.2'
- '0.3'
- '0.3.1'
- '0.3.1.1'
- '0.4.0.0'
- '0.4.1.0'
- '0.4.2.0'
- '0.5.0.0'
- '0.5.0.1'
- '0.5.1.0'
- '0.5.1.1'
- '0.5.2'
author: <NAME>, <NAME>
latest: '0.5.2'
description-type: haddock
description: ! 'Using the API Annotations available from GHC 7.10.2, this

  library provides a means to round trip any code that can

  be compiled by GHC, currently excluding lhs files.


  It does this with a phased approach


  * Delta - converts GHC API Annotations into relative

  offsets, indexed by SrcSpan


  * Transform - functions to facilitate changes to

  the AST, adjusting the annotations generated in the<commit_msg>Update from Hackage at 2016-07-24T21:53:58+0000<commit_after>homepage: ''
changelog-type: text
hash: a827b3d20d53ba86d5ec27c2295c55a94f976a41d99b0a8a26b278e8e2d1b091
test-bench-deps:
  ghc: ! '>=7.10.2'
  filemanip: ! '>=0.3'
  base: <5
  syb: ! '>=0.5'
  ghc-exactprint: ! '>=0.3'
  filepath: ! '>=1.4'
  HUnit: ! '>=1.2'
  containers: ! '>=0.5'
  silently: ! '>=1.2'
  ghc-paths: ! '>=0.1'
  mtl: ! '>=2.2.1'
  directory: ! '>=1.2'
maintainer: <EMAIL>
synopsis: ExactPrint for GHC
changelog: ! "2016-07-24 v0.5.2.1\n\t* Remove additional files from release tarball\n\n2016-07-24
  v0.5.2\n\t* Move annotations from the `RdrName` to `HsVar` and `PatVar` for\n\tconsistency.\n\n2016-06-03
  v0.5.1.1\n\t* Fix haddocks for GHC 8.0 (@phadej)\n\t* Add test files for ghc710-only
  to dist tarball (#41)\n2016-06-02 v0.5.1.0\n\t* Support for GHC 8.0.1\n\t* Add graftT
  to the Transform module, courtesy of @xich\n\t* Add semi-pure parsing function,
  courtesy of @lspitzner\n2015-12-13 v0.5.0.1\n\t* Fix a bug (#34) where quasiquote
  values would not roundtrip.\n\n2015-11-21 v0.5\n\t* Add new options to enable \"rigid\"
  layout rules. This makes the\n\tannotations more rigid in the sense that if you
  move AST fragments around\n\tit is more likely that their internal components will
  remain in the same\n\tposition relative to each other.\n\n\t* Fix a bug where files
  failed to parse if the file started with comments.\n\n\t* Fix a bug where \"[e||\"
  was turned into \"[||\"\n\n\n2015-11-15 v0.4.2\n\t* Fix round tripping of arrow
  notation using \">-\" and \">>-\".\n2015-09-28 v0.4.1\n\t* Revert removing cast
  from markLocated until further inspection in HaRe.\n2015-09-28 v0.4.0.0\n\t* Rework
  HasDecls so that there are only instances for which it is\n\tidempotent. Provide
  functions for managing an LHsBind which is not\n\tidempotent, and performing general
  transformations on an AST\n\tincluding FunBinds.\n\t* Manage LHsDecl instances so
  that the Annotation always attaches\n\tto the wrapped item, so that they can be
  seamlessly used in a top\n\tlevel (wrapped) or local (unwrapped) context.\n\t* Tweak
  transformations based on HaRe integration.\n\t* This release supports the HaRe 8.0
  release, which finally works\n\twith GHC 7.10.2\n\t* Rename `exactPrintWithAnns`
  to `exactPrint`. This will possibly\n\tbreak earlier client libraries, but is a
  simple rename.\n\t* Bring in semanticPrintM which allows wrapper functions to be\n\tprovided
  for the generated output, for use when emitting e.g. HTML\n\tmarked up source.\n\n2015-08-13
  v0.3.1.1\n\t* Add missing test files to sdist, closes #23\n\n2015-08-02 v0.3.1\n\n\t*
  Mark LHS at the beginning of HsCase and HsIf expressions\n\t* Mark trailing semi
  colons on ANN pragmas\n\t* Correctly mark trailing semi colons distinctly from internal
  semicolons\n\t* setPrecedingLinesDecl applies the setting to both the Decl and\n\t
  \ the item wrapped in the Decl.\n\n\n2015-07-20 v0.3\n\tSubstantial rework to manage
  changes introduced in GHC 7.10.2 rc2\n\tand beyond.\n\n\tSimplification of the core
  Annotation data type coupled with\n\tsimplification of the various phases, by @mpickering.\n\n\tIntroduction
  of initial Transform functions, driven by the needs\n\tof HaRe [1] and apply-refact
  [2] for applying hlint hints. Both of\n\tthese are currently works in progress,
  and this module is likely\n\tto change substantially in future releases.\n\n\tSupport
  for processing files making use of CPP.\n\n\tLinks\n\t[1] https://github.com/alanz/HaRe/tree/wip\n\t[2]
  https://github.com/mpickering/apply-refact\n\n2015-03-24 v0.2\n\tThis release contains
  a major rewrite of all internal modules.\n\n\tThe external interface has also changed
  significantly. A description is\n\tomitted.\n\n\t# Top-level changes\n\tThe most
  notable change is that the common structor of the modules known as\n\t`ExactPrint`
  and `Annotate` has been factored out into a common module\n\t(`Annotate`). The aforementioned
  modules are now known as `Delta` and\n\t`Print` and contain functions to interpret
  this common structure.\n\n\tThe top level module `ExactPrint` now just reexports
  a consistent interface\n\tfrom the base modules.\n\n\tIntroduced a new module `Lookup`
  which contains a mapping from AnnKeywordId\n\tto their String representation.\n\n\t#
  Internal Changes\n\n\t`Annotate` contains all the information about which annotations
  appear on\n\teach AST element. This is achieved by building up a syntax tree (using
  a\n\tfree monad) which can then be interpreted by programs requiring access to\n\tthis
  information.\n\n\t# Layout compensation\n\n\tThe method which compensates for layout
  rules has been clarified.\n\n\t\t1. When the Layout Flag is activated in `Annotate`,
  we mark\n\tthe current column as the start of the layout block.\n\n\t\t2. This is
  important when we move to a new line. We take the offset at\n\t\tthat current point
  to be the baseline and calculate the correct next\n\t\tposition based on this.\n\n\t\t3.
  This method is very general as one can think of a entire source file as\n\t\tobeying
  layout rules where the offset is equal to zero.\n\n\n2015-03-11 v0.1.1.0\n\tHandles
  indentation when the AST is edited\n\tMajor rework of internal monads by @mpickering\n2015-01-28
  v0.1.0.1\n\tUpdate cabal to prevent building with GHC 7.70,thanks @peti\n2015-01-24
  v0.1.0.0\n\tInitial release, for GHC 7.10 RC 2\n"
basic-deps:
  free: ! '>=4.12'
  ghc: ! '>=7.10.2'
  bytestring: ! '>=0.10.6'
  base: ! '>=4.7 && <5.0'
  syb: ! '>=0.5'
  filepath: ! '>=1.4'
  containers: ! '>=0.5'
  ghc-paths: ! '>=0.1'
  mtl: ! '>=2.2.1'
  directory: ! '>=1.2'
all-versions:
- '0.1.0.0'
- '0.1.0.1'
- '0.1.1.0'
- '0.2'
- '0.3'
- '0.3.1'
- '0.3.1.1'
- '0.4.0.0'
- '0.4.1.0'
- '0.4.2.0'
- '0.5.0.0'
- '0.5.0.1'
- '0.5.1.0'
- '0.5.1.1'
- '0.5.2'
- '0.5.2.1'
author: <NAME>, <NAME>
latest: '0.5.2.1'
description-type: haddock
description: ! 'Using the API Annotations available from GHC 7.10.2, this

  library provides a means to round trip any code that can

  be compiled by GHC, currently excluding lhs files.


  It does this with a phased approach


  * Delta - converts GHC API Annotations into relative

  offsets, indexed by SrcSpan


  * Transform - functions to facilitate changes to

  the AST, adjusting the annotations generated in the
{'fraction_non_alphanumeric': 0.12344505189763093, 'fraction_numerical': 0.06045479755962285, 'mean_word_length': 3.3826388888888888, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 57, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 41, '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': '2863187', 'n_tokens_mistral': 5062, 'n_tokens_neox': 4710, 'n_words': 1515}