aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/Files.hs
diff options
context:
space:
mode:
authorpacien2019-12-29 14:21:13 +0100
committerpacien2019-12-29 14:21:13 +0100
commit54ccbbb9ebde9cb42c5c425266b298668eb3df43 (patch)
tree2e483fd099604d4f0dd373c934b8aa5d4f00f14e /compiler/src/Files.hs
parent430ab983587c525004d2aa0dc8e7707312c7ab60 (diff)
downloadldgallery-54ccbbb9ebde9cb42c5c425266b298668eb3df43.tar.gz
compiler: do not require sidecar file
GitHub: closes #4
Diffstat (limited to 'compiler/src/Files.hs')
-rw-r--r--compiler/src/Files.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/src/Files.hs b/compiler/src/Files.hs
index 079da61..d1363a1 100644
--- a/compiler/src/Files.hs
+++ b/compiler/src/Files.hs
@@ -23,7 +23,7 @@
23 23
24module Files 24module Files
25 ( FileName, LocalPath, WebPath, Path 25 ( FileName, LocalPath, WebPath, Path
26 , (</>), (</), (/>), localPath, webPath 26 , (</>), (</), (/>), (<.>), localPath, webPath
27 , FSNode(..), AnchoredFSNode(..) 27 , FSNode(..), AnchoredFSNode(..)
28 , nodePath, nodeName, isHidden, flattenDir, filterDir, readDirectory 28 , nodePath, nodeName, isHidden, flattenDir, filterDir, readDirectory
29 , ensureParentDir, remove, isOutdated 29 , ensureParentDir, remove, isOutdated
@@ -62,6 +62,9 @@ path </ file = file:path
62(/>) :: FileName -> Path -> Path 62(/>) :: FileName -> Path -> Path
63file /> path = path ++ [file] 63file /> path = path ++ [file]
64 64
65(<.>) :: Path -> String -> Path
66(filename:pathto) <.> ext = System.FilePath.addExtension filename ext : pathto
67
65localPath :: Path -> LocalPath 68localPath :: Path -> LocalPath
66localPath = System.FilePath.joinPath . reverse 69localPath = System.FilePath.joinPath . reverse
67 70