charon-0.1: Template
Safe HaskellSafe-Inferred
LanguageGHC2021

Charon.Env

Description

Provides classes for running Charon with an environment.

Synopsis

Documentation

class HasTrashHome a where Source #

Class for retrieving the trash home.

Minimal complete definition

Nothing

Methods

getTrashHome :: a -> PathI TrashHome Source #

Retrieves the trash home path.

default getTrashHome :: (Is k A_Getter, LabelOptic' "trashHome" k a (PathI TrashHome)) => a -> PathI TrashHome Source #

Instances

Instances details
HasTrashHome (Env m) Source # 
Instance details

Defined in Charon.Runner.Env

getTrashLog :: (HasCallStack, MonadPathReader m) => m (PathI TrashLog) Source #

Retrieves the trash log path.

class HasBackend a where Source #

Class for retrieving the backend.

Minimal complete definition

Nothing

Methods

getBackend :: a -> Backend Source #

Retrieves the trash home path.

default getBackend :: (Is k A_Getter, LabelOptic' "backend" k a Backend) => a -> Backend Source #

Instances

Instances details
HasBackend (Env m) Source # 
Instance details

Defined in Charon.Runner.Env

Methods

getBackend :: Env m -> Backend Source #