Hoogle Search

Within LTS Haskell 24.46 (ghc-9.10.3)

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

  1. manyTill :: Alternative m => m a -> m end -> m [a]

    Cabal-syntax Distribution.Compat.Parsing

    manyTill p end applies parser p zero or more times until parser end succeeds. Returns the list of values returned by p. This parser can be used to scan comments:

    simpleComment   = do{ string "<!--"
    ; manyTill anyChar (try (string "-->"))
    }
    
    Note the overlapping parsers anyChar and string "-->", and therefore the use of the try combinator.

  2. skipMany :: Parsing m => m a -> m ()

    Cabal-syntax Distribution.Compat.Parsing

    A version of many that discards its input. Specialized because it can often be implemented more cheaply.

  3. many :: Alternative f => f a -> f [a]

    Cabal-syntax Distribution.Compat.Prelude

    No documentation available.

  4. getAny :: Any -> Bool

    Cabal-syntax Distribution.Compat.Semigroup

    No documentation available.

  5. PcAnyVersion :: PkgconfigVersionRange

    Cabal-syntax Distribution.Types.PkgconfigVersionRange

    No documentation available.

  6. isAnyPkgconfigVersion :: PkgconfigVersionRange -> Bool

    Cabal-syntax Distribution.Types.PkgconfigVersionRange

    TODO: this is not precise, but used only to prettify output.

  7. isAnyVersion :: VersionRange -> Bool

    Cabal-syntax Distribution.Types.VersionRange

    Does this VersionRange place any restriction on the Version or is it in fact equivalent to AnyVersion. Note this is a semantic check, not simply a syntactic check. So for example the following is True (for all v).

    isAnyVersion (EarlierVersion v `UnionVersionRanges` orLaterVersion v)
    

  8. isAnyVersionLight :: VersionRange -> Bool

    Cabal-syntax Distribution.Types.VersionRange

    No documentation available.

  9. isAbsoluteOnAnyPlatform :: FilePath -> Bool

    Cabal-syntax Distribution.Utils.Generic

    isAbsoluteOnAnyPlatform and isRelativeOnAnyPlatform are like isAbsolute and isRelative but have platform independent heuristics. The System.FilePath exists in two versions, Windows and Posix. The two versions don't agree on what is a relative path and we don't know if we're given Windows or Posix paths. This results in false positives when running on Posix and inspecting Windows paths, like the hackage server does. System.FilePath.Posix.isAbsolute "C:\hello" == False System.FilePath.Windows.isAbsolute "/hello" == False This means that we would treat paths that start with "/" to be absolute. On Posix they are indeed absolute, while on Windows they are not. The portable versions should be used when we might deal with paths that are from another OS than the host OS. For example, the Hackage Server deals with both Windows and Posix paths while performing the PackageDescription checks. In contrast, when we run 'cabal configure' we do expect the paths to be correct for our OS and we should not have to use the platform independent heuristics.

  10. isRelativeOnAnyPlatform :: FilePath -> Bool

    Cabal-syntax Distribution.Utils.Generic

    isRelativeOnAnyPlatform = not . isAbsoluteOnAnyPlatform
    

Page 131 of many | Previous | Next