definitive-filesystem-1.2: A library that enable you to interact with the filesystem in a definitive way.

Safe HaskellNone

IO.Filesystem

Contents

Synopsis

Exported modules

module Definitive

The File interface

workingDirectory :: IO DirEntrySource

The working directory, as a DirEntry

data Location Source

Constructors

Here 
Cache 
Owner 
System 

pathTo :: [progName :: FilePath] => Location -> FilePathSource

getConfig :: [progName :: FilePath] => IO FileSource

A useful monad for manipulating the filesystem as a state

newtype FS a Source

The FS monad is a wrapper around the IO monad that provides a MonadState instance for interacting with the filesystem through the Filesystem type.

Thus, you may use lenses to access the representation of files as though they were variables, like so :

 runFS $ (file "x.bmp".bytes.serial.from bmp) fs ^>= \r ->
     file "foo".bytes.serial.from jpg =- r

Constructors

FS 

Fields

runFS :: IO a
 

Status

Useful Lenses