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.

  1. doubleQuotes :: Doc -> Doc

    pretty Text.PrettyPrint.HughesPJ

    No documentation available.

  2. maybeDoubleQuotes :: Bool -> Doc -> Doc

    pretty Text.PrettyPrint.HughesPJ

    Apply doubleQuotes to Doc if boolean is true.

  3. maybeQuotes :: Bool -> Doc -> Doc

    pretty Text.PrettyPrint.HughesPJ

    Apply quotes to Doc if boolean is true.

  4. Require :: (state Symbolic -> input Symbolic -> Bool) -> Callback (input :: (Type -> Type) -> Type) output (state :: (Type -> Type) -> Type)

    hedgehog Hedgehog

    A pre-condition for a command that must be verified before the command can be executed. This is mainly used during shrinking to ensure that it is still OK to run a command despite the fact that some previously executed commands may have been removed from the sequence.

  5. newtype Sequential (m :: Type -> Type) (state :: Type -> Type -> Type)

    hedgehog Hedgehog

    A sequence of actions to execute.

  6. Sequential :: [Action m state] -> Sequential (m :: Type -> Type) (state :: (Type -> Type) -> Type)

    hedgehog Hedgehog

    No documentation available.

  7. checkSequential :: MonadIO m => Group -> m Bool

    hedgehog Hedgehog

    Check a group of properties sequentially. Using Template Haskell for property discovery:

    tests :: IO Bool
    tests =
    checkSequential $$(discover)
    
    With manually specified properties:
    tests :: IO Bool
    tests =
    checkSequential $ Group "Test.Example" [
    ("prop_reverse", prop_reverse)
    ]
    

  8. executeSequential :: (MonadTest m, MonadCatch m, HasCallStack) => (forall (v :: Type -> Type) . () => state v) -> Sequential m state -> m ()

    hedgehog Hedgehog

    Executes a list of actions sequentially, verifying that all post-conditions are met and no exceptions are thrown. To generate a sequence of actions to execute, see the sequential combinator in the Hedgehog.Gen module.

  9. sequentialActions :: Sequential (m :: Type -> Type) (state :: (Type -> Type) -> Type) -> [Action m state]

    hedgehog Hedgehog

    The sequence of actions.

  10. frequency :: MonadGen m => [(Int, m a)] -> m a

    hedgehog Hedgehog.Gen

    Uses a weighted distribution to randomly select one of the generators in the list. This generator shrinks towards the first generator in the list. The input list must be non-empty.

Page 167 of many | Previous | Next