mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-20 16:42:51 -06:00
Move some type annotations from patterns to expressions. Haskell 98 does not allow type signatures in expressions.
This commit is contained in:
@@ -60,10 +60,10 @@ buildPInfo mcfg fcfg cfg = PInfo { mcfPInfo = PM.buildMCFPInfo mcfg
|
|||||||
where
|
where
|
||||||
grammarLexer s =
|
grammarLexer s =
|
||||||
case reads s of
|
case reads s of
|
||||||
[(n::Integer,"")] -> (fcatInt, SInt n)
|
[(n,"")] -> (fcatInt, SInt (n::Integer))
|
||||||
_ -> case reads s of
|
_ -> case reads s of
|
||||||
[(f::Double,"")] -> (fcatFloat, SFloat f)
|
[(f,"")] -> (fcatFloat, SFloat (f::Double))
|
||||||
_ -> (fcatString,SString s)
|
_ -> (fcatString,SString s)
|
||||||
|
|
||||||
|
|
||||||
instance Print PInfo where
|
instance Print PInfo where
|
||||||
|
|||||||
Reference in New Issue
Block a user