nikita-volkov / postgresql-binary

Encoders and decoders for the PostgreSQL's binary format
http://hackage.haskell.org/package/postgresql-binary
MIT License
21 stars 13 forks source link

Fix compatibility with rebase/rerebase 1.4+ #14

Closed felixonmars closed 5 years ago

felixonmars commented 5 years ago

The new releases of rebase/rerebase provides "select" from the selective package. Simply hiding it fixes compatibility with the new versions.

The error looks like:

tasty/Main.hs:38:13: error:
    Ambiguous occurrence ‘select’
    It could refer to either ‘Main.Prelude.select’,
                             imported from ‘Main.Prelude’ at tasty/Main.hs:3:1-52
                             (and originally defined in ‘selective-0.3:Control.Selective’)
                          or ‘Main.select’, defined at tasty/Main.hs:268:1
   |
38 |             select "select (234 :: int8)" (const B.int) (234 :: Int32)
   |             ^^^^^^