From 04fdb41927699a6536e2cf3603d55ebf2f4a137d Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Tue, 15 Nov 2011 19:46:02 +0000 Subject: fix in the versioning of the .gfo files --- src/compiler/GF/Grammar/Binary.hs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/compiler/GF/Grammar') diff --git a/src/compiler/GF/Grammar/Binary.hs b/src/compiler/GF/Grammar/Binary.hs index 20adf3c48..c46f852a1 100644 --- a/src/compiler/GF/Grammar/Binary.hs +++ b/src/compiler/GF/Grammar/Binary.hs @@ -285,9 +285,8 @@ putGFOVersion = mapM_ (putWord8 . fromIntegral . ord) gfoVersion getGFOVersion = replicateM (length gfoVersion) (fmap (chr . fromIntegral) getWord8) decodeModule :: FilePath -> IO SourceModule -decodeModule fpath = do - (m,mtype,mstatus,mflags,mextend,mwith,mopens,med,msrc) <- decodeFile_ fpath (getGFOVersion >> get) - return (m,ModInfo mtype mstatus mflags mextend mwith mopens med msrc Nothing Map.empty) +decodeModule fpath = + decodeFile_ fpath (getGFOVersion >> get) decodeModuleHeader fpath = decodeFile_ fpath getVersionedMod where -- cgit v1.2.3