j^L      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ portable experimentalSrtharper@aftereternity.co.uk, bos@serpentine.com, duncan@haskell.orgGHC experimentalSrtharper@aftereternity.co.uk, bos@serpentine.com, duncan@haskell.org byte to check  lower bound  upper bound  GHC experimentalSrtharper@aftereternity.co.uk, bos@serpentine.com, duncan@haskell.org portable experimentalbos@serpentine.com,;Operations supported by all elements that can be stored in  arrays. :Indicate how many bytes would be used for an array of the  given size. =Unchecked read of an immutable array. May return garbage or # crash on an out-of-bounds access. :Unchecked read of a mutable array. May return garbage or # crash on an out-of-bounds access. ;Unchecked write of a mutable array. May return garbage or # crash on an out-of-bounds access. 7Read an immutable array. An invalid index results in a  runtime error. <Read a mutable array. An invalid index results in a runtime  error. =Write a mutable array. An invalid index results in a runtime  error. $Operations supported by all arrays. Return the length of an array. -Mutable array type, for use in the ST monad. Immutable array type. 'Create an uninitialized mutable array. *Freeze a mutable array. Do not mutate the  afterwards! ?Create a mutable array, with its elements initialized with the  given value. &Convert an immutable array to a list. An empty immutable array. ?Run an action in the ST monad and return an immutable array of  its result. ?Run an action in the ST monad and return an immutable array of : its result paired with whatever else the action returns. @Copy an array in its entirety. The destination array must be at  least as big as the source.  source array destination array (Unsafely copy the elements of an array.  GHC experimentalSrtharper@aftereternity.co.uk, bos@serpentine.com, duncan@haskell.org6A space efficient, packed, unboxed Unicode text type. Smart constructor. O(1) The empty .  A useful '-like function for debugging purposes.  GHC experimentalSrtharper@aftereternity.co.uk, bos@serpentine.com, duncan@haskell.orgGHC experimentalSrtharper@aftereternity.co.uk, bos@serpentine.com, duncan@haskell.orgC=Allow a function over a stream to switch between two states. O(n) Convert a  into a ' Stream Char'. O(n) Convert a  into a ' Stream Char', but iterate  backwards. O(n)$ Convert a Stream Char into a Text. The empty stream. O(n)& Determines if two streams are equal. O(n)1 Adds a character to the front of a Stream Char. O(n)* Adds a character to the end of a stream. O(n)" Appends one Stream to the other. O(1)A Returns the first character of a Text, which must be non-empty.  Subject to array fusion. O(1)0 Returns the first character and remainder of a 'Stream  Char', or % if empty. Subject to array fusion. O(n)! Returns the last character of a ' Stream Char' , which must  be non-empty. O(1)D Returns all characters after the head of a Stream Char, which must  be non-empty. O(1)< Returns all but the last character of a Stream Char, which  must be non-empty. O(1). Tests whether a Stream Char is empty or not. O(n)- Returns the number of characters in a text. O(n)  f +xs is the Stream Char obtained by applying f to each element of  xs. O(n)3 Take a character and place it between each of the  characters of a ' Stream Char'. O(n)% Reverse the characters of a string. Efoldl, applied to a binary operator, a starting value (typically the L left-identity of the operator), and a Stream, reduces the Stream using the & binary operator, from left to right. A strict version of foldl. Bfoldl1 is a variant of foldl that has no starting value argument, 0 and thus must be applied to non-empty Streams. A strict version of foldl1. @, applied to a binary operator, a starting value (typically the M right-identity of the operator), and a stream, reduces the stream using the & binary operator, from right to left. foldr1 is a variant of & that has no starting value argument, 0 and thus must be applied to non-empty streams.  Subject to array fusion. !O(n)9 Concatenate a list of streams. Subject to array fusion. "JMap a function over a stream that results in a stream and concatenate the  results. #O(n) any p -xs determines if any character in the stream  xs satisifes the predicate p. $O(n) all p 'xs determines if all characters in the   xs satisify the predicate p. %O(n)@ maximum returns the maximum value from a stream, which must be  non-empty. &O(n)* minimum returns the minimum value from a , which must be  non-empty. '(O(n) Perform the equivalent of scanr over a list, only with  the input and result reversed. )O(n) Like a combination of  and  . Applies a ? function to each element of a stream, passing an accumulating ; parameter from left to right, and returns a final stream. Note8: Unlike the version over lists, this function does not A return a final value for the accumulator, because the nature of  streams precludes it. *+O(n), where n3 is the length of the result. The unfoldr function  is analogous to the List +. unfoldr builds a stream ? from a seed value. The function takes the element and returns < Nothing if it is done producing the stream or returns Just B (a,b), in which case, a is the next Char in the string, and b is ( the seed value for further production. ,O(n) Like +, , builds a stream from a seed < value. However, the length of the result is limited by the  first argument to ,'. This function is more efficient than  +) when the length of the result is known. -O(n)8 take n, applied to a stream, returns the prefix of the  stream of length n, or the stream itself if n is greater than the  length of the stream. .O(n)8 drop n, applied to a stream, returns the suffix of the  stream of length n, or the empty stream if n is greater than the  length of the stream. /"takeWhile, applied to a predicate p and a stream, returns the = longest prefix (possibly empty) of elements that satisfy p. 0 dropWhile p 0xs returns the suffix remaining after takeWhile p xs. 1O(n) The 1 function takes two s and returns  * iff the first is a prefix of the second. 2O(n)* elem is the stream membership predicate. 3O(n) The 3* function takes a predicate and a stream, = and returns the first element in matching the predicate, or   if there is no such element. 4O(n) 4', applied to a predicate and a stream, ? returns a stream containing those characters that satisfy the  predicate. 5O(1)5 stream index (subscript) operator, starting from 0. 6The 6- function takes a predicate and a stream and 6 returns the index of the first element in the stream  satisfying the predicate. 7The 7- function takes a predicate and a stream and 3 returns all indices of the elements in the stream  satisfying the predicate. 8The 8- function takes a predicate and a stream and 6 returns the index of the first element in the stream  satisfying the predicate. 9O(n) The 9) function returns the index of the first 9 element in the given stream which is equal to the query  element, or  if there is no such element. :O(n) The :% function returns the index of every B element in the given stream which is equal to the query element. ;O(n) The ;0 function returns the number of times the query & element appears in the given stream. <zipWith generalises zip' by zipping with the function given as 4 the first argument, instead of a tupling function. ;  !"#$%&'()*+,-./0123456789:;<;   !"#$%&'()*+,-./0124356789:;<;  !"#$%&'()*+,-./0123456789:;< portable experimentalbos@serpentine.comO(1) A variant of  for non-empty .  B omits the check for the empty case, so there is an obligation on , the programmer to provide a proof that the  is non-empty. O(1) A variant of  for non-empty .  B omits the check for the empty case, so there is an obligation on , the programmer to provide a proof that the  is non-empty. O(1)3 Iterate one step forwards through a UTF-16 array, B returning the current character and the delta to add to give the  next offset to iterate at. O(1)8 Iterate one step through a UTF-16 array, returning the 5 delta to add to give the next offset to iterate at. O(1)4 Iterate one step backwards through a UTF-16 array, > returning the current character and the delta to add (i.e. a 9 negative number) to give the next offset to iterate at. portable experimentalSrtharper@aftereternity.co.uk, bos@serpentine.com, duncan@haskell.org=>O(n) Convert a  into a ' Stream Char', using UTF-8  encoding. ?O(n) Convert a  into a ' Stream Char', using little  endian UTF-16 encoding. @O(n) Convert a  into a ' Stream Char' , using big  endian UTF-16 encoding. AO(n) Convert a  into a ' Stream Char' , using big  endian UTF-32 encoding. BO(n) Convert a  into a ' Stream Char', using little  endian UTF-32 encoding. CO(n): Convert a Stream Char into a UTF-8 encoded Stream Word8. DEFGHO(n) Convert a   to a . =>?@ABCDEFGH =>?@BAHCEDGF =>?@ABCDEFGHportable experimentalSrtharper@aftereternity.co.uk, bos@serpentine.com, duncan@haskell.org I Decode a & containing 7-bit ASCII encoded text. J Decode a  containing UTF-8 encoded text. K"Encode text using UTF-8 encoding. L0Decode text from little endian UTF-16 encoding. M-Decode text from big endian UTF-16 encoding. N1Encode text using little endian UTF-16 encoding. O.Encode text using big endian UTF-16 encoding. P0Decode text from little endian UTF-32 encoding. Q-Decode text from big endian UTF-32 encoding. R1Encode text using little endian UTF-32 encoding. S.Encode text using big endian UTF-32 encoding. IJKLMNOPQRS IJLMPQKNORS IJKLMNOPQRSGHC experimentalSrtharper@aftereternity.co.uk, bos@serpentine.com, duncan@haskell.orgTO(n) Create a new  from a   by copying the  contents of the array.  source array length of source array (in  units) UO(1) Return the length of a  in units of . This @ is useful for sizing a target array appropriately before using  V. VO(n) Copy a . to an array. The array is assumed to be big + enough to hold the contents of the entire . WO(n)5 Perform an action on a temporary, mutable copy of a  4. The copy is freed as soon as the action returns. TUVWTWUVTUVWGHC experimentalSrtharper@aftereternity.co.uk, bos@serpentine.com, duncan@haskell.orgKXO(n) Convert a  into a . *This function is subject to array fusion. YO(n) Convert a Text into a String.  Subject to array fusion. ZO(1)" Convert a character into a Text.  Subject to array fusion. [O(n)$ Adds a character to the front of a . This function  is more costly than its List! counterpart because it requires 0 copying a new array. Subject to array fusion. \O(n)" Adds a character to the end of a . This copies the 8 entire array in the process. Subject to array fusion. ]O(n) Appends one & to the other by copying both of them  into a new . Subject to array fusion. ^O(1)" Returns the first character of a , which must be & non-empty. Subject to array fusion. _O(1)+ Returns the first character and rest of a , or  $ if empty. Subject to array fusion. +Lifted from Control.Arrow and specialized. `O(1)! Returns the last character of a , which must be & non-empty. Subject to array fusion.  Construct a - without invisibly pinning its byte array in , memory if its length has dwindled to zero. aO(1), Returns all characters after the head of a , which . must be non-empty. Subject to array fusion. bO(1)) Returns all but the last character of a  , which must ) be non-empty. Subject to array fusion. cO(1) Tests whether a $ is empty or not. Subject to array  fusion. dO(n)' Returns the number of characters in a .  Subject to array fusion. eO(n) e f  xs is the  obtained by applying f to  each element of xs. Subject to array fusion. fO(n) The f function takes a  and a list of  :s and concatenates the list after interspersing the first , argument between each element of the list. gO(n) The g* function takes a character and places it  between the characters of a . Subject to array fusion. hO(n)> Reverse the characters of a string. Subject to array fusion. iO(n) The i* function transposes the rows and columns  of its ) argument. Note that this function uses X,  Y:, and the list version of transpose, and is thus not very  efficient. jO(n) j1, applied to a binary operator, a starting value 6 (typically the left-identity of the operator), and a ,  reduces the 0 using the binary operator, from left to right.  Subject to array fusion. kO(n) A strict version of j.  Subject to array fusion. lO(n) A variant of j& that has no starting value argument, ) and thus must be applied to a non-empty . Subject to array  fusion. mO(n) A strict version of l.  Subject to array fusion. nO(n) n1, applied to a binary operator, a starting value 7 (typically the right-identity of the operator), and a ,  reduces the 0 using the binary operator, from right to left.  Subject to array fusion. oO(n) A variant of n* that has no starting value argument, and & thust must be applied to a non-empty . Subject to array  fusion. pO(n) Concatenate a list of s. Subject to array fusion. qO(n) Map a function over a  that results in a , and E concatenate the results. This function is subject to array fusion.  Note: if in q f t, f is defined in terms of fusible % functions, it will also be fusible. rO(n) r p t) determines whether any character in the   t satisifes the predicate p. Subject to array fusion. sO(n) s p t* determines whether all characters in the   t satisify the predicate p. Subject to array fusion. tO(n) t" returns the maximum value from a , which - must be non-empty. Subject to array fusion. uO(n) u" returns the minimum value from a , which - must be non-empty. Subject to array fusion. vO(n) v is similar to j, but returns a list of C successive reduced values from the left. This function is subject  to array fusion.  B scanl f z [x1, x2, ...] == [z, z `f` x1, (z `f` x1) `f` x2, ...]  Note that & last (scanl f z xs) == foldl f z xs. wO(n) w is a variant of v that has no starting < value argument. This function is subject to array fusion. 0 scanl1 f [x1, x2, ...] == [x1, x1 `f` x2, ...] xO(n) x is the right-to-left dual of v. - scanr f v t == reverse (scanl (flip f) v t) yO(n) y is a variant of x that has no starting < value argument. This function is subject to array fusion. zO(n) Like a combination of e and j . Applies a  function to each element of a , passing an accumulating 3 parameter from left to right, and returns a final . {The {( function behaves like a combination of e and  n-; it applies a function to each element of a  , passing E an accumulating parameter from right to left, and returning a final 1 value of this accumulator together with the new . |O(n) | n c is a  of length n with c the  value of every element. }O(n), where n" is the length of the result. The } # function is analogous to the List . } builds a  7 from a seed value. The function takes the element and  returns  if it is done producing the  , otherwise   (a,b). In this case, a is the next  in the  string, and b+ is the seed value for further production. ~O(n) Like }, ~ builds a  from a seed C value. However, the length of the result should be limited by the  first argument to ~'. This function is more efficient than  }4 when the maximum length of the result is known and 2 correct, otherwise its performance is similar to }. O(n)  n, applied to a , returns the prefix of the   of length n , or the  itself if n is greater than  the length of the Text. O(n)  n, applied to a , returns the suffix of the   of length n, or the empty  if n is greater than the  length of the . O(n) , applied to a predicate p and a  , returns > the longest prefix (possibly empty) of elements that satisfy p. + This function is subject to array fusion. O(n)  p xs$ returns the suffix remaining after   p xs,. This function is subject to array fusion. O(n)  n t) returns a pair whose first element is a  prefix of t of length n', and whose second is the remainder of ! the string. It is equivalent to ( n t,  n t). O(n) , applied to a predicate p and text t , returns a D pair whose first element is the longest prefix (possibly empty) of  t of elements that satisfy p$, and whose second is the remainder  of the list. O(n)  is like ", but the prefix returned is over " elements that fail the predicate p. O(n)8 Group characters in a string according to a predicate.  Returns the array index (in units of  ) at which a " character may be found. This is not the same as the logical  index returned by e.g. . O(n)+ Group characters in a string by equality. O(n)* Return all initial segments of the given  , shortest  first. O(n)( Return all final segments of the given  , longest  first. O(n) Break a  into pieces separated by the  ) argument, consuming the delimiter. I.e.  . split '\n' "a\nb\nd\ne" == ["a","b","d","e"] 0 split 'a' "aXaXaXa" == ["","X","X","X",""] $ split 'x' "x" == ["",""] and  + intercalate (singleton c) . split c == id  split == splitWith . (==) CAs for all splitting functions in this library, this function does 1 not copy the substrings, it just constructs new  s that are  slices of the original. O(n) Splits a * into components delimited by separators, @ where the predicate returns True for a separator element. The C resulting components do not contain the separators. Two adjacent = separators result in an empty component in the output. eg. 4 splitWith (=='a') "aabbaca" == ["","","bb","c",""] # splitWith (=='a') [] == [] O(n)  is the  membership predicate. O(n) The " function takes a predicate and a , = and returns the first element in matching the predicate, or   if there is no such element. O(n) The " function takes a predicate and a ,  and returns the pair of $s with elements which do and do not + satisfy the predicate, respectively; i.e. 3 partition p t == (filter p t, filter (not . p) t) O(n)8 Break a string on a substring, returning a pair of the D part of the string prior to the match, and the rest of the string. "The following relationship holds:  1 break (==c) l == breakSubstring (singleton c) l 8For example, to tokenise a string, dropping delimiters:  J tokenise x y = h : if null t then [] else tokenise x (drop (length x) t) & where (h,t) = breakSubstring x y ,To skip to the first occurence of a string:   snd (breakSubstring x y) 2To take the parts of a string before a delimiter:  fst (breakSubstring x y) String to search for String to search in ,Head and tail of string broken at substring O(n) , applied to a predicate and a ,  returns a . containing those characters that satisfy the  predicate. O(1) . index (subscript) operator, starting from 0. O(n) The " function takes a predicate and a  3 and returns the index of the first element in the  satisfying 4 the predicate. This function is subject to fusion. The  function extends , by returning the @ indices of all elements satisfying the predicate, in ascending , order. This function is subject to fusion. O(n) The ) function returns the index of the first  element in the given ) which is equal to the query element, or  : if there is no such element. This function is subject to  fusion. O(n) The % function returns the index of every  element in the given  which is equal to the query . element. This function is subject to fusion. O(n) The 0 function returns the number of times the query  element appears in the given . This function is subject to  fusion. O(n)  generalises zip by zipping with the function = given as the first argument, instead of a tupling function. O(n) Breaks a ' up into a list of words, delimited by s  representing white space. O(n) Breaks a  up into a list of s at  newline 2s. The resulting strings do not contain newlines. O(n) Portably breaks a  up into a list of  s at line  boundaries. CA line boundary is considered to be either a line feed, a carriage C return immediately followed by a line feed, or a carriage return. B This accounts for both Unix and Windows line ending conventions, : and for the old convention used on Mac OS 9 and earlier. O(n)7 Joins lines, after appending a terminating newline to  each. O(n), Joins words using single space characters. O(n) The  function takes two s and returns  < iff the first is a prefix of the second. This function is  subject to fusion. O(n) The  function takes two s and returns  * iff the first is a suffix of the second. O(n) The  function takes two s and returns  9 iff the first is contained, wholly and intact, anywhere  within the second. IXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~IXYZ[\]_^`abcdefgihjklmnopqrstuvwxyz{|}~GXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~   !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcd !"+#$e%&'()*,-./012fgh4i56789:;jklmnopqr=>st?@ABDEFGuvwx<yz{|}~  @  !          6text-0.1 Data.TextData.Text.FusionData.Text.Encoding.FusionData.Text.EncodingData.Text.ForeignData.Text.Encoding.Utf32Data.Text.Encoding.Utf8Data.Text.Encoding.Utf16Data.Text.ArrayData.Text.InternalData.Text.UnsafeCharData.Text.UnsafeTextemptyStepYieldSkipDoneStreamstream reverseStreamunstreameqconssnocappendheadunconslasttailinitnulllengthmap interspersereversefoldlfoldl'foldl1foldl1'foldrfoldr1 intercalateconcat concatMapanyallmaximumminimumscanl reverseScanr mapAccumL replicateunfoldrunfoldrNtakedrop takeWhile dropWhile isPrefixOfelemfindfilterindex findIndex findIndicesfindIndexOrEnd elemIndex elemIndicescountzipWith streamASCII streamUtf8 streamUtf16LE streamUtf16BE streamUtf32BE streamUtf32LE restreamUtf8restreamUtf16BErestreamUtf16LErestreamUtf32BErestreamUtf32LE decodeASCII decodeUtf8 encodeUtf8 decodeUtf16LE decodeUtf16BE encodeUtf16LE encodeUtf16BE decodeUtf32LE decodeUtf32BE encodeUtf32LE encodeUtf32BEfromPtr lengthWord16unsafeCopyToPtruseAsPtrpackunpack singleton transposescanl1scanrscanr1 mapAccumRsplitAtspanbreakgroupBygroupinitstailssplit splitWith partitionbreakSubstringwordslinesunlinesunwords isSuffixOf isInfixOfvalidatebetweenord2ord3ord4chr2chr3chr4 validate1 validate2 validate3 validate4Elt bytesInArray unsafeIndex unsafeRead unsafeWritereadwriteIArrayMArrayArrayarrayTcmArrayTccheck iNT_SCALE wORD16_SCALE unsafeNew unsafeFreezenewtoListrunrun2copy unsafeCopytextshowTextbaseGHC.Showshow unsafeChr unsafeChr8 unsafeChr32unsafeWriteRevSwitchS2S1PairS:!: streamError internalError emptyError Data.MaybeNothingghc-primGHC.BoolTrue unsafeHeadGHC.List unsafeTailiteriter_ reverseIterSMJNbytestring-0.9.1.8Data.ByteString.Internal ByteStringGHC.WordWord8 encodingErrorGHC.PtrPtrWord16GHC.BaseStringsecondtextP Data.ListJust GHC.TypesCharfindAIndexOrEnd