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.

  1. formatHttpTime :: CTime -> IO ByteString

    snap-core Snap.Core

    Convert a CTime into an HTTP timestamp. Example:

    ghci> formatHttpTime . fromIntegral $ 10
    "Thu, 01 Jan 1970 00:00:10 GMT"
    

  2. formatHttpTime :: CTime -> IO ByteString

    snap-core Snap.Internal.Core

    Convert a CTime into an HTTP timestamp. Example:

    ghci> formatHttpTime . fromIntegral $ 10
    "Thu, 01 Jan 1970 00:00:10 GMT"
    

  3. formatLogTime :: CTime -> IO ByteString

    snap-core Snap.Internal.Core

    Convert a CTime into common log entry format.

  4. formatHttpTime :: CTime -> IO ByteString

    snap-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"
    

  5. formatLogTime :: CTime -> IO ByteString

    snap-core Snap.Internal.Http.Types

    Convert a CTime into common log entry format.

  6. formFileName :: FormFile a -> !ByteString

    snap-core Snap.Util.FileUploads

    Name of a field

  7. formFileValue :: FormFile a -> a

    snap-core Snap.Util.FileUploads

    Result of storing file

  8. formatUnixTime :: Format -> UnixTime -> IO ByteString

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

  9. formatUnixTimeGMT :: Format -> UnixTime -> ByteString

    unix-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
    

  10. forM :: forall m (v :: Type -> Type) a b (n :: Nat) . (Monad m, Vector v a, Vector v b) => Vector v n a -> (a -> m b) -> m (Vector v n b)

    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.

Page 51 of many | Previous | Next