Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data SymbolicPath from to
- getSymbolicPath :: SymbolicPath from to -> FilePath
- sameDirectory :: (IsDir from, IsDir to) => SymbolicPath from to
- unsafeMakeSymbolicPath :: FilePath -> SymbolicPath from to
- data PackageDir
- data SourceDir
- data LicenseFile
- class IsDir dir
Symbolic path
data SymbolicPath from to Source #
Symbolic paths.
These paths are system independent and relative.
They are *symbolic* which means we cannot perform any IO
until we interpret them.
Instances
getSymbolicPath :: SymbolicPath from to -> FilePath Source #
Extract underlying FilePath
.
Avoid using this in new code.
sameDirectory :: (IsDir from, IsDir to) => SymbolicPath from to Source #
unsafeMakeSymbolicPath :: FilePath -> SymbolicPath from to Source #
Make SymbolicPath
without performing any checks.
Path ends
data PackageDir Source #
Instances
IsDir PackageDir Source # | |
Defined in Distribution.Utils.Path | |
Data PackageDir Source # | |
Defined in Distribution.Utils.Path gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PackageDir -> c PackageDir # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PackageDir # toConstr :: PackageDir -> Constr # dataTypeOf :: PackageDir -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c PackageDir) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PackageDir) # gmapT :: (forall b. Data b => b -> b) -> PackageDir -> PackageDir # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PackageDir -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PackageDir -> r # gmapQ :: (forall d. Data d => d -> u) -> PackageDir -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> PackageDir -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> PackageDir -> m PackageDir # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PackageDir -> m PackageDir # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PackageDir -> m PackageDir # | |
Newtype [SymbolicPath PackageDir LicenseFile] CompatLicenseFile Source # | |
Instances
IsDir SourceDir Source # | |
Defined in Distribution.Utils.Path | |
Data SourceDir Source # | |
Defined in Distribution.Utils.Path gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SourceDir -> c SourceDir # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SourceDir # toConstr :: SourceDir -> Constr # dataTypeOf :: SourceDir -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SourceDir) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SourceDir) # gmapT :: (forall b. Data b => b -> b) -> SourceDir -> SourceDir # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SourceDir -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SourceDir -> r # gmapQ :: (forall d. Data d => d -> u) -> SourceDir -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> SourceDir -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> SourceDir -> m SourceDir # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SourceDir -> m SourceDir # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SourceDir -> m SourceDir # |
data LicenseFile Source #
Instances
Data LicenseFile Source # | |
Defined in Distribution.Utils.Path gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> LicenseFile -> c LicenseFile # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c LicenseFile # toConstr :: LicenseFile -> Constr # dataTypeOf :: LicenseFile -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c LicenseFile) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c LicenseFile) # gmapT :: (forall b. Data b => b -> b) -> LicenseFile -> LicenseFile # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> LicenseFile -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> LicenseFile -> r # gmapQ :: (forall d. Data d => d -> u) -> LicenseFile -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> LicenseFile -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> LicenseFile -> m LicenseFile # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> LicenseFile -> m LicenseFile # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> LicenseFile -> m LicenseFile # | |
Newtype [SymbolicPath PackageDir LicenseFile] CompatLicenseFile Source # | |
Class telling that index is for directories.
Instances
IsDir PackageDir Source # | |
Defined in Distribution.Utils.Path | |
IsDir SourceDir Source # | |
Defined in Distribution.Utils.Path |