Closed fisx closed 1 year ago
This is semi-intentional as DatatypeContexts
are deprecated:
This is widely considered a misfeature, and is going to be removed from the language.
It came up most recently in https://github.com/tweag/ormolu/pull/885#discussion_r952307846 and in #725. It would be very easy to support though if that would help in your usecase.
I wasn't aware it's deprecated. Is there an easy way to add that information to the error message? That would be ideal, otherwise maybe it's worth changing it so people won't trip over this again in the future.
I will just figure out how to not use DatatypeContext any more now, so you've already helped me, thanks!
Hmm, warning about DatatypeContexts
being deprecated sounds more of a job for GHC than for a formatter (it is already no longer enabled by default when using GHC2021
); so I guess the easiest way to improve the current suboptimal experience when formatting DatatypeContexts
is to actually support them as that is sufficiently simple, see #1014.
Describe the bug
OrmoluCounterexample.hs
:then: