summaryrefslogtreecommitdiff
path: root/src/compiler/GF/Compile
diff options
context:
space:
mode:
authorLiyana <nliyanaam@smu.edu.sg>2020-11-10 17:14:31 +0800
committerLiyana <nliyanaam@smu.edu.sg>2020-11-10 17:14:31 +0800
commit1f7584bf98346c6d044df631a82353fd1c5972af (patch)
tree4d869bcd2406dedb4cde22e09b73ff0a51e32646 /src/compiler/GF/Compile
parent4364b1d9fb62551fb6361be36cf2563e6d2d93a5 (diff)
Added explicit implementation for 'fromValue' in instance declaration for 'Predef Bool'
Diffstat (limited to 'src/compiler/GF/Compile')
-rw-r--r--src/compiler/GF/Compile/Compute/Predef.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/GF/Compile/Compute/Predef.hs b/src/compiler/GF/Compile/Compute/Predef.hs
index 609a17798..69df3792c 100644
--- a/src/compiler/GF/Compile/Compute/Predef.hs
+++ b/src/compiler/GF/Compile/Compute/Predef.hs
@@ -27,6 +27,7 @@ instance Predef Int where
instance Predef Bool where
toValue = boolV
+ fromValue boolV = return (boolV == boolV)
instance Predef String where
toValue = string