rope-0.3: Tools for manipulating fingertrees of bytestrings with optional annotations
Source code
Contents
Index
Data.Rope.Internal
Contents
Construction
Analysis
Deconstruction
Cutting
Unpacking
Synopsis
newtype
Rope
=
Rope
{
body
::
Body
}
pack
::
Reducer
a
Rope
=> a ->
Rope
empty
::
Rope
fromChunks
:: [ByteString] ->
Rope
fromByteString
:: ByteString ->
Rope
fromLazyByteString
:: ByteString ->
Rope
fromString
::
String
->
Rope
fromWords
:: [
Word8
] ->
Rope
fromChar
::
Char
->
Rope
fromWord8
::
Word8
->
Rope
length
::
Rope
->
Int
null
::
Rope
->
Bool
toChunks
::
Rope
-> [ByteString]
toString
::
Rope
->
String
toLazyByteString
::
Rope
-> ByteString
splitAt
::
Int
->
Rope
-> (
Rope
,
Rope
)
take
::
Int
->
Rope
->
Rope
drop
::
Int
->
Rope
->
Rope
class
Unpackable
a
where
unpack
::
Rope
-> [a]
head
::
Rope
-> a
last
::
Rope
-> a
uncons
::
Rope
->
Maybe
(a,
Rope
)
unsnoc
::
Rope
->
Maybe
(
Rope
, a)
class
Breakable
a
where
break
:: (a ->
Bool
) ->
Rope
-> (
Rope
,
Rope
)
span
:: (a ->
Bool
) ->
Rope
-> (
Rope
,
Rope
)
takeWhile
:: (a ->
Bool
) ->
Rope
->
Rope
dropWhile
:: (a ->
Bool
) ->
Rope
->
Rope
w2c
::
Word8
->
Char
findIndexOrEnd
:: (
Word8
->
Bool
) -> ByteString ->
Int
Documentation
newtype
Rope
Source
Constructors
Rope
body
::
Body
Instances
Eq
Rope
Data
Rope
Ord
Rope
Show
Rope
Typeable
Rope
Monoid
Rope
Measured
Offset
Rope
Reducer
Char
Rope
Reducer
Word8
Rope
Reducer
String
Rope
Reducer
ByteString
Rope
Reducer
ByteString
Rope
Reducer
Chunk
Rope
Reducer
Rope
Rope
UTF8Bytes
Rope
Int
Reducer
([]
Word8
)
Rope
Construction
pack
::
Reducer
a
Rope
=> a ->
Rope
Source
empty
::
Rope
Source
fromChunks
:: [ByteString] ->
Rope
Source
fromByteString
:: ByteString ->
Rope
Source
fromLazyByteString
:: ByteString ->
Rope
Source
fromString
::
String
->
Rope
Source
fromWords
:: [
Word8
] ->
Rope
Source
fromChar
::
Char
->
Rope
Source
fromWord8
::
Word8
->
Rope
Source
Analysis
length
::
Rope
->
Int
Source
null
::
Rope
->
Bool
Source
Deconstruction
toChunks
::
Rope
-> [ByteString]
Source
toString
::
Rope
->
String
Source
toLazyByteString
::
Rope
-> ByteString
Source
Cutting
splitAt
::
Int
->
Rope
-> (
Rope
,
Rope
)
Source
take
::
Int
->
Rope
->
Rope
Source
drop
::
Int
->
Rope
->
Rope
Source
Unpacking
class
Unpackable
a
where
Source
Methods
unpack
::
Rope
-> [a]
Source
head
::
Rope
-> a
Source
last
::
Rope
-> a
Source
uncons
::
Rope
->
Maybe
(a,
Rope
)
Source
unsnoc
::
Rope
->
Maybe
(
Rope
, a)
Source
Instances
Unpackable
Char
Unpackable
Word8
Unpackable
ByteString
Unpackable
Chunk
class
Breakable
a
where
Source
Methods
break
:: (a ->
Bool
) ->
Rope
-> (
Rope
,
Rope
)
Source
span
:: (a ->
Bool
) ->
Rope
-> (
Rope
,
Rope
)
Source
takeWhile
:: (a ->
Bool
) ->
Rope
->
Rope
Source
dropWhile
:: (a ->
Bool
) ->
Rope
->
Rope
Source
Instances
Breakable
Word8
w2c
::
Word8
->
Char
Source
findIndexOrEnd
:: (
Word8
->
Bool
) -> ByteString ->
Int
Source
Produced by
Haddock
version 2.4.2