Hoogle Search

Within Stackage Nightly 2025-09-26 (ghc-9.12.2)

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

  1. setClientEncoding :: Connection -> ByteString -> IO Bool

    postgresql-libpq Database.PostgreSQL.LibPQ

    Sets the client encoding.

  2. setErrorVerbosity :: Connection -> Verbosity -> IO Verbosity

    postgresql-libpq Database.PostgreSQL.LibPQ

    Determines the verbosity of messages returned by errorMessage and resultErrorMessage. setErrorVerbosity sets the verbosity mode, returning the connection's previous setting. In ErrorsTerse mode, returned messages include severity, primary text, and position only; this will normally fit on a single line. The default mode produces messages that include the above plus any detail, hint, or context fields (these might span multiple lines). The ErrorsVerbose mode includes all available fields. Changing the verbosity does not affect the messages available from already-existing Result objects, only subsequently-created ones.

  3. setSingleRowMode :: Connection -> IO Bool

    postgresql-libpq Database.PostgreSQL.LibPQ

    Select single-row mode for the currently-executing query. This function can only be called immediately after PQsendQuery or one of its sibling functions, before any other operation on the connection such as PQconsumeInput or PQgetResult. If called at the correct time, the function activates single-row mode for the current query and returns 1. Otherwise the mode stays unchanged and the function returns 0. In any case, the mode reverts to normal after completion of the current query.

  4. setnonblocking :: Connection -> Bool -> IO Bool

    postgresql-libpq Database.PostgreSQL.LibPQ

    Sets the nonblocking status of the connection.

  5. setElem :: a -> (Int, Int) -> Matrix a -> Matrix a

    matrix Data.Matrix

    Replace the value of a cell in a matrix.

  6. setSize :: a -> Int -> Int -> Matrix a -> Matrix a

    matrix Data.Matrix

    Set the size of a matrix to given parameters. Use a default element for undefined entries if the matrix has been extended.

  7. setComp :: Strategy r => Comp -> Array r ix e -> Array r ix e

    massiv Data.Massiv.Array

    Set computation strategy for this array

    Example

    >>> :set -XTypeApplications
    
    >>> import Data.Massiv.Array
    
    >>> a = singleton @DL @Ix1 @Int 0
    
    >>> a
    Array DL Seq (Sz1 1)
    [ 0 ]
    
    >>> setComp (ParN 6) a -- use 6 capabilities
    Array DL (ParN 6) (Sz1 1)
    [ 0 ]
    

  8. setComp :: Strategy r => Comp -> Array r ix e -> Array r ix e

    massiv Data.Massiv.Core

    Set computation strategy for this array

    Example

    >>> :set -XTypeApplications
    
    >>> import Data.Massiv.Array
    
    >>> a = singleton @DL @Ix1 @Int 0
    
    >>> a
    Array DL Seq (Sz1 1)
    [ 0 ]
    
    >>> setComp (ParN 6) a -- use 6 capabilities
    Array DL (ParN 6) (Sz1 1)
    [ 0 ]
    

  9. setDim' :: (HasCallStack, Index ix) => ix -> Dim -> Int -> ix

    massiv Data.Massiv.Core.Index

    Change the value of a specific dimension within the index. See setDimM for a safer version and setDimension for a type safe version.

    Examples

    >>> setDim' (2 :> 3 :> 4 :. 5) 3 10
    2 :> 10 :> 4 :. 5
    

  10. setDimM :: (Index ix, MonadThrow m) => ix -> Dim -> Int -> m ix

    massiv Data.Massiv.Core.Index

    Set the value for an index at specified dimension.

Page 41 of many | Previous | Next