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.

  1. forestgreen :: (Ord a, Floating a) => Colour a

    diagrams-lib Diagrams.Prelude

    No documentation available.

  2. forAllValid :: (Show a, GenValid a, Testable prop) => (a -> prop) -> Property

    genvalidity-sydtest Test.Syd.Validity

    No documentation available.

  3. forAllValid :: (Show a, GenValid a, Testable prop) => (a -> prop) -> Property

    genvalidity-sydtest Test.Syd.Validity.Property

    No documentation available.

  4. forAllValid :: (Show a, GenValid a, Testable prop) => (a -> prop) -> Property

    genvalidity-sydtest Test.Syd.Validity.Property.Utils

    No documentation available.

  5. force :: Semigroup a => Concat a -> a

    monoid-subclasses Data.Monoid.Instances.Concat

    No documentation available.

  6. for_ :: (Foldable t, Applicative f) => t a -> (a -> f b) -> f ()

    Cabal-syntax Distribution.Compat.Prelude

    No documentation available.

  7. force :: NFData a => a -> a

    Cabal-syntax Distribution.Compat.Prelude

    a variant of deepseq that is useful in some circumstances:

    force x = x `deepseq` x
    
    force x fully evaluates x, and then returns it. Note that force x only performs evaluation when the value of force x itself is demanded, so essentially it turns shallow evaluation into deep evaluation. force can be conveniently used in combination with ViewPatterns:
    {-# LANGUAGE BangPatterns, ViewPatterns #-}
    import Control.DeepSeq
    
    someFun :: ComplexData -> SomeResult
    someFun (force -> !arg) = {- 'arg' will be fully evaluated -}
    
    Another useful application is to combine force with evaluate in order to force deep evaluation relative to other IO operations:
    import Control.Exception (evaluate)
    import Control.DeepSeq
    
    main = do
    result <- evaluate $ force $ pureComputation
    {- 'result' will be fully evaluated at this point -}
    return ()
    
    Finally, here's an exception safe variant of the readFile' example:
    readFile' :: FilePath -> IO String
    readFile' fn = bracket (openFile fn ReadMode) hClose $ \h ->
    evaluate . force =<< hGetContents h
    

  8. foreignLibFieldGrammar :: forall (c :: Type -> Constraint) g . (FieldGrammar c g, Applicative (g ForeignLib), Applicative (g BuildInfo), c (Identity ForeignLibType), c (Identity LibVersionInfo), c (Identity Version), c (List CommaFSep (Identity ExeDependency) ExeDependency), c (List CommaFSep (Identity LegacyExeDependency) LegacyExeDependency), c (List CommaFSep (Identity PkgconfigDependency) PkgconfigDependency), c (List CommaVCat (Identity Dependency) Dependency), c (List CommaVCat (Identity Mixin) Mixin), c (List FSep (Identity ForeignLibOption) ForeignLibOption), c (List FSep (MQuoted Extension) Extension), c (List FSep (MQuoted Language) Language), c (List FSep FilePathNT String), c (List FSep Token String), c (List FSep (Identity (SymbolicPath PackageDir SourceDir)) (SymbolicPath PackageDir SourceDir)), c (List NoCommaFSep Token' String), c (List VCat (MQuoted ModuleName) ModuleName), c (List VCat FilePathNT String), c (List VCat Token String), c (MQuoted Language)) => UnqualComponentName -> g ForeignLib ForeignLib

    Cabal-syntax Distribution.PackageDescription.FieldGrammar

    No documentation available.

  9. formatDependencyList :: [Dependency] -> List CommaVCat (Identity Dependency) Dependency

    Cabal-syntax Distribution.PackageDescription.FieldGrammar

    No documentation available.

  10. formatExposedModules :: [ModuleName] -> List VCat (MQuoted ModuleName) ModuleName

    Cabal-syntax Distribution.PackageDescription.FieldGrammar

    No documentation available.

Page 44 of many | Previous | Next