Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Text = Text (Rope Chunk)
- data Chunk = Chunk !Int !Text
- empty :: Text
- one :: Char -> Text
- singleton :: Char -> Text
- appendUnbalanced :: Text -> Text -> Text
- threshold :: Int
- replicate :: Int -> Text -> Text
- toLazyText :: Text -> Text
- chunkToText :: Chunk -> Text
- chunk :: Text -> Chunk
- take :: Int -> Text -> Text
- drop :: Int -> Text -> Text
- uncons :: Text -> Maybe (Char, Text)
- unsnoc :: Text -> Maybe (Text, Char)
- unconsChunk :: Text -> Maybe (Chunk, Text)
- unsnocChunk :: Text -> Maybe (Text, Chunk)
- at :: Int -> Text -> Maybe Char
- size :: Text -> Int
- reverse :: Text -> Text
- toUppercase :: Text -> Text
- toLowercase :: Text -> Text
- fromUtf8 :: Bytes -> Either String Text
- toUtf8 :: Text -> Bytes
- fromText :: Text -> Text
- pack :: String -> Text
- toString :: Text -> String
- unpack :: Text -> String
- toText :: Text -> Text
- indexOf :: Text -> Text -> Maybe Word64
- ordinal :: IsString s => Int -> s
- dropTextWhileMax :: (Char -> Bool) -> Int -> Text -> (Int, Text)
- dropWhileMax :: (Char -> Bool) -> Int -> Text -> (Int, Text)
Documentation
Instances
Monoid Chunk Source # | |
Semigroup Chunk Source # | |
Eq Chunk Source # | |
Ord Chunk Source # | |
Drop Chunk Source # | |
Reverse Chunk Source # | |
Defined in Unison.Util.Text | |
Sized Chunk Source # | |
Defined in Unison.Util.Text | |
Take Chunk Source # | |
Index Chunk Char Source # | |
Defined in Unison.Util.Text unsafeIndex :: Int -> Chunk -> Char # |
toLazyText :: Text -> Text Source #
chunkToText :: Chunk -> Text Source #
toUppercase :: Text -> Text Source #
toLowercase :: Text -> Text Source #