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 5688277..adcc760 100644
--- a/src/AST/Types.hs
+++ b/src/AST/Types.hs
@@ -100,3 +100,10 @@ type family ScalIsFloating t where
ScalIsFloating TF32 = True
ScalIsFloating TF64 = True
ScalIsFloating TBool = False
+
+type family ScalIsIntegral t where
+ ScalIsIntegral TI32 = True
+ ScalIsIntegral TI64 = True
+ ScalIsIntegral TF32 = False
+ ScalIsIntegral TF64 = False
+ ScalIsIntegral TBool = False