Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data StripTarget
- dependencyNameRegex :: Regex
- matchDependencyName :: String -> Maybe DependencyName
- stripOneBuildDepends :: String -> Set DependencyName -> Maybe String
- stripBuildDepends :: [String] -> Set DependencyName -> [String]
- stripNestedSection :: NestedSection -> Set DependencyName -> (NestedSection, Set CommonName)
- stripNestedSections :: [NestedSection] -> Set DependencyName -> ([NestedSection], Set CommonName)
- stripSection :: Section -> Set DependencyName -> StripTarget -> (Section, Set CommonName)
- stripSections :: [Section] -> Set DependencyName -> Maybe Compilable -> [Section]
Documentation
data StripTarget Source #
A type for which target we're trying to strip.
StripTargetBaseLibrary | The base library |
StripTargetCompilable Compilable | Any |
StripTargetCommonStanza (Set CommonName) | Any |
dependencyNameRegex :: Regex Source #
Regex for dependency names like base <5.0
.
matchDependencyName :: String -> Maybe DependencyName Source #
Parse a dependency name from a string.
stripOneBuildDepends :: String -> Set DependencyName -> Maybe String Source #
Strip matching dependencies from a single line.
stripBuildDepends :: [String] -> Set DependencyName -> [String] Source #
Strip matching dependencies from a build-depends
section.
stripNestedSection :: NestedSection -> Set DependencyName -> (NestedSection, Set CommonName) Source #
Strip matching dependencies from a nested section.
stripNestedSections :: [NestedSection] -> Set DependencyName -> ([NestedSection], Set CommonName) Source #
Strip matching dependencies from many nested sections.
stripSection :: Section -> Set DependencyName -> StripTarget -> (Section, Set CommonName) Source #
Strip dependencies from any top-level section.
stripSections :: [Section] -> Set DependencyName -> Maybe Compilable -> [Section] Source #
Strip dependencies from many top-level sections.