aboutsummaryrefslogtreecommitdiff
path: root/frontend/general.icl
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/general.icl')
-rw-r--r--frontend/general.icl4
1 files changed, 4 insertions, 0 deletions
diff --git a/frontend/general.icl b/frontend/general.icl
index b542268..4ac4931 100644
--- a/frontend/general.icl
+++ b/frontend/general.icl
@@ -17,6 +17,10 @@ cMAXINT :== 2147483647
:: BITVECT :== Int
+hasOption :: (Optional x) -> Bool
+hasOption (Yes _) = True
+hasOption No = False
+
instance ~ Bool
where ~ b = not b