h&"       !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ'Copyright (C) 2010-2019 John MacFarlaneBSD 3"John MacFarlane alphaportable Safe-Inferred "689:;[ doclayout(The unicode width of a given character.\ doclayoutKeeps track of state in length calculations, determining whether we're at the first character, the width so far, possibly a tentative width for this group, and the Map for possible emoji continuations.] doclayoutIn reverse order^ doclayout_ means no wrapping` doclayoutNumber of preceding newlines doclayout2Document, including structure relevant for layout. doclayoutText with specified width. doclayoutA block with a width and lines. doclayoutA vertically expandable block; when concatenated with a block, expands to height of block, with each line containing the specified text. doclayoutDoc with each line prefixed with text. Note that trailing blanks are omitted from the prefix when the line after it is empty. doclayout&Doc that renders only before nonblank. doclayout"Doc laid out flush to left margin. doclayout"A space or line break, in context. doclayout#Text printed only at start of line.  doclayout&Newline unless we're at start of line.  doclayoutnewline.  doclayoutEnsure a number of blank lines.  doclayoutTwo documents concatenated. doclayoutClass abstracting over various string types that can fold over characters. Minimal definition is  and >, but defining the other methods can give better performance. doclayout Unfold a  into a flat list. doclayoutTrue if the document is empty. doclayoutThe empty document. doclayout#Concatenate documents horizontally. doclayoutConcatenate a list of *s, putting breakable spaces between them. doclayoutSame as ,, but putting breakable spaces between the s. doclayouta $$ b puts a above b. doclayouta $+$ b puts a above b, with a blank line between. doclayoutList version of . doclayoutList version of . doclayout#Removes leading blank lines from a . doclayout%Chomps trailing blank space off of a .  doclayout Render a . render (Just n) will use a line length of n& to reflow text on breakable spaces. render Nothing will not reflow text.! doclayout Create a  from a stringlike value." doclayoutA literal string. (Like !, but restricted to String.)# doclayout A character.$ doclayoutA breaking (reflowable) space.% doclayoutA carriage return. Does nothing if we're at the beginning of a line; otherwise inserts a newline.& doclayout2Inserts a blank line unless one exists already. (blankline <> blankline has the same effect as  blankline.' doclayout1Inserts blank lines unless they exist already. (blanklines m <> blanklines n has the same effect as blanklines (max m n).( doclayoutUses the specified string as a prefix for every line of the inside document (except the first, if not at the beginning of the line).) doclayoutMakes a  flush against the left margin.* doclayout Indents a # by the specified number of spaces.+ doclayoutA hanging indent. hang ind start doc prints start, then doc, leaving an indent of ind% spaces on every line but the first., doclayoutbeforeNonBlank d conditionally includes d' unless it is followed by blank space.- doclayoutMakes a  non-reflowable.. doclayoutContent to print only if it comes at the beginning of a line, to be used e.g. for escaping line-initial a in roff man./ doclayoutReturns the width of a .0 doclayoutReturns the minimal width of a # when reflowed at breakable spaces.1 doclayoutReturns the column that would be occupied by the last laid out character (assuming no wrapping).2 doclayout lblock n d is a block of width n% characters, with text derived from d and aligned to the left.3 doclayoutLike 2 but aligned to the right.4 doclayoutLike 2 but aligned centered.5 doclayout'Returns the height of a block or other .6 doclayoutAn expandable border that, when placed next to a box, expands to the height of the box. Strings cycle through the list provided.7 doclayout Encloses a  inside a start and end .8 doclayoutPuts a  in curly braces.9 doclayoutPuts a  in square brackets.: doclayoutPuts a  in parentheses.; doclayoutWraps a  in single quotes.< doclayoutWraps a  in double quotes.= doclayoutReturns width of a character in a monospace font: 0 for a combining character, 1 for a regular character, 2 for an East Asian wide character. Ambiguous characters are treated as width 1.> doclayoutGet real length of string, taking into account combining and double-wide characters. Ambiguous characters are treated as width 1.? doclayoutGet the real length of a string, taking into account combining and double-wide characters. Ambiguous characters are treated as width 1.@ doclayoutGet the real length of a string, taking into account combining and double-wide characters. Ambiguous characters are treated as width 2.A doclayoutLike ?, but avoids optimizations (shortcuts). This is exposed for testing, to ensure that the optimizations are safe.B doclayoutLike @, but avoids optimizations (shortcuts). This is exposed for testing, to ensure that the optimizations are safe.b doclayoutGet real length of string, taking into account combining and double-wide characters, using the given accumulator. This is exposed for testing.c doclayout Update a \ by processing a character. For efficiency, we isolate commonly used portions of the basic multilingual plane that do not have emoji in them. This works in a narrow context.d doclayout Update a \ by processing a character. For efficiency, we isolate commonly used portions of the basic multilingual plane that do not have emoji in them. This works in a wide context.e doclayout Update a \ by processing a character, without taking any shortcuts. This should give the same answer as c, but will be slower. It is here to test that the shortcuts are implemented correctly.f doclayout Update a \ by processing a character, without taking any shortcuts. This should give the same answer as d, but will be slower. It is here to test that the shortcuts are implemented correctly.g doclayout4Update a match state given a character and its classh doclayoutGet the final width from a \.C doclayout3Checks whether a character is a skin tone modifier.D doclayout:Checks whether a character is an emoji variation modifier.E doclayout2Checks whether a character is a zero-width joiner.i doclayout/Check a character to see how it modifies emoji.j doclayoutA map of all emoji start characters and the modifiers they take.k doclayoutDenotes the contiguous ranges of Unicode characters which have a given width: 1 for a regular character, 2 for an East Asian wide character. Ambiguous characters are resolved in the specified way.l doclayout3Add zero-width joiner and emoji modifiers to a Map.m doclayoutCollapse unicode character ranges if the general category doesn't make a difference for width.n doclayout%Find the width of a unicode charactero doclayout.Convert a Map to a UnicodeMap for faster code.p doclayout7A list of Unicode ranges and the width assigned to them   !"#$%&'()*+,-./0123456789:;<=>?@ABCDE %&'$!"#()*+,-.2436789:;</015=>?@ABCDE  655      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdaefghijklmnopqrstu'doclayout-0.4.0.1-Emf3ycTlbFA72kDNCxWgTText.DocLayoutDocTextBlockVFillPrefixedBeforeNonBlankFlush BreakingSpace AfterBreakCarriageReturnNewLine BlankLinesConcatEmptyHasChars foldrChar foldlChar replicateCharisNull splitLinesunfoldDisEmptyemptyhcat<+>hsep$$$+$vcatvsepnestlechomprenderliteraltextcharspacecr blankline blanklinesprefixedflushnesthangbeforeNonBlanknowrap afterBreakoffset minOffset updateColumnlblockrblockcblockheightvfillinsidebracesbracketsparensquotes doubleQuotes charWidth realLengthrealLengthNarrowContextrealLengthWideContext!realLengthNarrowContextNoShortcutrealLengthWideContextNoShortcutisSkinToneModifierisEmojiVariationisZWJ$fHasCharsText $fHasChars[]$fHasCharsText0 $fIsStringDoc $fMonoidDoc$fSemigroupDoc$fSemigroupEmojiInfo $fEqEmojiInfo$fShowEmojiInfo$fShowUnicodeWidth$fEqUnicodeWidth$fShowMatchState $fShowDoc $fReadDoc$fEqDoc$fOrdDoc $fFunctorDoc $fFoldableDoc$fTraversableDoc $fDataDoc $fGenericDoc UnicodeWidth MatchStateoutput lineLengthbase GHC.MaybeNothingnewlinesGHC.Base.realLengthWithupdateMatchStateNarrowupdateMatchStateWideupdateMatchStateNoShortcutupdateMatchStateNoShortcutWide resolveWidth extractLengthvariationStateemojiMapunicodeRangeMapaddEmojiClasses mergeRanges unicodeWidthrepack unicodeSpec