mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-27 11:48:55 -06:00
Remove two missing-methods warnings
This commit is contained in:
@@ -27,6 +27,10 @@ instance Predef Int where
|
|||||||
|
|
||||||
instance Predef Bool where
|
instance Predef Bool where
|
||||||
toValue = boolV
|
toValue = boolV
|
||||||
|
fromValue v = case v of
|
||||||
|
VCApp (cPredef,cPTrue) [] -> return True
|
||||||
|
VCApp (cPredef,cPFalse) [] -> return False
|
||||||
|
_ -> verror "Bool" v
|
||||||
|
|
||||||
instance Predef String where
|
instance Predef String where
|
||||||
toValue = string
|
toValue = string
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ instance Binary PGF where
|
|||||||
let v = (major,minor)
|
let v = (major,minor)
|
||||||
if major==pgfMajorVersion && minor<=pgfMinorVersion
|
if major==pgfMajorVersion && minor<=pgfMinorVersion
|
||||||
then getPGF'
|
then getPGF'
|
||||||
else if v==Old.version
|
else if v==Old.version
|
||||||
then Old.getPGF'
|
then Old.getPGF'
|
||||||
else fail $ "Unsupported PGF version "++show (major,minor)
|
else fail $ "Unsupported PGF version "++show (major,minor)
|
||||||
|
|
||||||
@@ -185,6 +185,7 @@ instance Binary Instr where
|
|||||||
put (PUSH_ACCUM (LFlt d)) = putWord8 78 >> put d
|
put (PUSH_ACCUM (LFlt d)) = putWord8 78 >> put d
|
||||||
put (POP_ACCUM ) = putWord8 80
|
put (POP_ACCUM ) = putWord8 80
|
||||||
put (ADD ) = putWord8 84
|
put (ADD ) = putWord8 84
|
||||||
|
get = fail "Missing implementation for ‘get’ in the instance declaration for ‘Binary Instr’"
|
||||||
|
|
||||||
instance Binary Type where
|
instance Binary Type where
|
||||||
put (DTyp hypos cat exps) = put (hypos,cat,exps)
|
put (DTyp hypos cat exps) = put (hypos,cat,exps)
|
||||||
|
|||||||
Reference in New Issue
Block a user