Hoogle Search
Within Stackage Nightly 2025-09-28 (ghc-9.12.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
setExtendedResultCodes :: Database -> Bool -> IO (Either Error ())direct-sqlite Database.SQLite3.Direct setLoadExtensionEnabled :: Database -> Bool -> IO (Either Error ())direct-sqlite Database.SQLite3.Direct https://www.sqlite.org/c3ref/enable_load_extension.html Enable or disable extension loading.
setSharedCacheEnabled :: Bool -> IO (Either Error ())direct-sqlite Database.SQLite3.Direct https://www.sqlite.org/c3ref/enable_shared_cache.html Enable or disable shared cache for all future connections.
setTrace :: Database -> Maybe (Utf8 -> IO ()) -> IO ()direct-sqlite Database.SQLite3.Direct https://www.sqlite.org/c3ref/profile.html Enable/disable tracing of SQL execution. Tracing can be disabled by setting Nothing as the logger callback. Warning: If the logger callback throws an exception, your whole program will crash. Enable only for debugging!
setHListElem :: ContainsType a c => a -> HList c -> HList cmultistate Data.HList.ContainsType No documentation available.
setAddr :: (Prim a, PrimMonad m) => Addr -> Int -> a -> m ()primitive-addr Data.Primitive.Addr Fill a memory block of with the given value. The length is in elements of type a rather than in bytes.
setPVar# :: (MonadPrim s m, Prim a) => PVar a s -> Int# -> m ()pvar Data.Primitive.PVar.Unsafe Fill the contents of mutable variable with byte c
setCached :: (Typeable a, MonadIO m, MonadReader Cache m) => Key -> a -> m ()registry Data.Registry.Internal.Cache Cache a value at a given key in the cache This is a IO operation since we access the cache MVar
setCarrier :: (b -> Either String c) -> SExprParser a b -> SExprParser a cs-cargot Data.SCargot Modify the carrier type for a SExprParser. This is used internally to convert between various SExpr representations, but could also be used externally to add an extra conversion layer onto a SExprParser.
>>> import Text.Parsec (alphaNum, many1) >>> import Data.SCargot.Repr (toRich) >>> let parser = setCarrier (return . toRich) (mkParser (many1 alphaNum)) >>> decode parser "(ele phant)" Right [RSlist [RSAtom "ele",RSAtom "phant"]]
setComment :: Comment -> SExprParser a c -> SExprParser a cs-cargot Data.SCargot Add the ability to ignore some kind of comment. This gets factored into whitespace parsing, and it's very important that the parser supplied be able to fail (as otherwise it will cause an infinite loop), and also that it not consume any input (which may require it to be wrapped in try.)
>>> import Text.Parsec (alphaNum, anyChar, manyTill, many1, string) >>> let comment = string "//" *> manyTill anyChar newline *> pure () >>> let parser = setComment comment (mkParser (many1 alphaNum)) >>> decode parser "(ele //a comment\n phant)" Right [SCons (SAtom "ele") (SCons (SAtom "phant") SNil)]