GHC 8.0/base-4.9 adds a Foldable Last instance, which conflicts with the orphan instance defined in protobuf. This commit consolidates the orphan Foldable Last instance with the one in base-orphans so that on GHC 7.10 and earlier, it uses the instance from base-orphans, and on GHC 8.0 and later, it uses the one defined in base.
Note that now Data.ProtocolBuffers.Orphans is simply a reexport of Data.Orphans, but I kept it to avoid a breaking API change.
GHC 8.0/
base-4.9
adds aFoldable Last
instance, which conflicts with the orphan instance defined inprotobuf
. This commit consolidates the orphanFoldable Last
instance with the one inbase-orphans
so that on GHC 7.10 and earlier, it uses the instance frombase-orphans
, and on GHC 8.0 and later, it uses the one defined inbase
.Note that now
Data.ProtocolBuffers.Orphans
is simply a reexport ofData.Orphans
, but I kept it to avoid a breaking API change.