dojang-0.2.1: A cross-platform dotfiles manager
Safe HaskellNone
LanguageHaskell2010

Dojang.Types.Registry

Description

This module provides the registry type and functions for reading and writing the registry file. The registry file stores the path to the repository so that commands like dojang edit can be run from any directory.

Synopsis

Documentation

data Registry Source #

The registry stores the path to the repository.

Constructors

Registry 

Fields

Instances

Instances details
Show Registry Source # 
Instance details

Defined in Dojang.Types.Registry

Eq Registry Source # 
Instance details

Defined in Dojang.Types.Registry

FromValue Registry Source # 
Instance details

Defined in Dojang.Types.Registry

ToTable Registry Source # 
Instance details

Defined in Dojang.Types.Registry

Methods

toTable :: Registry -> Table #

ToValue Registry Source # 
Instance details

Defined in Dojang.Types.Registry

readRegistry Source #

Arguments

:: (MonadFileSystem m, MonadIO m) 
=> OsPath

The path to the registry file.

-> m (Maybe Registry) 

Read the registry from a file.

registryFilename :: OsPath Source #

The filename for the registry file.

writeRegistry Source #

Arguments

:: MonadFileSystem m 
=> OsPath

The path to the registry file.

-> Registry

The registry to write.

-> m () 

Write the registry to a file.