Do StandAloneDeriving and DerivingVia go together?
Both of these extensions have proven very useful to me but it has been more than once now that I've had to make a painful workaround for not being able to combine these two.
For example, when this works
data Unique = Unique Char Int
deriving Aeson.ToJSON via ElmType "Generated.HsCore.Unique" Unique
this seems to be not parsed correctly:
instance deriving Aeson.ToJSON Unique via ElmType "Generated.HsCore.Unique" Unique
The only other reference to this problem I could find was this Chinese (I think) forum: https://www.mmbyte.com/article/58871.html, but no answers unfortunately