Hoogle Search

Within LTS Haskell 24.40 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. addForeignSource :: ForeignSrcLang -> String -> Q ()

    template-haskell Language.Haskell.TH.Syntax

    Emit a foreign file which will be compiled and linked to the object for the current module. Currently only languages that can be compiled with the C compiler are supported, and the flags passed as part of -optc will be also applied to the C compiler invocation that will compile them. Note that for non-C languages (for example C++) extern C directives must be used to get symbols that we can access from Haskell. To get better errors, it is recommended to use #line pragmas when emitting C files, e.g.

    {-# LANGUAGE CPP #-}
    ...
    addForeignSource LangC $ unlines
    [ "#line " ++ show (844 + 1) ++ " " ++ show "libraries/template-haskell/Language/Haskell/TH/Syntax.hs"
    , ...
    ]
    

  2. qAddForeignFilePath :: Quasi m => ForeignSrcLang -> String -> m ()

    template-haskell Language.Haskell.TH.Syntax

    No documentation available.

  3. type PlatformPath = PosixPath

    filepath System.OsPath.Types

    Ifdef around current platform (either WindowsPath or PosixPath).

  4. isLeafOrCollision :: HashMap k v -> Bool

    unordered-containers Data.HashMap.Internal

    Helper function to detect Leafs and Collisions.

  5. propertyForAllShrinkShow :: Testable prop => Gen a -> (a -> [a]) -> (a -> [String]) -> (a -> prop) -> Property

    tasty-quickcheck Test.Tasty.QuickCheck

    Optional; used internally in order to improve shrinking. Tests a property but also quantifies over an extra value (with a custom shrink and show function). The Testable instance for functions defines propertyForAllShrinkShow in a way that improves shrinking.

  6. performTest :: ReportStart us -> ReportProblem us -> ReportProblem us -> us -> Test -> IO (Counts, us)

    HUnit Test.HUnit.Base

    Performs a test run with the specified report generators. This handles the actual running of the tests. Most developers will want to use HUnit.Text.runTestTT instead. A developer could use this function to execute tests via another IO system, such as a GUI, or to output the results in a different manner (e.g., upload XML-formatted results to a webservice). Note that the counts in a start report do not include the test case being started, whereas the counts in a problem report do include the test case just finished. The principle is that the counts are sampled only between test case executions. As a result, the number of test case successes always equals the difference of test cases tried and the sum of test case errors and failures.

  7. performTestCase :: Assertion -> IO Result

    HUnit Test.HUnit.Lang

    Performs a single test case.

  8. class Uniform a

    random System.Random

    The class of types for which a uniformly distributed value can be drawn from all possible values of the type.

  9. class UniformRange a

    random System.Random

    The class of types for which a uniformly distributed value can be drawn from a range.

  10. uniform :: (RandomGen g, Uniform a) => g -> (a, g)

    random System.Random

    Generates a value uniformly distributed over all possible values of that type. This is a pure version of uniformM.

    Examples

    >>> import System.Random
    
    >>> let pureGen = mkStdGen 137
    
    >>> uniform pureGen :: (Bool, StdGen)
    (True,StdGen {unStdGen = SMGen 11285859549637045894 7641485672361121627})
    

Page 411 of many | Previous | Next