pfile-0.1.0.1: CLI program for profiles management.
Copyright(c) 2024 Illia Shkroba
LicenseBSD3
MaintainerIllia Shkroba <[email protected]>
Stabilityunstable
Portabilitynon-portable (Non-Unix systems are not supported)
Safe HaskellSafe-Inferred
LanguageHaskell2010

PFile.Profile.Internal.List

Description

Types and functions for listing profiles.

Synopsis

Documentation

list Source #

Arguments

:: forall m. (MonadReader Env m, MonadError ListError m, MonadIO m) 
=> ListOptions

Options that control list behaviour (currently only shouldFilterDangling).

-> m [Profile] 

List profiles in profilesHomeDirPath directory.

Since: 0.1.0.0

data ListError Source #

Error thrown by list.

Since: 0.1.0.0

Constructors

ProfilesHomeDirDoesNotExistError !Absolute

profilesHomeDirPath does not exist.

ListDirectoryError !Absolute !IOException

IOException was encountered during directory listing.

newtype ListOptions Source #

list options.

Since: 0.1.0.0

Constructors

ListOptions 

Fields