|
|
|
| Description |
| A zipped list with special cursor at the ends. In fact it handles inserting at start and appending at end where the cursor is pointing to non existing lines.
|
|
| Synopsis |
|
|
|
| Documentation |
|
|
| represent an action, which can fail with Nothing , an index error
|
|
|
| Pos represent the position addressed in the engine
| | Constructors | | Line | the engine addresses a real line
| | nth :: Int | The index of the line starting from 1
|
| | Begin | the engine addresses before first line , if ever present
| | End | the engine addresses after last line
| | lns :: Int | The number of lines in the engine
|
|
| Instances | |
|
|
|
| relative distance between two positions
| | Constructors | | Inside | the cursor when its pointing to a real line (eg line function doesn't fail)
| | left :: [String] | lines before the cursor (reversed order)
| | cursor :: String | addressed line
| | right :: [String] | lines after the cursor
|
| | Corner | the cursor is pointing either to insert at the front of the file or
append at the end of the file.
| | elems :: Either [String] [String] | Left lines is in append mode, Right is in insert at front mode.
|
|
| Instances | |
|
|
|
| An empty engine
|
|
|
| An engine is isomorphic to Engine list
|
|
|
| Extract the list from the engine
|
|
|
| Extract n lines from the position addressed
|
|
|
| Extract the addressed line
|
|
|
| Possibly set the addressed line to the nth line
|
|
|
| Insert some lines before the addressed line
|
|
|
| Insert some lines after the addressed line
|
|
|
| Delete the addressed line , address the next one
|
|
|
| Delete n lines from the addressed position
|
|
|
| Address an append position
|
|
|
| Address before the first line
|
|
|
| The number of the addressed line
|
|
|
| Address the next line
|
|
|
| Address the prev line
|
|
|
| Jump back n lines
|
|
|
| Jump ahead n lines
|
|
|
| Jump n lines relative to the addredded line
|
|
|
| Create all the engines from the addressed one to the last one
|
|
|
| all the next engines from the addressed next to itself , wrapping around
|
|
|
| Create all the engines from the start to the addressed one included
|
|
|
| all the prev engines from the addressed prev to itself , wrapping around
|
|
|
| last element if present
|
|
|
| first element if present
|
|
|
|
|
|
| Produced by Haddock version 2.3.0 |