HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulehxt-9.3.1.22Haskell2010

Text.XML.HXT.DOM.Util

Little useful things for strings, lists and other values

  • 27 values
  • Packagehxt-9.3.1.22
  • Exports27
  • LanguageHaskell2010
  • LicenceMIT
  • SourceUtil.hs
valuestringTrim :: String -> String
#

remove leading and trailing whitespace with standard Haskell predicate isSpace

valuestringAll :: Eq a => [a] -> [a] -> [Int]
#

find all positions where a string occurs within another string

valuestringLast :: Eq a => [a] -> [a] -> Maybe Int
#

find the position of the last occurence of a string

valuedoubles :: Eq a => [a] -> [a]
#

take all elements of a list which occur more than once. The result does not contain doubles. (doubles . doubles == doubles)

valuesingles :: Eq a => [a] -> [a]
#

drop all elements from a list which occur more than once.

valuenoDoubles :: Eq a => [a] -> [a]
#

remove duplicates from list

valueswap :: (a, b) -> (b, a)
#
valueuncurry3 :: (a -> b -> c -> d) -> (a, b, c) -> d
#

mothers little helpers for to much curry

valueuncurry4 :: (a -> b -> c -> d -> e) -> (a, b, c, d) -> e
#