Hoogle Search
Within LTS Haskell 24.50 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
beforeAllWith :: HasCallStack => (b -> IO a) -> SpecWith a -> SpecWith bhspec Test.Hspec Run a custom action with an argument before the first spec item.
beforeAll_ :: HasCallStack => IO () -> SpecWith a -> SpecWith ahspec Test.Hspec Run a custom action before the first spec item.
parallel :: SpecWith a -> SpecWith ahspec Test.Hspec parallel marks all spec items of the given spec to be safe for parallel evaluation.
callCC :: MonadCont m => ((a -> m b) -> m a) -> m amtl Control.Monad.Cont callCC (call-with-current-continuation) calls a function with the current continuation as its argument. Provides an escape continuation mechanism for use with Continuation monads. Escape continuations allow to abort the current computation and return a value immediately. They achieve a similar effect to throwError and catchError within an Except monad. Advantage of this function over calling return is that it makes the continuation explicit, allowing more flexibility and better control (see examples in Control.Monad.Cont). The standard idiom used with callCC is to provide a lambda-expression to name the continuation. Then calling the named continuation anywhere within its scope will escape from the computation, even if it is many layers deep within nested computations.
callCC :: MonadCont m => ((a -> m b) -> m a) -> m amtl Control.Monad.Cont.Class callCC (call-with-current-continuation) calls a function with the current continuation as its argument. Provides an escape continuation mechanism for use with Continuation monads. Escape continuations allow to abort the current computation and return a value immediately. They achieve a similar effect to throwError and catchError within an Except monad. Advantage of this function over calling return is that it makes the continuation explicit, allowing more flexibility and better control (see examples in Control.Monad.Cont). The standard idiom used with callCC is to provide a lambda-expression to name the continuation. Then calling the named continuation anywhere within its scope will escape from the computation, even if it is many layers deep within nested computations.
installSignalHandlers :: IO ()tasty Test.Tasty.Runners Install signal handlers so that e.g. the cursor is restored if the test suite is killed by SIGTERM. Upon a signal, a SignalException will be thrown to the thread that has executed this action. This function is called automatically from the defaultMain* family of functions. You only need to call it explicitly if you call tryIngredients yourself. This function does nothing when POSIX signals are not supported.
periodAllDays :: DayPeriod p => p -> [Day]time Data.Time.Calendar A list of all the days in this period.
weekAllDays :: DayOfWeek -> Day -> [Day]time Data.Time.Calendar Returns a week containing the given Day where the first day is the DayOfWeek specified. Examples:
>>> weekAllDays Sunday (YearMonthDay 2022 02 21) [YearMonthDay 2022 2 20 .. YearMonthDay 2022 2 26]
>>> weekAllDays Monday (YearMonthDay 2022 02 21) [YearMonthDay 2022 2 21 .. YearMonthDay 2022 2 27]
>>> weekAllDays Tuesday (YearMonthDay 2022 02 21) [YearMonthDay 2022 2 15 .. YearMonthDay 2022 2 21]
getXdgDirectoryFallback :: IO OsPath -> XdgDirectory -> IO OsPathdirectory System.Directory.Internal No documentation available.
getXdgDirectoryListFallback :: XdgDirectoryList -> IO [OsPath]directory System.Directory.Internal No documentation available.