Added explicit implementation for 'fromValue' in instance declaration for 'Predef Bool'

This commit is contained in:
Liyana
2020-11-10 17:14:31 +08:00
parent 4364b1d9fb
commit 1f7584bf98

View File

@@ -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