directory-layout-0.6.0.1: Directory layout DSL

Safe HaskellNone

System.Directory.Layout.Interpreter

Description

A bunch of Layout description interpreters

Synopsis

Documentation

pretty :: Layout a -> StringSource

Pretty print the directory layout

spec :: FilePath -> Layout a -> SpecSource

Interpret the directory layout as a Spec

data Validation e a Source

This type is isomorphic to Either but its Applicative instance accumulates errors

Constructors

Error e 
Result a 

fit :: FilePath -> Layout a -> IO (Validation (NonEmpty FitError) ())Source

Check the real directory layout fits the description

make :: FilePath -> Layout a -> IO (Validation (NonEmpty MakeError) ())Source

Make the real directory layout from the description