hablo/src/Blog/Path.hs

21 lines
456 B
Haskell

module Blog.Path (
Path(..)
, build
) where
import Arguments (Arguments)
import qualified Arguments as Arguments (Arguments(..))
data Path = Path {
articlesPath :: FilePath
, pagesPath :: Maybe FilePath
, root :: FilePath
}
build :: Arguments -> Path
build arguments = Path {
articlesPath = Arguments.articlesPath arguments
, pagesPath = Arguments.pagesPath arguments
, root = Arguments.sourceDir arguments
}