Hoogle Search

Within LTS Haskell 24.68 (ghc-9.10.3)

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

  1. defaultReadN :: Socket -> IORef (Maybe ByteString) -> ReadN

    http-semantics Network.HTTP.Semantics.Client

    Naive implementation for readN. NOTE: This function is intended to be used by a single thread only. (It is probably quite rare anyway to want concurrent reads from the same network socket.)

  2. type PositionRead = FileOffset -> ByteCount -> Buffer -> IO ByteCount

    http-semantics Network.HTTP.Semantics.IO

    Position read for files.

  3. type PositionReadMaker = FilePath -> IO (PositionRead, Sentinel)

    http-semantics Network.HTTP.Semantics.IO

    Making a position read and its closer.

  4. defaultPositionReadMaker :: PositionReadMaker

    http-semantics Network.HTTP.Semantics.IO

    Position read based on Handle.

  5. defaultReadN :: Socket -> IORef (Maybe ByteString) -> ReadN

    http-semantics Network.HTTP.Semantics.IO

    Naive implementation for readN. NOTE: This function is intended to be used by a single thread only. (It is probably quite rare anyway to want concurrent reads from the same network socket.)

  6. type PositionRead = FileOffset -> ByteCount -> Buffer -> IO ByteCount

    http-semantics Network.HTTP.Semantics.Server

    Position read for files.

  7. type PositionReadMaker = FilePath -> IO (PositionRead, Sentinel)

    http-semantics Network.HTTP.Semantics.Server

    Making a position read and its closer.

  8. defaultPositionReadMaker :: PositionReadMaker

    http-semantics Network.HTTP.Semantics.Server

    Position read based on Handle.

  9. defaultReadN :: Socket -> IORef (Maybe ByteString) -> ReadN

    http-semantics Network.HTTP.Semantics.Server

    Naive implementation for readN. NOTE: This function is intended to be used by a single thread only. (It is probably quite rare anyway to want concurrent reads from the same network socket.)

  10. package human-readable-duration

    Provide duration helper This is a minimal Haskell library to display duration.

    let duration = 2 * ms + 3 * oneSecond + 2 * minute + 33*day + 2*year
    humanReadableDuration duration
    -- will return: "2 years 33 days 2 min 3s 2ms"
    getYears duration
    -- will return 2
    getDays duration
    -- will return 763
    getMs duration
    -- will return 65923323002
    

Page 774 of many | Previous | Next