diff options
| author | Mirek Kratochvil <exa.exa@gmail.com> | 2023-10-15 23:06:59 +0200 |
|---|---|---|
| committer | Mirek Kratochvil <miroslav.kratochvil@uni.lu> | 2023-10-16 11:34:26 +0200 |
| commit | 1f2ab58478925481d5cf273d38e30fc06e96e69e (patch) | |
| tree | 9f65d867623fe1dfa48b856c0740bc1e2334c509 /Utils.hs | |
| parent | 53aa481aace0a59579846fddba8de41a465654ea (diff) | |
| download | reploy-1f2ab58478925481d5cf273d38e30fc06e96e69e.tar.gz reploy-1f2ab58478925481d5cf273d38e30fc06e96e69e.tar.bz2 | |
stabilize and parametrize sorting of stuff, get rid of "title"
Diffstat (limited to 'Utils.hs')
| -rw-r--r-- | Utils.hs | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -28,7 +28,7 @@ import System.Directory , doesDirectoryExist , getDirectoryContents ) -import System.FilePath ((</>), takeDirectory, splitDirectories) +import System.FilePath ((</>), splitDirectories, takeDirectory) import Text.Pandoc.Definition import qualified Text.Pandoc.Walk import Types @@ -132,7 +132,8 @@ sourcePaths fp process = do | null ds = False | last ds `elem` notSource = True | otherwise = False - io (getRecursiveContents (pure . ignoreDir . splitDirectories) fp) >>= foldMapM process + io (getRecursiveContents (pure . ignoreDir . splitDirectories) fp) >>= + foldMapM process -- | Given a path to a file, try to make the path writable by making all -- directories on the path. (Interned from Hakyll.) |
