At the moment, api-tools uses derived instances for its generated types, but does not specify the deriving strategy. This can lead to problems, in particular for newtypes when both DeriveAnyClass and GeneralizedNewtypeDeriving are enabled, because the choice of strategy is ambiguous. Ideally we would explicitly request newtypeStrategy to avoid this; although that might require the DerivingStrategies extension to be enabled in user code.
At the moment,
api-toolsuses derived instances for its generated types, but does not specify the deriving strategy. This can lead to problems, in particular for newtypes when bothDeriveAnyClassandGeneralizedNewtypeDerivingare enabled, because the choice of strategy is ambiguous. Ideally we would explicitly requestnewtypeStrategyto avoid this; although that might require theDerivingStrategiesextension to be enabled in user code.