diff options
| author | krasimir <krasimir@chalmers.se> | 2008-04-22 11:39:46 +0000 |
|---|---|---|
| committer | krasimir <krasimir@chalmers.se> | 2008-04-22 11:39:46 +0000 |
| commit | fc111c1a7910ab4a2a1bf40c0473bbaacadedd61 (patch) | |
| tree | 6f9c2bed83320272ebe41f314fd930f2a13ce3d9 /src/GF/Compile/MkConcrete.hs | |
| parent | 7a6adbf35932efeed283f762b300b6f5a3b21d8a (diff) | |
use the standard System.FilePath module instead of our own broken file path manipulation functions
Diffstat (limited to 'src/GF/Compile/MkConcrete.hs')
| -rw-r--r-- | src/GF/Compile/MkConcrete.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/GF/Compile/MkConcrete.hs b/src/GF/Compile/MkConcrete.hs index 5413d1b79..0124acca6 100644 --- a/src/GF/Compile/MkConcrete.hs +++ b/src/GF/Compile/MkConcrete.hs @@ -36,6 +36,7 @@ import GF.System.Arch import GF.UseGrammar.Treebank import System.Directory +import System.FilePath import Data.Char import Control.Monad import Data.List @@ -111,7 +112,7 @@ mkConcrete :: Parser -> Morpho -> FilePath -> IO () mkConcrete parser morpho file = do src <- appIOE (getSourceModule noOptions file) >>= err error return let (src',msgs) = mkModule parser morpho src - let out = suffixFile "gf" $ justModuleName file + let out = addExtension (justModuleName file) "gf" writeFile out $ "-- File generated by GF from " ++ file appendFile out "\n" appendFile out (prModule src') |
