| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Drasil.FileHandling.Legacy
Synopsis
- blank :: Doc
- indent :: Doc -> Doc
- indentList :: [Doc] -> Doc
- contSep :: Separator
- listToDoc :: [String] -> Doc
- type Separator = Doc
- data RelativeFile
- relativeFile :: String -> RelativeFile
- relFileToStr :: RelativeFile -> String
Documentation
indentList :: [Doc] -> Doc Source #
Indents a list of Docs and combines into one Doc.
data RelativeFile Source #
A valid, relative file path with an extension in canonical form.
Instances
| Eq RelativeFile Source # | |
Defined in Drasil.FileHandling.Legacy.FilePath | |
relativeFile :: String -> RelativeFile Source #
Create a RelativeFile given a String that must be in canonical form, be
a valid file path, contain a file extension, and be relative (not absolute);
otherwise, an error is raised.
relFileToStr :: RelativeFile -> String Source #