<commit_before>homepage: ''
changelog-type: text
hash: 32a007ae3962cc50946fcdede4a787e975bb545582a92620eede9de52c43a966
test-bench-deps: {}
maintainer: <EMAIL>
synopsis: Include images in blog posts with inline diagrams code
changelog: ! "* 0.2.0.3 (22 March 2016)\n\n  - Allow pandoc-1.17\n\n* 0.2.0.2 (5 January
  2016)\n\n  - Require pandoc-1.16\n\n* 0.2.0.1 (11 July 2015)\n\n  - Allow pandoc-1.15\n\n*
  0.2 (7 May 2015)\n\n  - Switch from diagrams-cairo to diagrams-rasterific\n  - Update
  to diagrams-1.3\n  - Allow base-4.8\n\n* 0.1.4.3 (5 June 2014)\n\n  - Allow diagrams-lib-1.2\n
  \ - Allow diagrams-cairo-1.2\n  - Allow diagrams-builder-0.6\n\n* 0.1.4.2: 9 March
  2014\n\n  - Allow diagrams-lib-1.1 and diagrams-cairo-1.1\n\n* 0.1.4.1: 6 February
  2014\n\n  - Require diagrams-lib >= 1.0.1\n  - Require diagrams-cairo >= 1.0.1\n\n*
  0.1.4: 27 January 2014\n\n  - Require diagrams-builder-0.5, which really actually
  adds support\n    for IO actions producing diagrams.\n\n* 0.1.3.1: 29 November 2013\n\n
  \ - Update documentation: doesn't actually support IO actions yet\n    (that will
  require some further forthcoming changes to\n    diagrams-builder).\n\n* 0.1.3:
  26 November 2013\n\n  - require diagrams-builder-0.4.2, which adds support for IO
  actions\n    producing diagrams.\n  - Allow diagrams-1.0.\n\n* 0.1.2.4: 2 November
  2013\n\n  - allow BlogLiterately-0.7\n  - allow base-4.7\n\n* 0.1.2.3: 2 October
  2013\n\n  - allow pandoc-1.12\n\n* 0.1.2.2: 29 August 2013\n\n  - code cleanup,
  and move repository to github\n\n* 0.1.2.1: 8 August 2013\n\n  - allow diagrams-lib-0.7
  and diagrams-cairo-0.7\n\n* 0.1.2: 11 March 2013\n\n  - update to work with BlogLiterately-0.6\n\n*
  0.1.1.2: 4 February 2013\n\n  - allow diagrams-builder-0.3\n\n* 0.1.1.1: 24 January
  2013\n\n  - allow pandoc-1.10\n\n* 0.1.1: 16 December 2012\n\n  - create output
  directory for diagrams if missing (#1)\n  - update to work with diagrams-cairo-0.6\n\n*
  0.1.0.1: 27 August 2012\n\n  - bump base upper bound to < 4.7\n  - include CHANGES
  in tarball\n\n* 0.1.0.0: 27 August 2012\n\n  Initial release"
basic-deps:
  diagrams-lib: ! '>=1.3 && <1.4'
  JuicyPixels: ! '>=3.2 && <3.3'
  base: ! '>=4.3 && <4.9'
  BlogLiterately: ! '>=0.6 && <0.9'
  diagrams-rasterific: ! '>=1.3 && <1.4'
  filepath: -any
  BlogLiterately-diagrams: -any
  containers: -any
  pandoc: ! '>=1.16 && <1.18'
  diagrams-builder: ! '>=0.5 && <0.8'
  safe: ==0.3.*
  directory: -any
all-versions:
- '0.1.0.0'
- '0.1.0.1'
- '0.1.1'
- '0.1.1.1'
- '0.1.1.2'
- '0.1.2'
- '0.1.2.1'
- '0.1.2.2'
- '0.1.2.3'
- '0.1.2.4'
- '0.1.3'
- '0.1.3.1'
- '0.1.4'
- '0.1.4.1'
- '0.1.4.2'
- '0.1.4.3'
- '0.2'
- '0.2.0.1'
- '0.2.0.2'
- '0.2.0.3'
author: <NAME>
latest: '0.2.0.3'
description-type: haddock
description: ! 'A plugin for @BlogLiterately@ (<http://hackage.haskell.org/package/BlogLiterately>)
  which turns inline diagrams

  code into images.

  This library also provides an executable,

  @BlogLiteratelyD@, providing a standard instance

  of @BlogLiterately@ extended with support for

  inline diagrams code.  For most users it

  should suffice to simply use @BlogLiteratelyD@ in

  place of @BlogLiterately@.


  To use it, include code blocks with the @dia@ or

  @dia-def@ class (using pandoc''s special extended

  Markdown syntax

  (<http://johnmacfarlane.net/pandoc/demo/example9/pandocs-markdown.html>),

  or BlogLiterately''s extended syntax for tagged

  code blocks

  (<http://byorgey.wordpress.com/blogliterately/>)),

  like so:


  >     [dia-def]

  >     -- This block produces no output but its

  >     -- declarations will be in scope in all the

  >     -- rest of the diagram blocks.

  >

  >     gSq = square 1 # fc green

  >

  > NOTE: Square brackets below should be replaced

  > by curly braces.  Haddock chokes on curly

  > braces.

  >

  > Here is a green square:

  >

  > ```[.dia width=''200'']

  > dia = gSq

  > ```

  >

  > Green squares like `gSq`[.dia height=''16'']

  > and blue circles like `circle 1 # fc blue`[.dia height=''16'']

  > are extremely important.


  Note that attributes like width and height can

  also be specified, but be sure to put the numbers

  in quotes or else they will not parse properly.


  Running this through @BlogLiteratelyD@ (after

  replacing square brackets with curly braces)

  should result in HTML that looks something like

  this:


  <<http://projects.haskell.org/diagrams/hosted/BLD-post-result.png>>


  In addition to simple diagrams, @IO@ actions

  producing diagrams may also be used.  In that

  case the @IO@ action will simply be run, and the

  resulting diagram rendered.  This can be useful,

  for example, when producing a diagram built from

  some external data or using randomness.'
license-name: BSD3
<commit_msg>Update from Hackage at 2016-11-29T04:01:11Z<commit_after>homepage: ''
changelog-type: text
hash: 2c856a78c6e0249e5a83b61ff664ca0728464d107728c35e777082f75ea5e29d
test-bench-deps: {}
maintainer: <EMAIL>
synopsis: Include images in blog posts with inline diagrams code
changelog: ! "* 0.2.0.4 (28 November 2016)\n\nupdates for diagrams-1.4 etc:\n\n  -
  allow `diagrams-lib-1.4`\n  - allow `diagrams-rasterific-1.4`\n  - allow `diagrams-builder-0.8`\n
  \ - allow `pandoc-1.18`\n\n* 0.2.0.3 (22 March 2016)\n\n  - Allow pandoc-1.17\n\n*
  0.2.0.2 (5 January 2016)\n\n  - Require pandoc-1.16\n\n* 0.2.0.1 (11 July 2015)\n\n
  \ - Allow pandoc-1.15\n\n* 0.2 (7 May 2015)\n\n  - Switch from diagrams-cairo to
  diagrams-rasterific\n  - Update to diagrams-1.3\n  - Allow base-4.8\n\n* 0.1.4.3
  (5 June 2014)\n\n  - Allow diagrams-lib-1.2\n  - Allow diagrams-cairo-1.2\n  - Allow
  diagrams-builder-0.6\n\n* 0.1.4.2: 9 March 2014\n\n  - Allow diagrams-lib-1.1 and
  diagrams-cairo-1.1\n\n* 0.1.4.1: 6 February 2014\n\n  - Require diagrams-lib >=
  1.0.1\n  - Require diagrams-cairo >= 1.0.1\n\n* 0.1.4: 27 January 2014\n\n  - Require
  diagrams-builder-0.5, which really actually adds support\n    for IO actions producing
  diagrams.\n\n* 0.1.3.1: 29 November 2013\n\n  - Update documentation: doesn't actually
  support IO actions yet\n    (that will require some further forthcoming changes
  to\n    diagrams-builder).\n\n* 0.1.3: 26 November 2013\n\n  - require diagrams-builder-0.4.2,
  which adds support for IO actions\n    producing diagrams.\n  - Allow diagrams-1.0.\n\n*
  0.1.2.4: 2 November 2013\n\n  - allow BlogLiterately-0.7\n  - allow base-4.7\n\n*
  0.1.2.3: 2 October 2013\n\n  - allow pandoc-1.12\n\n* 0.1.2.2: 29 August 2013\n\n
  \ - code cleanup, and move repository to github\n\n* 0.1.2.1: 8 August 2013\n\n
  \ - allow diagrams-lib-0.7 and diagrams-cairo-0.7\n\n* 0.1.2: 11 March 2013\n\n
  \ - update to work with BlogLiterately-0.6\n\n* 0.1.1.2: 4 February 2013\n\n  -
  allow diagrams-builder-0.3\n\n* 0.1.1.1: 24 January 2013\n\n  - allow pandoc-1.10\n\n*
  0.1.1: 16 December 2012\n\n  - create output directory for diagrams if missing (#1)\n
  \ - update to work with diagrams-cairo-0.6\n\n* 0.1.0.1: 27 August 2012\n\n  - bump
  base upper bound to < 4.7\n  - include CHANGES in tarball\n\n* 0.1.0.0: 27 August
  2012\n\n  Initial release"
basic-deps:
  diagrams-lib: ! '>=1.3 && <1.5'
  JuicyPixels: ! '>=3.2 && <3.3'
  base: ! '>=4.3 && <4.9'
  BlogLiterately: ! '>=0.6 && <0.9'
  diagrams-rasterific: ! '>=1.3 && <1.5'
  filepath: -any
  BlogLiterately-diagrams: -any
  containers: -any
  pandoc: ! '>=1.16 && <1.19'
  diagrams-builder: ! '>=0.5 && <0.9'
  safe: ==0.3.*
  directory: -any
all-versions:
- '0.1.0.0'
- '0.1.0.1'
- '0.1.1'
- '0.1.1.1'
- '0.1.1.2'
- '0.1.2'
- '0.1.2.1'
- '0.1.2.2'
- '0.1.2.3'
- '0.1.2.4'
- '0.1.3'
- '0.1.3.1'
- '0.1.4'
- '0.1.4.1'
- '0.1.4.2'
- '0.1.4.3'
- '0.2'
- '0.2.0.1'
- '0.2.0.2'
- '0.2.0.3'
- '0.2.0.4'
author: <NAME>
latest: '0.2.0.4'
description-type: haddock
description: ! 'A plugin for @BlogLiterately@ (<http://hackage.haskell.org/package/BlogLiterately>)
  which turns inline diagrams

  code into images.

  This library also provides an executable,

  @BlogLiteratelyD@, providing a standard instance

  of @BlogLiterately@ extended with support for

  inline diagrams code.  For most users it

  should suffice to simply use @BlogLiteratelyD@ in

  place of @BlogLiterately@.


  To use it, include code blocks with the @dia@ or

  @dia-def@ class (using pandoc''s special extended

  Markdown syntax

  (<http://johnmacfarlane.net/pandoc/demo/example9/pandocs-markdown.html>),

  or BlogLiterately''s extended syntax for tagged

  code blocks

  (<http://byorgey.wordpress.com/blogliterately/>)),

  like so:


  >     [dia-def]

  >     -- This block produces no output but its

  >     -- declarations will be in scope in all the

  >     -- rest of the diagram blocks.

  >

  >     gSq = square 1 # fc green

  >

  > NOTE: Square brackets below should be replaced

  > by curly braces.  Haddock chokes on curly

  > braces.

  >

  > Here is a green square:

  >

  > ```[.dia width=''200'']

  > dia = gSq

  > ```

  >

  > Green squares like `gSq`[.dia height=''16'']

  > and blue circles like `circle 1 # fc blue`[.dia height=''16'']

  > are extremely important.


  Note that attributes like width and height can

  also be specified, but be sure to put the numbers

  in quotes or else they will not parse properly.


  Running this through @BlogLiteratelyD@ (after

  replacing square brackets with curly braces)

  should result in HTML that looks something like

  this:


  <<http://projects.haskell.org/diagrams/hosted/BLD-post-result.png>>


  In addition to simple diagrams, @IO@ actions

  producing diagrams may also be used.  In that

  case the @IO@ action will simply be run, and the

  resulting diagram rendered.  This can be useful,

  for example, when producing a diagram built from

  some external data or using randomness.'
license-name: BSD3

{'fraction_non_alphanumeric': 0.15333941420897942, 'fraction_numerical': 0.0865511300293909, 'mean_word_length': 2.656168951463505, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 75, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 64, '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': '2752710', 'n_tokens_mistral': 4534, 'n_tokens_neox': 3940, 'n_words': 1064}