summaryrefslogtreecommitdiff
path: root/src/compiler/GF/Compile/Compute/Predef.hs
diff options
context:
space:
mode:
authorJohn J. Camilleri <john@digitalgrammars.com>2021-07-08 12:10:41 +0200
committerJohn J. Camilleri <john@digitalgrammars.com>2021-07-08 12:10:41 +0200
commitcdbe73eb475cf44e1a45b2abacb12756e394016a (patch)
tree1d36862a32215e978e1c2d3a99daa7c9d26439a8 /src/compiler/GF/Compile/Compute/Predef.hs
parent6077d5dd5b55bd5d70d782dd00af6ba868f2090d (diff)
Remove two missing-methods warnings
Diffstat (limited to 'src/compiler/GF/Compile/Compute/Predef.hs')
-rw-r--r--src/compiler/GF/Compile/Compute/Predef.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/GF/Compile/Compute/Predef.hs b/src/compiler/GF/Compile/Compute/Predef.hs
index 609a17798..b9e23d424 100644
--- a/src/compiler/GF/Compile/Compute/Predef.hs
+++ b/src/compiler/GF/Compile/Compute/Predef.hs
@@ -27,6 +27,10 @@ instance Predef Int where
instance Predef Bool where
toValue = boolV
+ fromValue v = case v of
+ VCApp (cPredef,cPTrue) [] -> return True
+ VCApp (cPredef,cPFalse) [] -> return False
+ _ -> verror "Bool" v
instance Predef String where
toValue = string