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
$ ormolu OrmoluCounterexample.hs
OrmoluCounterexample.hs
@@ -1,3 +1,4 @@
import Prelude
- data IsString s => T s = T
+ data T s = T
+
AST of input and AST of formatted code differ.
at OrmoluCounterexample.hs:2:1-26
Please, consider reporting the bug.
To format anyway, use --unsafe.
$ ormolu --version
ormolu 0.6.0.1
using ghc-lib-parser 9.6.1.20230312
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: