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
A value containing the body of the log record. Can be for example a human-readable string message (including multi-line) describing the event in a free form or it can be a structured data composed of arrays and maps of other values. Body MUST support any type to preserve the semantics of structured logs emitted by the applications. Can vary for each occurrence of the event coming from the same source. This field is optional. Type any Value of type any can be one of the following: - A scalar value: number, string or boolean, - A byte array, - An array (a list) of any values, - A mapany.
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)
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 ]