aboutsummaryrefslogtreecommitdiff
path: root/frontend/general.icl
diff options
context:
space:
mode:
authorsjakie2001-10-08 11:49:17 +0000
committersjakie2001-10-08 11:49:17 +0000
commit6699a7ce6ee7c0c68deb75d68adc3dddd1e790b2 (patch)
tree4d8c043f0072195b3b2cc28d555fd01ac7ddf896 /frontend/general.icl
parentgenerate and export all labels for records and constructors when ExportLocalL... (diff)
universally quantified attribute variables in typedefs added
bug fix: combination of caching and omitted clasdefs git-svn-id: https://svn.cs.ru.nl/repos/clean-compiler/trunk@833 1f8540f1-abd5-4d5b-9d24-4c5ce8603e2d
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