summaryrefslogtreecommitdiff
path: root/src/Test.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Test.hs')
-rw-r--r--src/Test.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Test.hs b/src/Test.hs
index cfc144b..ab7e125 100644
--- a/src/Test.hs
+++ b/src/Test.hs
@@ -15,6 +15,7 @@ module Test (
import Data.Char
import Data.List
+import Data.Scientific
import Data.Text (Text)
import qualified Data.Text as T
import Data.Typeable
@@ -71,6 +72,11 @@ instance ExprType Integer where
textExprValue x = T.pack (show x)
emptyVarValue = 0
+instance ExprType Scientific where
+ textExprType _ = T.pack "number"
+ textExprValue x = T.pack (show x)
+ emptyVarValue = 0
+
instance ExprType Bool where
textExprType _ = T.pack "bool"
textExprValue True = T.pack "true"