| License | Apache-2.0 |
|---|---|
| Safe Haskell | Safe |
| Language | Haskell2010 |
CabalHelper.Compiletime.Types.RelativePath
Description
Synopsis
- data RelativePath
- mkRelativePath :: FilePath -> RelativePath
- unRelativePath :: RelativePath -> FilePath
Documentation
data RelativePath Source #
A path guaranteed to be relative and not escape the base path. The
constructor is not exposed, use the mkRelativePath smart constructor.
Instances
| Show RelativePath Source # | |
Defined in CabalHelper.Compiletime.Types.RelativePath Methods showsPrec :: Int -> RelativePath -> ShowS # show :: RelativePath -> String # showList :: [RelativePath] -> ShowS # | |
mkRelativePath :: FilePath -> RelativePath Source #
Smart constructor for RelativePath. Checks if the given path
satisfies the constraints and throws UserError if not.