Safe Haskell | None |
---|---|
Language | Haskell98 |
Documentation
Range has anchor
and head
properties, which are zero-based indices into
the document. The anchor
is the side of the selection that stays fixed,
head
is the side of the selection where the cursor is. When both are
equal, the range represents a cursor.
Range | |
|
A selection consists of a list of ranges. Each range may represent a selected part of the document or a cursor in the document.
createCursor :: Int -> Selection Source
Create a selection that represents a cursor.
somethingSelected :: Selection -> Bool Source
Does the selection contain any characters?