| Copyright | (c) 2024 Illia Shkroba |
|---|---|
| License | BSD3 |
| Maintainer | Illia Shkroba <is@pjwstk.edu.pl> |
| Stability | unstable |
| Portability | non-portable (Non-Unix systems are not supported) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
PFile.Profile.Internal.Profile
Description
Core types and functions related to profiles.
Synopsis
- absoluteRoot :: MonadReader Env m => Name -> m Root
- profileState :: MonadReader Env m => Name -> m Absolute
- profileRoot :: MonadReader Env m => Name -> m Absolute
- data Profile = Profile {}
- newtype Name = Name {}
- data State
- data Entry = Entry {
- mountPath :: !Mount
- originPath :: !Absolute
Documentation
absoluteRoot :: MonadReader Env m => Name -> m Root Source #
profileState :: MonadReader Env m => Name -> m Absolute Source #
profileRoot :: MonadReader Env m => Name -> m Absolute Source #
Get directory path where absoluteRoot and profileState of a Profile
named Name are located.
Since: 0.1.0.0
Constructors
| Profile | |
Instances
| FromJSON Profile Source # | |
| ToJSON Profile Source # | |
Defined in PFile.Profile.Internal.Profile | |
| Generic Profile Source # | |
| type Rep Profile Source # | |
Defined in PFile.Profile.Internal.Profile type Rep Profile = D1 ('MetaData "Profile" "PFile.Profile.Internal.Profile" "pfile-0.1.0.1-2LtZGa2mKrg5ZSmQeq7wuJ" 'False) (C1 ('MetaCons "Profile" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Name) :*: (S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 State) :*: S1 ('MetaSel ('Just "entries") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [Entry])))) | |
Profiles state.
Since: 0.1.0.0
Constructors
| Dangling | When an error is encountered during
|
| Valid |
Entry represents a filesystem's object (directory, directory link, file,
file link) that is mounted (or
pushed) inside of a Profile.
Since: 0.1.0.0
Constructors
| Entry | |
Instances
| FromJSON Entry Source # | |
| ToJSON Entry Source # | |
Defined in PFile.Profile.Internal.Profile | |
| Generic Entry Source # | |
| type Rep Entry Source # | |
Defined in PFile.Profile.Internal.Profile type Rep Entry = D1 ('MetaData "Entry" "PFile.Profile.Internal.Profile" "pfile-0.1.0.1-2LtZGa2mKrg5ZSmQeq7wuJ" 'False) (C1 ('MetaCons "Entry" 'PrefixI 'True) (S1 ('MetaSel ('Just "mountPath") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Mount) :*: S1 ('MetaSel ('Just "originPath") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Absolute))) | |