Hoogle Search
Within LTS Haskell 24.67 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
hedgehog Hedgehog.Internal.State The first branch.
-
hedgehog Hedgehog.Internal.State The second branch.
parallelPrefix :: Parallel (m :: Type -> Type) (state :: (Type -> Type) -> Type) -> [Action m state]hedgehog Hedgehog.Internal.State The sequential prefix.
-
tasty-bench Test.Tasty.Bench Measure wall-clock time.
-
prettyprinter Prettyprinter Do not dive deep into nested documents, fusing mostly concatenations of text nodes together.
-
prettyprinter Prettyprinter.Internal Do not dive deep into nested documents, fusing mostly concatenations of text nodes together.
skipAll :: ByteArray byteArray => Parser byteArray ()memory Data.ByteArray.Parse Skip all the remaining bytes from the current position in the stream
takeAll :: ByteArray byteArray => Parser byteArray byteArraymemory Data.ByteArray.Parse Take the remaining bytes from the current position in the stream
setInstallShutdownHandler :: (IO () -> IO ()) -> Settings -> Settingswarp Network.Wai.Handler.Warp A code to install shutdown handler. For instance, this code should set up a UNIX signal handler. The handler should call the first argument, which closes the listen socket, at shutdown. Example usage:
settings :: IO () -> Settings settings shutdownAction = setInstallShutdownHandler shutdownHandler defaultSettings where shutdownHandler closeSocket = void $ installHandler sigTERM (Catch $ shutdownAction >> closeSocket) Nothing
Note that by default, the graceful shutdown mode lasts indefinitely (see setGracefulShutdownTimeout). If you install a signal handler as above, upon receiving that signal, the custom shutdown action will run and all outstanding requests will be handled. You may instead prefer to do one or both of the following:- Only wait a finite amount of time for outstanding requests to complete, using setGracefulShutdownTimeout.
- Only catch one signal, so the second hard-kills the Warp server, using CatchOnce.
connSendAll :: Connection -> ByteString -> IO ()warp Network.Wai.Handler.Warp.Internal The sending function.