From cbcdae91484a13780a3d827a1b6ae85f7e3a9ab3 Mon Sep 17 00:00:00 2001 From: krasimir Date: Tue, 6 Oct 2009 10:27:34 +0000 Subject: hopefully the last revision of the relative paths handling algorithm --- src/GF/Grammar/Binary.hs | 2 +- src/GF/Grammar/Parser.y | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/GF/Grammar') diff --git a/src/GF/Grammar/Binary.hs b/src/GF/Grammar/Binary.hs index 142ca4063..e22e1dc87 100644 --- a/src/GF/Grammar/Binary.hs +++ b/src/GF/Grammar/Binary.hs @@ -82,7 +82,7 @@ instance Binary ModuleStatus where instance Binary Options where put = put . optionsGFO get = do opts <- get - case parseModuleOptions "." ["--" ++ flag ++ "=" ++ value | (flag,value) <- opts] of + case parseModuleOptions ["--" ++ flag ++ "=" ++ value | (flag,value) <- opts] of Ok x -> return x Bad msg -> fail msg diff --git a/src/GF/Grammar/Parser.y b/src/GF/Grammar/Parser.y index bb30e5075..1c6b51e77 100644 --- a/src/GF/Grammar/Parser.y +++ b/src/GF/Grammar/Parser.y @@ -276,7 +276,7 @@ TermDef FlagDef :: { Options } FlagDef - : Posn Ident '=' Ident Posn {% case parseModuleOptions "." ["--" ++ showIdent $2 ++ "=" ++ showIdent $4] of + : Posn Ident '=' Ident Posn {% case parseModuleOptions ["--" ++ showIdent $2 ++ "=" ++ showIdent $4] of Ok x -> return x Bad msg -> failLoc $1 msg } -- cgit v1.2.3