aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/Files.hs
diff options
context:
space:
mode:
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