life-sync-1.0.1

Safe HaskellNone
LanguageHaskell2010

Life.Configuration

Contents

Description

Contains configuration data type.

Synopsis

Documentation

data LifePath Source #

Data type to represent either file or directory.

Constructors

File FilePath 
Dir FilePath 
Instances
Show LifePath Source # 
Instance details

Defined in Life.Configuration

lifeConfigMinus Source #

Arguments

:: LifeConfiguration

repo .life config

-> LifeConfiguration

global config

-> LifeConfiguration

configs that are not in global

Lenses for LifeConfiguration

files :: HasFiles s a => Lens' s a Source #

directories :: HasDirectories s a => Lens' s a Source #

Parse LifeConfiguration under ~/.life

parseRepoLife :: IO LifeConfiguration Source #

Reads LifeConfiguration from ~/dotfiles/.life file.

Render LifeConfiguration under ~/.life

renderLifeConfiguration Source #

Arguments

:: Bool

True to see empty entries in output

-> LifeConfiguration 
-> Text 

Converts LifeConfiguration into TOML file.