diff options
Diffstat (limited to 'compiler/src/Files.hs')
-rw-r--r-- | compiler/src/Files.hs | 5 |
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 | ||
24 | module Files | 24 | module 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 |
63 | file /> path = path ++ [file] | 63 | file /> path = path ++ [file] |
64 | 64 | ||
65 | (<.>) :: Path -> String -> Path | ||
66 | (filename:pathto) <.> ext = System.FilePath.addExtension filename ext : pathto | ||
67 | |||
65 | localPath :: Path -> LocalPath | 68 | localPath :: Path -> LocalPath |
66 | localPath = System.FilePath.joinPath . reverse | 69 | localPath = System.FilePath.joinPath . reverse |
67 | 70 | ||