mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 03:32:51 -06:00
Fix bug introduced in cdbe73eb47
Apparently I don't understand how pattern-matching works in Haskell
This commit is contained in:
@@ -28,8 +28,8 @@ instance Predef Int where
|
|||||||
instance Predef Bool where
|
instance Predef Bool where
|
||||||
toValue = boolV
|
toValue = boolV
|
||||||
fromValue v = case v of
|
fromValue v = case v of
|
||||||
VCApp (cPredef,cPTrue) [] -> return True
|
VCApp (mn,i) [] | mn == cPredef && i == cPTrue -> return True
|
||||||
VCApp (cPredef,cPFalse) [] -> return False
|
VCApp (mn,i) [] | mn == cPredef && i == cPFalse -> return False
|
||||||
_ -> verror "Bool" v
|
_ -> verror "Bool" v
|
||||||
|
|
||||||
instance Predef String where
|
instance Predef String where
|
||||||
|
|||||||
Reference in New Issue
Block a user