Hoogle Search

Within LTS Haskell 24.63 (ghc-9.10.3)

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

  1. bytestringDigest :: Digest t -> ByteString

    SHA Data.Digest.Pure.SHA

    Convert a digest to a ByteString.

  2. byteStringBytes :: ByteString -> Unfoldl Word8

    deferred-folds DeferredFolds.Unfoldl

    Bytes of a bytestring

  3. byteStringBytes :: ByteString -> UnfoldlM IO Word8

    deferred-folds DeferredFolds.UnfoldlM

    Bytes of a bytestring

  4. byteStringBytes :: ByteString -> Unfoldr Word8

    deferred-folds DeferredFolds.Unfoldr

    Bytes of a bytestring

  5. byteStringOf :: forall (st :: ZeroBitType) e a . ParserT st e a -> ParserT st e ByteString

    flatparse FlatParse.Basic

    Return the ByteString consumed by a parser. Note: it's more efficient to use spanOf and withSpan instead.

  6. byteStringOf :: forall (st :: ZeroBitType) r e a . ParserT st r e a -> ParserT st r e ByteString

    flatparse FlatParse.Stateful

    Return the ByteString consumed by a parser. Note: it's more efficient to use spanOf and withSpan instead.

  7. byteStringToInteger :: ByteString -> Integer

    integer-conversion Data.Integer.Conversion

    Convert ByteString to Integer. Semantically same as BS.foldl' (acc c -> acc * 10 + toInteger c - 48) 0, but this is more efficient.

    >>> byteStringToInteger "123456789"
    123456789
    
    For non-decimal inputs some nonsense is calculated
    >>> byteStringToInteger "foobar"
    6098556
    

  8. package bytestring-lexing

    Efficiently parse and produce common integral and fractional numbers. The bytestring-lexing package offers extremely efficient ByteString parsers for some common lexemes: namely integral and fractional numbers. In addition, it provides efficient serializers for (some of) the formats it parses. As of version 0.3.0, bytestring-lexing offers the best-in-show parsers for integral values. (According to the Warp web server's benchmark of parsing the Content-Length field of HTTP headers.) And as of version 0.5.0 it offers (to my knowledge) the best-in-show parser for fractional/floating numbers. Some benchmarks for this package can be found at: https://github.com/wrengr/bytestring-lexing/tree/master/bench/html

  9. bytestring16 :: Word16 -> ByteString

    network-byte-order Network.ByteOrder

    >>> let w = foldl' (\x y -> x * 256 + y) 0 [5,6] :: Word16
    
    >>> unpack $ bytestring16 w
    [5,6]
    

  10. bytestring32 :: Word32 -> ByteString

    network-byte-order Network.ByteOrder

    >>> let w = foldl' (\x y -> x * 256 + y) 0 [5,6,7,8] :: Word32
    
    >>> unpack $ bytestring32 w
    [5,6,7,8]
    

Page 22 of many | Previous | Next