| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Charon.Data.PathType
Description
Provides types.
Synopsis
- newtype PathTypeW = MkPathTypeW {}
- deleteFn :: (HasCallStack, MonadCatch m, MonadPathReader m, MonadPathWriter m) => PathTypeW -> OsPath -> m ()
- existsFn :: (HasCallStack, MonadCatch m, MonadPathReader m) => PathTypeW -> OsPath -> m Bool
- renameFn :: (HasCallStack, MonadPathWriter m) => PathTypeW -> OsPath -> OsPath -> m ()
- copyPath :: (HasCallStack, MonadIORef m, MonadMask m, MonadPathReader m, MonadPathWriter m) => PathTypeW -> OsPath -> OsPath -> OsPath -> m ()
Documentation
Wrapper for PathType, so that we can give a Hashable instance.
Constructors
| MkPathTypeW | |
Fields | |
Instances
| FromJSON PathTypeW Source # | |
| ToJSON PathTypeW Source # | |
| Generic PathTypeW Source # | |
| Show PathTypeW Source # | |
| NFData PathTypeW Source # | |
Defined in Charon.Data.PathType | |
| Eq PathTypeW Source # | |
| Hashable PathTypeW Source # | |
| Pretty PathTypeW Source # | |
| Serialise PathTypeW Source # | |
| (k ~ An_Iso, a ~ PathType, b ~ PathType) => LabelOptic "unPathTypeW" k PathTypeW PathTypeW a b Source # | |
Defined in Charon.Data.PathType | |
| type Rep PathTypeW Source # | |
Defined in Charon.Data.PathType | |
deleteFn :: (HasCallStack, MonadCatch m, MonadPathReader m, MonadPathWriter m) => PathTypeW -> OsPath -> m () Source #
existsFn :: (HasCallStack, MonadCatch m, MonadPathReader m) => PathTypeW -> OsPath -> m Bool Source #
This function tests both existence and that the the path is of the specified type.
renameFn :: (HasCallStack, MonadPathWriter m) => PathTypeW -> OsPath -> OsPath -> m () Source #
Arguments
| :: (HasCallStack, MonadIORef m, MonadMask m, MonadPathReader m, MonadPathWriter m) | |
| => PathTypeW | |
| -> OsPath | Old path to copy. |
| -> OsPath | Fully qualified name for file copy. |
| -> OsPath | The directory in which to copy, for a dir copy. |
| -> m () |