Safe Haskell | None |
---|---|
Language | Haskell2010 |
A bunch of Layout
description interpreters
- pretty :: Layout a -> String
- examples :: FilePath -> Layout a -> Spec
- fromErrors :: Foldable t => t e -> Either (NonEmpty e) ()
- fit :: FilePath -> Layout a -> IO (Either (NonEmpty FitError) ())
- data FitError
- data FitContentsError
- make :: FilePath -> Layout a -> IO (Either (NonEmpty MakeError) ())
- remake :: FilePath -> Layout a -> IO (Either (NonEmpty MakeError) ())
- data MakeError = MakeIOException FilePath IOErrorType
Documentation
fromErrors :: Foldable t => t e -> Either (NonEmpty e) () Source
Construct Validation
value from the list of errors
>>>
fromErrors []
Right ()
>>>
fromErrors Nothing
Right ()
>>>
fromErrors "hello"
Left ('h' :| "ello")
>>>
fromErrors (Just "hello")
Left ("hello" :| [])
fit :: FilePath -> Layout a -> IO (Either (NonEmpty FitError) ()) Source
Check the real directory layout fits the description
Errors encountered while running fit
data FitContentsError Source
Expected/actual file contents mismatch
make :: FilePath -> Layout a -> IO (Either (NonEmpty MakeError) ()) Source
Make the real directory layout from the description