Safe Haskell | Safe-Inferred |
---|---|
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 Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PackageDir Source # toConstr :: PackageDir -> Constr Source # dataTypeOf :: PackageDir -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c PackageDir) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PackageDir) Source # gmapT :: (forall b. Data b => b -> b) -> PackageDir -> PackageDir Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PackageDir -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PackageDir -> r Source # gmapQ :: (forall d. Data d => d -> u) -> PackageDir -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> PackageDir -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> PackageDir -> m PackageDir Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PackageDir -> m PackageDir Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PackageDir -> m PackageDir Source # | |
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 Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SourceDir Source # toConstr :: SourceDir -> Constr Source # dataTypeOf :: SourceDir -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SourceDir) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SourceDir) Source # gmapT :: (forall b. Data b => b -> b) -> SourceDir -> SourceDir Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SourceDir -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SourceDir -> r Source # gmapQ :: (forall d. Data d => d -> u) -> SourceDir -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> SourceDir -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> SourceDir -> m SourceDir Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SourceDir -> m SourceDir Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SourceDir -> m SourceDir Source # |
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 Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c LicenseFile Source # toConstr :: LicenseFile -> Constr Source # dataTypeOf :: LicenseFile -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c LicenseFile) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c LicenseFile) Source # gmapT :: (forall b. Data b => b -> b) -> LicenseFile -> LicenseFile Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> LicenseFile -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> LicenseFile -> r Source # gmapQ :: (forall d. Data d => d -> u) -> LicenseFile -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> LicenseFile -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> LicenseFile -> m LicenseFile Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> LicenseFile -> m LicenseFile Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> LicenseFile -> m LicenseFile Source # | |
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 |