I think it should be possible to create a compat module and contain all the CPP inside of it.
It would re-export either Data.Aeson.KeyMap or Data.HashMap.Strict, define type synonym for KeyMap for the old version and define keyFromText, looks like this should be enough.
I think it should be possible to create a compat module and contain all the CPP inside of it.
It would re-export either
Data.Aeson.KeyMap
orData.HashMap.Strict
, define type synonym forKeyMap
for the old version and definekeyFromText
, looks like this should be enough.Then the same module can be used internally for https://github.com/scrive/unjson/pull/19.
@JakubBarta sounds reasonable?