directory-layout-0.1.0.0: Declare, construct and verify directory layout

Safe HaskellNone

System.Directory.Layout.Parser

Description

Parser for text format for DL data structure, for example

 c/
 ..x
 ..y
 ....n
 ....n
 ....
 ..z
 ....t
 ....t
 ....
 d/

where . stands for space is equivalent of

 do directory "c" $ do
      file_ "x"
      file "y" "nnnn"
      file "z" "tntn"
    directory_ "d"

Synopsis

Documentation

layout :: Text -> Either String LayoutSource

lazy Text parser

layout' :: Text -> Either String LayoutSource

strict Text parser