summaryrefslogtreecommitdiff
path: root/src/AST/Types.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/AST/Types.hs')
-rw-r--r--src/AST/Types.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/AST/Types.hs b/src/AST/Types.hs
index a3e5080..5688277 100644
--- a/src/AST/Types.hs
+++ b/src/AST/Types.hs
@@ -93,3 +93,10 @@ type family ScalIsNumeric t where
ScalIsNumeric TF32 = True
ScalIsNumeric TF64 = True
ScalIsNumeric TBool = False
+
+type family ScalIsFloating t where
+ ScalIsFloating TI32 = False
+ ScalIsFloating TI64 = False
+ ScalIsFloating TF32 = True
+ ScalIsFloating TF64 = True
+ ScalIsFloating TBool = False