summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbringert <bringert@cs.chalmers.se>2007-06-14 16:02:07 +0000
committerbringert <bringert@cs.chalmers.se>2007-06-14 16:02:07 +0000
commit3edaa6098869d660a84cf29e57382b8878ddaa7f (patch)
tree9d3f832fe50a8f6f67ad9a14d6bd8affd62093ec /src
parent1fa928516ce211cd810a5168dc768c1ad5b6528f (diff)
Move some type annotations from patterns to expressions. Haskell 98 does not allow type signatures in expressions.
Diffstat (limited to 'src')
-rw-r--r--src/GF/Parsing/GFC.hs8
1 files 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