-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Converter from »ansi-wl-pprint« documents to »prettyprinter«-based ones.
--   
--   See README.md
@package prettyprinter-convert-ansi-wl-pprint
@version 1.1.1


-- | Convert back and forth between the <a>Doc</a> type of the
--   <tt>ansi-wl-pprint</tt> and the <a>Doc</a> of the prettyprinter
--   package. Useful in order to use the <tt>prettyprinter</tt> library
--   together with another library that produces <tt>ansi-wl-pprint</tt>
--   output, and vice versa.
--   
--   <pre>
--   ╭────────────────────╮    <a>fromAnsiWlPprint</a>    ╭────────────────────╮
--   │        <a>Doc</a>         ├───────────────────────▷│  <a>Doc</a> <a>AnsiStyle</a>     │
--   │  (ansi-wl-pprint)  │◁───────────────────────┤  (prettyprinter)   │
--   ╰────────────────────╯     <a>toAnsiWlPprint</a>     ╰────────────────────╯
--   </pre>
--   
--   These conversion functions work well, but strictly speaking they are
--   <b>not</b> inverses of each other. <tt>ansi-wl-pprint</tt> supports
--   slightly less features than <tt>prettyprinter</tt> – the latter has
--   italics, and allows reacting on the configured ribbon width via
--   <a>withPageWidth</a>.
module Prettyprinter.Convert.AnsiWlPprint

-- | <pre>
--   ansi-wl-pprint ───▷ prettyprinter
--   </pre>
fromAnsiWlPprint :: Doc -> Doc AnsiStyle

-- | <pre>
--   prettyprinter ───▷ ansi-wl-pprint
--   </pre>
toAnsiWlPprint :: Doc AnsiStyle -> Doc


-- | This module is part of the old <tt>Data.Text.Prettyprint</tt> module
--   hierarchy which is being replaced by a shallower
--   <tt>Prettyprinter</tt> module hierarchy offering the same API.
--   
--   This module will be deprecated and eventually removed.
--   
--   Use <a>Prettyprinter.Convert.AnsiWlPprint</a> instead.
module Data.Text.Prettyprint.Convert.AnsiWlPprint
