From fc111c1a7910ab4a2a1bf40c0473bbaacadedd61 Mon Sep 17 00:00:00 2001 From: krasimir Date: Tue, 22 Apr 2008 11:39:46 +0000 Subject: use the standard System.FilePath module instead of our own broken file path manipulation functions --- src/GF/Compile/MkConcrete.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/GF/Compile/MkConcrete.hs') 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') -- cgit v1.2.3