From 01fef5109c2920d13004ae5b94d192fa5fba205f Mon Sep 17 00:00:00 2001 From: krasimir Date: Mon, 23 Feb 2009 12:42:44 +0000 Subject: Perhaps -> Maybe refactoring and better error message for conflicts during module update --- src/GF/Compile/Coding.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/GF/Compile/Coding.hs') diff --git a/src/GF/Compile/Coding.hs b/src/GF/Compile/Coding.hs index 088f7b8e8..511ceddef 100644 --- a/src/GF/Compile/Coding.hs +++ b/src/GF/Compile/Coding.hs @@ -24,10 +24,10 @@ codeSourceModule :: (String -> String) -> SourceModule -> SourceModule codeSourceModule co (id,mo) = (id,replaceJudgements mo (mapTree codj (jments mo))) where codj (c,info) = case info of - ResOper pty pt -> ResOper (mapP codt pty) (mapP codt pt) + ResOper pty pt -> ResOper (fmap codt pty) (fmap codt pt) ResOverload es tyts -> ResOverload es [(codt ty,codt t) | (ty,t) <- tyts] - CncCat pty pt mpr -> CncCat pty (mapP codt pt) (mapP codt mpr) - CncFun mty pt mpr -> CncFun mty (mapP codt pt) (mapP codt mpr) + CncCat pty pt mpr -> CncCat pty (fmap codt pt) (fmap codt mpr) + CncFun mty pt mpr -> CncFun mty (fmap codt pt) (fmap codt mpr) _ -> info codt t = case t of K s -> K (co s) -- cgit v1.2.3