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.
setClientEncoding :: Connection -> ByteString -> IO Boolpostgresql-libpq Database.PostgreSQL.LibPQ Sets the client encoding.
setErrorVerbosity :: Connection -> Verbosity -> IO Verbositypostgresql-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.
setSingleRowMode :: Connection -> IO Boolpostgresql-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.
setnonblocking :: Connection -> Bool -> IO Boolpostgresql-libpq Database.PostgreSQL.LibPQ Sets the nonblocking status of the connection.
setElem :: a -> (Int, Int) -> Matrix a -> Matrix amatrix Data.Matrix Replace the value of a cell in a matrix.
setSize :: a -> Int -> Int -> Matrix a -> Matrix amatrix Data.Matrix Set the size of a matrix to given parameters. Use a default element for undefined entries if the matrix has been extended.
setComp :: Strategy r => Comp -> Array r ix e -> Array r ix emassiv 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 ]
setComp :: Strategy r => Comp -> Array r ix e -> Array r ix emassiv 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 ]
setDim' :: (HasCallStack, Index ix) => ix -> Dim -> Int -> ixmassiv 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
setDimM :: (Index ix, MonadThrow m) => ix -> Dim -> Int -> m ixmassiv Data.Massiv.Core.Index Set the value for an index at specified dimension.