From af831e01a7baf6de9ac3a475368f7315c99797a7 Mon Sep 17 00:00:00 2001 From: krasimir Date: Mon, 21 Sep 2009 06:56:39 +0000 Subject: refactoring in GF.Grammar.Macros --- src/GF/Grammar/AppPredefined.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/GF/Grammar/AppPredefined.hs') diff --git a/src/GF/Grammar/AppPredefined.hs b/src/GF/Grammar/AppPredefined.hs index 9e5b0d83a..ae7ffd2d3 100644 --- a/src/GF/Grammar/AppPredefined.hs +++ b/src/GF/Grammar/AppPredefined.hs @@ -50,11 +50,11 @@ typPredefined f | f == cPlus = return $ mkFunType [typeInt,typeInt] (typeInt) ---- "read" -> (P : Type) -> Tok -> P | f == cShow = return $ mkProd -- (P : PType) -> P -> Tok - ([(Explicit,varP,typePType),(Explicit,identW,Vr varP)],typeStr,[]) + [(Explicit,varP,typePType),(Explicit,identW,Vr varP)] typeStr [] | f == cToStr = return $ mkProd -- (L : Type) -> L -> Str - ([(Explicit,varL,typeType),(Explicit,identW,Vr varL)],typeStr,[]) + [(Explicit,varL,typeType),(Explicit,identW,Vr varL)] typeStr [] | f == cMapStr = return $ mkProd -- (L : Type) -> (Str -> Str) -> L -> L - ([(Explicit,varL,typeType),(Explicit,identW,mkFunType [typeStr] typeStr),(Explicit,identW,Vr varL)],Vr varL,[]) + [(Explicit,varL,typeType),(Explicit,identW,mkFunType [typeStr] typeStr),(Explicit,identW,Vr varL)] (Vr varL) [] | f == cTake = return $ mkFunType [typeInt,typeTok] typeTok | f == cTk = return $ mkFunType [typeInt,typeTok] typeTok | otherwise = Bad (render (text "unknown in Predef:" <+> ppIdent f)) -- cgit v1.2.3