summaryrefslogtreecommitdiff
path: root/src/AST/Types.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2024-11-09 11:34:04 +0100
committerTom Smeding <tom@tomsmeding.com>2024-11-09 11:34:04 +0100
commit2b1562d33bb9496aa449ef9d52735af0ec61c15c (patch)
tree77aa4f3195b1493828e3c82c9bae4b419ba27c64 /src/AST/Types.hs
parent992249ebf159ba3783a9345430013e52294c26aa (diff)
Some more primitive operators
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