Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype TextCursor = TextCursor {}
- emptyTextCursor :: TextCursor
- makeTextCursor :: Text -> Maybe TextCursor
- makeTextCursorWithSelection :: Int -> Text -> Maybe TextCursor
- rebuildTextCursor :: TextCursor -> Text
- textCursorNull :: TextCursor -> Bool
- textCursorLength :: TextCursor -> Int
- textCursorIndex :: TextCursor -> Int
- textCursorSelectPrev :: TextCursor -> Maybe TextCursor
- textCursorSelectNext :: TextCursor -> Maybe TextCursor
- textCursorSelectIndex :: Int -> TextCursor -> TextCursor
- textCursorSelectStart :: TextCursor -> TextCursor
- textCursorSelectEnd :: TextCursor -> TextCursor
- textCursorPrevChar :: TextCursor -> Maybe Char
- textCursorNextChar :: TextCursor -> Maybe Char
- textCursorInsert :: Char -> TextCursor -> Maybe TextCursor
- textCursorAppend :: Char -> TextCursor -> Maybe TextCursor
- textCursorRemove :: TextCursor -> Maybe (DeleteOrUpdate TextCursor)
- textCursorDelete :: TextCursor -> Maybe (DeleteOrUpdate TextCursor)
- textCursorSplit :: TextCursor -> (TextCursor, TextCursor)
- textCursorCombine :: TextCursor -> TextCursor -> TextCursor
Documentation
newtype TextCursor Source #
A cursor for single-line texts
Instances
Eq TextCursor Source # | |
Defined in Cursor.Text (==) :: TextCursor -> TextCursor -> Bool # (/=) :: TextCursor -> TextCursor -> Bool # | |
Show TextCursor Source # | |
Defined in Cursor.Text showsPrec :: Int -> TextCursor -> ShowS # show :: TextCursor -> String # showList :: [TextCursor] -> ShowS # | |
Generic TextCursor Source # | |
Defined in Cursor.Text type Rep TextCursor :: Type -> Type # from :: TextCursor -> Rep TextCursor x # to :: Rep TextCursor x -> TextCursor # | |
Validity TextCursor Source # | |
Defined in Cursor.Text validate :: TextCursor -> Validation # | |
type Rep TextCursor Source # | |
Defined in Cursor.Text type Rep TextCursor = D1 (MetaData "TextCursor" "Cursor.Text" "cursor-0.1.0.1-B4Ve9845sGB2dEksN2X1wh" True) (C1 (MetaCons "TextCursor" PrefixI True) (S1 (MetaSel (Just "textCursorList") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (ListCursor Char)))) |
makeTextCursor :: Text -> Maybe TextCursor Source #
makeTextCursorWithSelection :: Int -> Text -> Maybe TextCursor Source #
rebuildTextCursor :: TextCursor -> Text Source #
textCursorNull :: TextCursor -> Bool Source #
textCursorLength :: TextCursor -> Int Source #
textCursorIndex :: TextCursor -> Int Source #
textCursorSelectIndex :: Int -> TextCursor -> TextCursor Source #
textCursorPrevChar :: TextCursor -> Maybe Char Source #
textCursorNextChar :: TextCursor -> Maybe Char Source #
textCursorInsert :: Char -> TextCursor -> Maybe TextCursor Source #
textCursorAppend :: Char -> TextCursor -> Maybe TextCursor Source #
textCursorSplit :: TextCursor -> (TextCursor, TextCursor) Source #
textCursorCombine :: TextCursor -> TextCursor -> TextCursor Source #