Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Provides types.
Synopsis
- newtype Index = MkIndex {
- unIndex :: Seq (PathDataCore, PathI TrashEntryPath)
- empty :: Index
- formatIndex :: forall m. (HasCallStack, MonadAsync m, MonadCatch m, MonadLoggerNS m, MonadTerminal m) => ListCmdP2 -> Index -> m Text
- data Sort
- readSort :: MonadFail m => Text -> m Sort
- formatIndex' :: forall m. (HasCallStack, MonadAsync m, MonadCatch m, MonadLoggerNS m, MonadTerminal m) => ListCmdP2 -> Seq PathDataCore -> m Text
- fromList :: [PathData] -> HashMap (PathI TrashEntryFileName) PathData
- insert :: PathData -> HashMap (PathI TrashEntryFileName) PathData -> HashMap (PathI TrashEntryFileName) PathData
Documentation
Index that stores the trash data.
MkIndex | |
|
Instances
Generic Index Source # | |
Show Index Source # | |
NFData Index Source # | |
Defined in Charon.Data.Index | |
Eq Index Source # | |
(k ~ An_Iso, a ~ Seq (PathDataCore, PathI 'TrashEntryPath), b ~ Seq (PathDataCore, PathI 'TrashEntryPath)) => LabelOptic "unIndex" k Index Index a b Source # | |
Defined in Charon.Data.Index | |
type Rep Index Source # | |
Defined in Charon.Data.Index |
Formatting
:: forall m. (HasCallStack, MonadAsync m, MonadCatch m, MonadLoggerNS m, MonadTerminal m) | |
=> ListCmdP2 | List config |
-> Index | The index to format |
-> m Text |
Formats the Index
in a pretty way.
How to sort the index list.
Low level utils
:: forall m. (HasCallStack, MonadAsync m, MonadCatch m, MonadLoggerNS m, MonadTerminal m) | |
=> ListCmdP2 | List config |
-> Seq PathDataCore | The index to format |
-> m Text |
Formats the Index
in a pretty way.