diff options
| author | krasimir <krasimir@chalmers.se> | 2009-09-21 06:56:39 +0000 |
|---|---|---|
| committer | krasimir <krasimir@chalmers.se> | 2009-09-21 06:56:39 +0000 |
| commit | af831e01a7baf6de9ac3a475368f7315c99797a7 (patch) | |
| tree | 17e1bc841881069cb51a652489a8efb3e6f26db0 /src/GF/Grammar/AppPredefined.hs | |
| parent | 96786c1136332efa9a889227c524ef8fe4e47fe8 (diff) | |
refactoring in GF.Grammar.Macros
Diffstat (limited to 'src/GF/Grammar/AppPredefined.hs')
| -rw-r--r-- | src/GF/Grammar/AppPredefined.hs | 6 |
1 files changed, 3 insertions, 3 deletions
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)) |
