Hoogle Search

Within LTS Haskell 24.52 (ghc-9.10.3)

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

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

    http-semantics Network.HTTP.Semantics.Server

    Making a position read and its closer.

  2. defaultPositionReadMaker :: PositionReadMaker

    http-semantics Network.HTTP.Semantics.Server

    Position read based on Handle.

  3. 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.)

  4. 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
    

  5. humanReadableDuration :: Seconds -> String

    human-readable-duration Data.Duration

    humanReadableDuration take some time in micro-second precision and render a human readable duration.

    >>> let duration = 2 * ms + 3 * oneSecond + 2 * minute + 33*day + 2*year
    
    >>> duration
    65923323.002000
    
    >>> humanReadableDuration duration
    "2 years 33 days 2 min 3s 2ms"
    

  6. humanReadableDuration' :: Real a => a -> String

    human-readable-duration Data.Duration

    Wrapper around any Real input, which works for DiffTime and NominalDiffTime from the time library, or a Double of seconds.

    >>> import Data.Time.Clock
    
    >>> humanReadableDuration' (secondsToDiffTime 10)
    "10s "
    

  7. module HaskellWorks.Data.Bits.BitRead

    No documentation available.

  8. class BitRead a

    hw-bits HaskellWorks.Data.Bits.BitRead

    Bit string reader that produces a value of a type

  9. bitRead :: BitRead a => String -> Maybe a

    hw-bits HaskellWorks.Data.Bits.BitRead

    Read a bit string into a value

  10. unsafeBitRead :: BitRead a => String -> a

    hw-bits HaskellWorks.Data.Bits.BitRead

    Read a bit string into a value. This function is unsafe because it is a partial function that errors if the input string is an invaild bit string

Page 775 of many | Previous | Next