Hoogle Search

Within LTS Haskell 24.2 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. words :: String -> [String]

    LambdaHack Game.LambdaHack.Core.Prelude

    words breaks a string up into a list of words, which were delimited by white space (as defined by isSpace). This function trims any white spaces at the beginning and at the end.

    Examples

    >>> words "Lorem ipsum\ndolor"
    ["Lorem","ipsum","dolor"]
    
    >>> words " foo bar "
    ["foo","bar"]
    

  2. words :: String -> [String]

    cabal-install-solver Distribution.Solver.Compat.Prelude

    words breaks a string up into a list of words, which were delimited by white space (as defined by isSpace). This function trims any white spaces at the beginning and at the end.

    Examples

    >>> words "Lorem ipsum\ndolor"
    ["Lorem","ipsum","dolor"]
    
    >>> words " foo bar "
    ["foo","bar"]
    

  3. words :: String -> [String]

    dimensional Numeric.Units.Dimensional.Prelude

    words breaks a string up into a list of words, which were delimited by white space (as defined by isSpace). This function trims any white spaces at the beginning and at the end.

    Examples

    >>> words "Lorem ipsum\ndolor"
    ["Lorem","ipsum","dolor"]
    
    >>> words " foo bar "
    ["foo","bar"]
    

  4. words :: String -> [String]

    distribution-opensuse OpenSuse.Prelude

    words breaks a string up into a list of words, which were delimited by white space (as defined by isSpace). This function trims any white spaces at the beginning and at the end.

    Examples

    >>> words "Lorem ipsum\ndolor"
    ["Lorem","ipsum","dolor"]
    
    >>> words " foo bar "
    ["foo","bar"]
    

  5. words :: String -> [String]

    faktory Faktory.Prelude

    words breaks a string up into a list of words, which were delimited by white space (as defined by isSpace). This function trims any white spaces at the beginning and at the end.

    Examples

    >>> words "Lorem ipsum\ndolor"
    ["Lorem","ipsum","dolor"]
    
    >>> words " foo bar "
    ["foo","bar"]
    

  6. words :: String <-> [String]

    invertible Data.Invertible.Prelude

    Split a string into words.

  7. words :: String -> [String]

    constrained-categories Control.Category.Constrained.Prelude

    words breaks a string up into a list of words, which were delimited by white space (as defined by isSpace). This function trims any white spaces at the beginning and at the end.

    Examples

    >>> words "Lorem ipsum\ndolor"
    ["Lorem","ipsum","dolor"]
    
    >>> words " foo bar "
    ["foo","bar"]
    

  8. words :: String -> [String]

    copilot-language Copilot.Language.Prelude

    words breaks a string up into a list of words, which were delimited by white space (as defined by isSpace). This function trims any white spaces at the beginning and at the end.

    Examples

    >>> words "Lorem ipsum\ndolor"
    ["Lorem","ipsum","dolor"]
    
    >>> words " foo bar "
    ["foo","bar"]
    

  9. words :: String -> [String]

    xmonad-contrib XMonad.Prelude

    words breaks a string up into a list of words, which were delimited by white space (as defined by isSpace). This function trims any white spaces at the beginning and at the end.

    Examples

    >>> words "Lorem ipsum\ndolor"
    ["Lorem","ipsum","dolor"]
    
    >>> words " foo bar "
    ["foo","bar"]
    

  10. wordsBy :: forall t (m :: Type -> Type) a b . (IsStream t, Monad m) => (a -> Bool) -> Fold m a b -> t m a -> t m b

    streamly Streamly.Prelude

    Like splitOn after stripping leading, trailing, and repeated separators. Therefore, ".a..b." with . as the separator would be parsed as ["a","b"]. In other words, its like parsing words from whitespace separated text.

    >>> wordsBy' p xs = Stream.toList $ Stream.wordsBy p Fold.toList (Stream.fromList xs)
    
    >>> wordsBy' (== ',') ""
    []
    
    >>> wordsBy' (== ',') ","
    []
    
    >>> wordsBy' (== ',') ",a,,b,"
    ["a","b"]
    
    words = wordsBy isSpace
    

Page 2 of many | Previous | Next