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/Devel/GFC.hs | |
| parent | 7a6adbf35932efeed283f762b300b6f5a3b21d8a (diff) | |
use the standard System.FilePath module instead of our own broken file path manipulation functions
Diffstat (limited to 'src/GF/Devel/GFC.hs')
| -rw-r--r-- | src/GF/Devel/GFC.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/GF/Devel/GFC.hs b/src/GF/Devel/GFC.hs index 87af00b8b..27e0e3ae2 100644 --- a/src/GF/Devel/GFC.hs +++ b/src/GF/Devel/GFC.hs @@ -12,6 +12,8 @@ import GF.Infra.Option import GF.GFCC.API import GF.Data.ErrM +import System.FilePath + mainGFC :: [String] -> IO () mainGFC xx = do let (opts,fs) = getOptions "-" xx @@ -24,7 +26,7 @@ mainGFC xx = do mapM_ (alsoPrint opts gfcc) printOptions -- gfc -o target.gfcc source_1.gfcc ... source_n.gfcc - _ | all ((=="gfcc") . fileSuffix) fs -> do + _ | all ((==".gfcc") . takeExtensions) fs -> do gfccs <- mapM file2gfcc fs let gfcc = foldl1 unionGFCC gfccs let gfccFile = targetNameGFCC opts (absname gfcc) |
