charon-0.1: Template
Safe HaskellSafe-Inferred
LanguageGHC2021

Charon.Data.PathData

Contents

Description

Core PathData. This intended to be the main type representing path data. Actual backends are transformed to/from this type.

Synopsis

PathData

data PathData Source #

Data for a path. Maintains an invariant that the original path is not the root nor is it empty.

Constructors

UnsafePathData 

Fields

Instances

Instances details
Generic PathData Source # 
Instance details

Defined in Charon.Data.PathData

Associated Types

type Rep PathData :: Type -> Type #

Methods

from :: PathData -> Rep PathData x #

to :: Rep PathData x -> PathData #

Show PathData Source # 
Instance details

Defined in Charon.Data.PathData

NFData PathData Source # 
Instance details

Defined in Charon.Data.PathData

Methods

rnf :: PathData -> () #

Eq PathData Source # 
Instance details

Defined in Charon.Data.PathData

Hashable PathData Source # 
Instance details

Defined in Charon.Data.PathData

Pretty PathData Source # 
Instance details

Defined in Charon.Data.PathData

Methods

pretty :: PathData -> Doc ann Source #

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

(k ~ A_Lens, a ~ Timestamp, b ~ Timestamp) => LabelOptic "created" k PathData PathData a b Source # 
Instance details

Defined in Charon.Data.PathData

(k ~ A_Lens, a ~ PathI 'TrashEntryFileName, b ~ PathI 'TrashEntryFileName) => LabelOptic "fileName" k PathData PathData a b Source # 
Instance details

Defined in Charon.Data.PathData

(k ~ A_Lens, a ~ PathI 'TrashEntryOriginalPath, b ~ PathI 'TrashEntryOriginalPath) => LabelOptic "originalPath" k PathData PathData a b Source # 
Instance details

Defined in Charon.Data.PathData

(k ~ A_Lens, a ~ PathTypeW, b ~ PathTypeW) => LabelOptic "pathType" k PathData PathData a b Source # 
Instance details

Defined in Charon.Data.PathData

(k ~ A_Lens, a ~ Bytes 'B Natural, b ~ Bytes 'B Natural) => LabelOptic "size" k PathData PathData a b Source # 
Instance details

Defined in Charon.Data.PathData

type Rep PathData Source # 
Instance details

Defined in Charon.Data.PathData

headerNames :: (IsList a, IsString (Item a)) => a Source #

Header names.

originalPathExists :: (HasCallStack, MonadCatch m, MonadPathReader m) => PathData -> m Bool Source #

Returns True if the PathData's originalPath corresponds to a real path that exists.