Hoogle Search
Within LTS Haskell 24.34 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
formatHttpTime :: CTime -> IO ByteStringsnap-core Snap.Core Convert a CTime into an HTTP timestamp. Example:
ghci> formatHttpTime . fromIntegral $ 10 "Thu, 01 Jan 1970 00:00:10 GMT"
formatHttpTime :: CTime -> IO ByteStringsnap-core Snap.Internal.Core Convert a CTime into an HTTP timestamp. Example:
ghci> formatHttpTime . fromIntegral $ 10 "Thu, 01 Jan 1970 00:00:10 GMT"
formatLogTime :: CTime -> IO ByteStringsnap-core Snap.Internal.Core Convert a CTime into common log entry format.
formatHttpTime :: CTime -> IO ByteStringsnap-core Snap.Internal.Http.Types Convert a CTime into an HTTP timestamp. Example:
ghci> formatHttpTime . fromIntegral $ 10 "Thu, 01 Jan 1970 00:00:10 GMT"
formatLogTime :: CTime -> IO ByteStringsnap-core Snap.Internal.Http.Types Convert a CTime into common log entry format.
formFileName :: FormFile a -> !ByteStringsnap-core Snap.Util.FileUploads Name of a field
formFileValue :: FormFile a -> asnap-core Snap.Util.FileUploads Result of storing file
formatUnixTime :: Format -> UnixTime -> IO ByteStringunix-time Data.UnixTime Formatting UnixTime to ByteString in local time. This is a wrapper for strftime_l(). utMicroSeconds is ignored. The result depends on the TZ environment variable.
formatUnixTimeGMT :: Format -> UnixTime -> ByteStringunix-time Data.UnixTime Formatting UnixTime to ByteString in GMT. This is a wrapper for strftime_l(). utMicroSeconds is ignored.
>>> formatUnixTimeGMT webDateFormat $ UnixTime 0 0 "Thu, 01 Jan 1970 00:00:00 GMT" >>> let ut = UnixTime 100 200 >>> let str = formatUnixTimeGMT "%s" ut >>> let ut' = parseUnixTimeGMT "%s" str >>> ((==) `on` utSeconds) ut ut' True >>> ((==) `on` utMicroSeconds) ut ut' False
-
vector-sized Data.Vector.Generic.Sized O(n) Apply the monadic action to all elements of the vector, yielding a vector of results. Equvalent to flip mapM.