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.
type
PositionReadMaker = FilePath -> IO (PositionRead, Sentinel)http-semantics Network.HTTP.Semantics.Server Making a position read and its closer.
defaultPositionReadMaker :: PositionReadMakerhttp-semantics Network.HTTP.Semantics.Server Position read based on Handle.
defaultReadN :: Socket -> IORef (Maybe ByteString) -> ReadNhttp-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.)
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
humanReadableDuration :: Seconds -> Stringhuman-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"
humanReadableDuration' :: Real a => a -> Stringhuman-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 "
module HaskellWorks.Data.Bits.
BitRead No documentation available.
-
hw-bits HaskellWorks.Data.Bits.BitRead Bit string reader that produces a value of a type
bitRead :: BitRead a => String -> Maybe ahw-bits HaskellWorks.Data.Bits.BitRead Read a bit string into a value
unsafeBitRead :: BitRead a => String -> ahw-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