Hoogle Search

Within LTS Haskell 24.49 (ghc-9.10.3)

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

  1. formFileValue :: FormFile a -> a

    snap-core Snap.Util.FileUploads

    Result of storing file

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

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

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

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

    vector-sized Data.Vector.Generic.Sized

    O(n) Apply the monadic action to all elements of a vector and ignore the results. Equivalent to flip mapM_.

  6. force :: forall (v :: Type -> Type) a (n :: Nat) . Vector v a => Vector v n a -> Vector v n a

    vector-sized Data.Vector.Generic.Sized

    O(n) Yield the argument but force it not to retain any extra memory, possibly by copying it. This is especially useful when dealing with slices. For example:

    force (slice 0 2 <huge vector>)
    
    Here, the slice retains a reference to the huge vector. Forcing it creates a copy of just the elements that belong to the slice and allows the huge vector to be garbage collected.

  7. forM :: forall m a b (n :: Nat) . (Monad m, Prim a, Prim b) => Vector n a -> (a -> m b) -> m (Vector n b)

    vector-sized Data.Vector.Primitive.Sized

    O(n) Apply the monadic action to all elements of the vector, yielding a vector of results. Equvalent to flip mapM.

  8. forM_ :: forall m a (n :: Nat) b . (Monad m, Prim a) => Vector n a -> (a -> m b) -> m ()

    vector-sized Data.Vector.Primitive.Sized

    O(n) Apply the monadic action to all elements of a vector and ignore the results. Equivalent to flip mapM_.

  9. force :: forall a (n :: Nat) . Prim a => Vector n a -> Vector n a

    vector-sized Data.Vector.Primitive.Sized

    O(n) Yield the argument but force it not to retain any extra memory, possibly by copying it. This is especially useful when dealing with slices. For example:

    force (slice 0 2 <huge vector>)
    
    Here, the slice retains a reference to the huge vector. Forcing it creates a copy of just the elements that belong to the slice and allows the huge vector to be garbage collected.

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

    vector-sized Data.Vector.Sized

    O(n) Apply the monadic action to all elements of the vector, yielding a vector of results. Equvalent to flip mapM.

Page 52 of many | Previous | Next