life-sync-1.0.1

Safe HaskellNone
LanguageHaskell2010

Life.Shell

Contents

Description

This module contains utility functions to work with shell.

Synopsis

Constants

lifePath :: Path Rel File Source #

Name for life configuration file.

repoName :: Path Rel Dir Source #

Default repository name for life configuration files.

Functions

createDirInHome :: Path Rel Dir -> IO (Path Abs Dir) Source #

Creates directory with name "folder" under "~/folder".

relativeToHome :: MonadIO m => Path Rel t -> m (Path Abs t) Source #

Creates path relative to home directory

($|) :: FilePath -> [Text] -> IO String infix 5 Source #

Run shell command with given options and return stdout of executed command.

Orphan instances

(a ~ Text, b ~ ()) => IsString ([a] -> IO b) Source # 
Instance details

Methods

fromString :: String -> [a] -> IO b #