Hoogle Search

Within LTS Haskell 24.36 (ghc-9.10.3)

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

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

    ghc-internal GHC.Internal.Data.OldList

    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. InvalidSequence :: CodingProgress

    ghc-internal GHC.Internal.IO.Encoding

    Stopped because there are sufficient free elements in the output to output at least one encoded ASCII character, but the input contains an invalid or unrepresentable sequence

  3. InvalidSequence :: CodingProgress

    ghc-internal GHC.Internal.IO.Encoding.Types

    Stopped because there are sufficient free elements in the output to output at least one encoded ASCII character, but the input contains an invalid or unrepresentable sequence

  4. subsequences :: Infinite a -> Infinite [a]

    infinite-list Data.List.Infinite

    Generate an infinite list of all finite subsequences of the argument.

    >>> take 8 (subsequences (0...))
    [[],[0],[1],[0,1],[2],[0,2],[1,2],[0,1,2]]
    

  5. subsequences1 :: Infinite a -> Infinite (NonEmpty a)

    infinite-list Data.List.Infinite

    Generate an infinite list of all non-empty finite subsequences of the argument.

    >>> take 7 (subsequences1 (0...))
    [0 :| [],1 :| [],0 :| [1],2 :| [],0 :| [2],1 :| [2],0 :| [1,2]]
    

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

    protolude Protolude

    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"]
    

  7. ySequence :: Loader (m :: Type -> Type) n -> Tag -> [n] -> LoaderT m n

    HsYAML Data.YAML

    No documentation available.

  8. schemaEncoderSequence :: SchemaEncoder -> Tag -> Either String Tag

    HsYAML Data.YAML.Schema

    No documentation available.

  9. schemaResolverSequence :: SchemaResolver -> Tag -> Either String Tag

    HsYAML Data.YAML.Schema

    No documentation available.

  10. BeginSequence :: Code

    HsYAML Data.YAML.Token

    Begins sequence content.

Page 59 of many | Previous | Next