charon-0.1: Template
Safe HaskellSafe-Inferred
LanguageGHC2021

Charon.Data.PathType

Description

Provides types.

Synopsis

Documentation

newtype PathTypeW Source #

Wrapper for PathType, so that we can give a Hashable instance.

Constructors

MkPathTypeW 

Instances

Instances details
FromJSON PathTypeW Source # 
Instance details

Defined in Charon.Data.PathType

ToJSON PathTypeW Source # 
Instance details

Defined in Charon.Data.PathType

Generic PathTypeW Source # 
Instance details

Defined in Charon.Data.PathType

Associated Types

type Rep PathTypeW :: Type -> Type #

Show PathTypeW Source # 
Instance details

Defined in Charon.Data.PathType

NFData PathTypeW Source # 
Instance details

Defined in Charon.Data.PathType

Methods

rnf :: PathTypeW -> () #

Eq PathTypeW Source # 
Instance details

Defined in Charon.Data.PathType

Hashable PathTypeW Source # 
Instance details

Defined in Charon.Data.PathType

Pretty PathTypeW Source # 
Instance details

Defined in Charon.Data.PathType

Methods

pretty :: PathTypeW -> Doc ann Source #

prettyList :: [PathTypeW] -> Doc ann Source #

Serialise PathTypeW Source # 
Instance details

Defined in Charon.Data.PathType

(k ~ An_Iso, a ~ PathType, b ~ PathType) => LabelOptic "unPathTypeW" k PathTypeW PathTypeW a b Source # 
Instance details

Defined in Charon.Data.PathType

type Rep PathTypeW Source # 
Instance details

Defined in Charon.Data.PathType

type Rep PathTypeW = D1 ('MetaData "PathTypeW" "Charon.Data.PathType" "charon-0.1-inplace" 'True) (C1 ('MetaCons "MkPathTypeW" 'PrefixI 'True) (S1 ('MetaSel ('Just "unPathTypeW") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PathType)))

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.

copyPath 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 ()