From 630cf47eeb5dcbcbf328d7407f68c823c67de037 Mon Sep 17 00:00:00 2001 From: bringert Date: Thu, 14 Jun 2007 16:02:07 +0000 Subject: [PATCH] Move some type annotations from patterns to expressions. Haskell 98 does not allow type signatures in expressions. --- src/GF/Parsing/GFC.hs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/GF/Parsing/GFC.hs b/src/GF/Parsing/GFC.hs index 6283bfe78..d4eaffb56 100644 --- a/src/GF/Parsing/GFC.hs +++ b/src/GF/Parsing/GFC.hs @@ -60,10 +60,10 @@ buildPInfo mcfg fcfg cfg = PInfo { mcfPInfo = PM.buildMCFPInfo mcfg where grammarLexer s = case reads s of - [(n::Integer,"")] -> (fcatInt, SInt n) - _ -> case reads s of - [(f::Double,"")] -> (fcatFloat, SFloat f) - _ -> (fcatString,SString s) + [(n,"")] -> (fcatInt, SInt (n::Integer)) + _ -> case reads s of + [(f,"")] -> (fcatFloat, SFloat (f::Double)) + _ -> (fcatString,SString s) instance Print PInfo where