You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apparently Cryptol doesn't allow infix operators in import lists at the moment. It would be good to add support for this.
Haskell does support infix operators in import lists; the syntax is to put parens around the operator. I suggest we do the same. So we ought to be able to write an import declaration like this:
import Monus((∸))
or, if imported with other items from the same module, like this:
Do we also need to have a way to specify the namespace? Suppose you want to import a type operator, but not a value operator that share a name (operator or otherwise); or vice-versa...
Is it possible to import infix operators (both at the type and value levels) without importing the entire module?
For example, here I define monus:
The commented lines in the following fail (they also fail after adding parentheses around ∸), but importing everything succeeds:
The text was updated successfully, but these errors were encountered: