Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Provides the Command
type.
Synopsis
- data Command s
- = Delete (UniqueSeqNE (PathI TrashEntryOriginalPath))
- | PermDelete Bool (UniqueSeqNE (PathI TrashEntryFileName))
- | Empty Bool
- | Restore (UniqueSeqNE (PathI TrashEntryFileName))
- | List (ListCmd s)
- | Metadata
- | Convert Backend
- | Merge (PathI TrashHome)
- type CommandP1 = Command Phase1
- type CommandP2 = Command Phase2
- _Delete :: forall s. Prism' (Command s) (UniqueSeqNE (PathI 'TrashEntryOriginalPath))
- _PermDelete :: forall s. Prism' (Command s) (Bool, UniqueSeqNE (PathI 'TrashEntryFileName))
- _Empty :: forall s. Prism' (Command s) Bool
- _Restore :: forall s. Prism' (Command s) (UniqueSeqNE (PathI 'TrashEntryFileName))
- _List :: forall s s. Prism (Command s) (Command s) (ListCmd s) (ListCmd s)
- _Metadata :: forall s. Prism' (Command s) ()
Types
Action to run.
Delete (UniqueSeqNE (PathI TrashEntryOriginalPath)) | Deletes a path. |
PermDelete Bool (UniqueSeqNE (PathI TrashEntryFileName)) | Permanently deletes a path from the trash. |
Empty Bool | Empties the trash. |
Restore (UniqueSeqNE (PathI TrashEntryFileName)) | Restores a path. |
List (ListCmd s) | List all trash contents. |
Metadata | Prints trash metadata. |
Convert Backend | Converts backend files. |
Merge (PathI TrashHome) | Merges trash home directories. |
Optics
_Delete :: forall s. Prism' (Command s) (UniqueSeqNE (PathI 'TrashEntryOriginalPath)) Source #
_PermDelete :: forall s. Prism' (Command s) (Bool, UniqueSeqNE (PathI 'TrashEntryFileName)) Source #
_Restore :: forall s. Prism' (Command s) (UniqueSeqNE (PathI 'TrashEntryFileName)) Source #