Open thoughtpolice opened 4 months ago
Does "long since" include GHC 7.10.3, or will this increase the minimum GHC version? If so, do you know what version?
Data.Data
exists since base 4.6.0.1
: https://hackage.haskell.org/package/base-4.6.0.1/docs/Data-Data.html#t:Data
That's the oldest I could find. This corresponds to GHC 7.6 or later, so the current bounds are fine.
Not done here, but the DeriveDataTypeable
language extension is enabled by default since GHC 7.10 (source). It's mentioned in the OP.
99% of the uses of the
Data.Generics
import fromsyb
was to qualify the namesData
andTypeable
, but these have long since been available directly inbase
along withDeriveDataTypeable
for many years now. Thesyb
exports are in fact just re-exports from base. Migrate most of the code to just useData.Data
directly instead.At the same time, this touches up some of the import lists to be a little more consistent but is otherwise functionally identical.