Hoogle Search

Within LTS Haskell 24.19 (ghc-9.10.3)

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

  1. subsequences :: [a] -> [[a]]

    xmonad-contrib XMonad.Prelude

    The subsequences function returns the list of all subsequences of the argument.

    Laziness

    subsequences does not look ahead unless it must:
    >>> take 1 (subsequences undefined)
    [[]]
    
    >>> take 2 (subsequences ('a' : undefined))
    ["","a"]
    

    Examples

    >>> subsequences "abc"
    ["","a","b","ab","c","ac","bc","abc"]
    
    This function is productive on infinite inputs:
    >>> take 8 $ subsequences ['a'..]
    ["","a","b","ab","c","ac","bc","abc"]
    

  2. parseKeySequence :: forall (l :: Type -> Type) . XConfig l -> Parser [(KeyMask, KeySym)]

    xmonad-contrib XMonad.Util.EZConfig

    Parse a sequence of key combinations separated by spaces, e.g. "M-c x C-S-2" (mod+c, x, ctrl+shift+2).

  3. readKeySequence :: forall (l :: Type -> Type) . XConfig l -> String -> Maybe (NonEmpty (KeyMask, KeySym))

    xmonad-contrib XMonad.Util.EZConfig

    Parse a sequence of keys, returning Nothing if there is a parse failure (no parse, or ambiguous parse).

Page 94 of many | Previous | Next