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
Type-class definitions with exactly one declaration 'take over' the remainder of the file:
This does not happen if there is (literally) anything on the next line:
It also does not happen for type-classes with no declarations:
The text was updated successfully, but these errors were encountered:
After a bit of testing, I have discovered that it works so long as the module block is not indented, as is quite a common style. However, if it is indented, then it does not work. This is also true for GADTs:
This is probably because most people do not indent module blocks, so this should probably become a feature rather than a bug (eg, 'add support for indented module blocks').
Type-class definitions with exactly one declaration 'take over' the remainder of the file:
This does not happen if there is (literally) anything on the next line:
It also does not happen for type-classes with no declarations:
The text was updated successfully, but these errors were encountered: