Closed lykahb closed 4 months ago
You write
class IsBoolMap v where
type Key v
type Key v = Int -- Invalid syntax
AFAICT, both variants (with and without instance
) are valid (they both parse and compile just fine). From the GHC User's Guide:
- The
instance
keyword is optional.
Are you observing something different?
I had an unrelated warning on that line and compiled with -Werror. At a glance the disappearing keyword looked like the source of it.
Describe the bug Ormolu removes the word "instance" in the output.
To Reproduce Format this file
The output would be
Expected behavior This line preserves the word
instance
:Environment