OrdB

Types with inequality. Minimum definition: '(<*)'.
Remove the duplicates from a list using the provided comparison function.
Haskell Record Bindings
A version of disjointOrd with a custom predicate.
disjointOrdBy (compare `on` (`mod` 7)) [1,2,3] [4,5] == True
disjointOrdBy (compare `on` (`mod` 7)) [1,2,3] [4,8] == False
A version of nubOrd with a custom predicate.
nubOrdBy (compare `on` length) ["a","test","of","this"] == ["a","test","of"]
nubOrdBy for NonEmpty. Behaves the same as nubOrdBy.
Data.List.NonEmpty.Extra.nubOrdBy (compare `on` Data.List.length) ("a" :| ["test","of","this"]) == "a" :| ["test","of"]
A convenient alias for common type signatures
Get the value of the “is_word_boundary” field. When overloading is enabled, this is equivalent to
get logAttr #isWordBoundary
Set the value of the “is_word_boundary” field. When overloading is enabled, this is equivalent to
set logAttr [ #isWordBoundary := value ]
Like splitOn but strips leading, trailing, and repeated separators. Therefore, ".a..b." having . as the separator would be parsed as ["a","b"]. In other words, its like parsing words from whitespace separated text.
  • Stops - when it finds a word separator after a non-word element
  • Fails - never.
>>> wordBy = Parser.wordFramedBy (const False) (const False) (const False)
S.wordsBy pred f = S.parseMany (PR.wordBy pred f)
Delete backward whitespace or non-whitespace depending on the character before point.