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.
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!
setCur :: Ptr Word8 -> BuildM ()fast-builder Data.ByteString.FastBuilder.Internal Set the current pointer.
setEnd :: Ptr Word8 -> BuildM ()fast-builder Data.ByteString.FastBuilder.Internal Set the end-of-buffer pointer.
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)]
setFromCarrier :: (c -> b) -> SExprPrinter a b -> SExprPrinter a cs-cargot Data.SCargot Modify the carrier type of a SExprPrinter by describing how to convert the new type back to the previous type. For example, to pretty-print a well-formed s-expression, we can modify the SExprPrinter value as follows:
>>> let printer = setFromCarrier fromWellFormed (basicPrint id) >>> encodeOne printer (WFSList [WFSAtom "ele", WFSAtom "phant"]) "(ele phant)"