Move one word to the left.
A word is defined as a consecutive string not satisfying isSpace. This function always leaves the cursor at the beginning of a word (except at the very start of the text).
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27
Moduletext-zipper-0.13Haskell2010
Implements word movements.
Copyright (c) Hans-Peter Deifel
Move one word to the left.
A word is defined as a consecutive string not satisfying isSpace. This function always leaves the cursor at the beginning of a word (except at the very start of the text).
Move one word to the right.
A word is defined as a consecutive string not satisfying isSpace. This function always leaves the cursor at the end of a word (except at the very end of the text).
Delete the previous word.
Does the same as moveWordLeft but deletes characters instead of simply moving past them.
Delete the next word.
Does the same as moveWordRight but deletes characters instead of simply moving past them.