Exclude via $cexerciseGuarded check - ClassOpId approach did not work

This commit is contained in:
Dylan Thinnes 2022-08-24 15:22:59 +01:00
parent b635dcd7cb
commit 9a83d0776e

View File

@ -1362,7 +1362,12 @@ convertBind env mc (name, x)
-- Remove guarded exercise when Extended Interfaces are unsupported
| not (envLfVersion env `supports` featureExtendedInterfaces)
, "exerciseGuarded" `T.isInfixOf` getOccText name
, "$cexerciseGuarded" `T.isPrefixOf` getOccText name
= pure []
-- Remove guarded exercise when Extended Interfaces are unsupported
| not (envLfVersion env `supports` featureExtendedInterfaces)
, NameIn DA_Internal_Template_Functions "exerciseGuarded" <- name
= pure []
| not (envLfVersion env `supports` featureExtendedInterfaces)