lpsmith / postgresql-simple

Mid-level client library for accessing PostgreSQL from Haskell
Other
206 stars 71 forks source link

compile error with GHC 7.2 & GHC 7.4 #186

Closed hvr closed 8 years ago

hvr commented 8 years ago

The .cabal file declares postgresql-simple to be compatible with base-4.4/base-4.5; this, however, doesn't seem to be the case (see below).

Please either restore compatibility or set a tigher lower bound in future releases, i.e. base >= 4.6 (I've already revised the .cabal file on Hackage as this was caused transitive failures for other packages depending on postgresql-simple: https://hackage.haskell.org/package/postgresql-simple-0.5.2.0/revisions/)

With base-4.4:

[17 of 34] Compiling Database.PostgreSQL.Simple.ToField ( src/Database/PostgreSQL/Simple/ToField.hs, dist/dist-sandbox-9379669b/build/Database/PostgreSQL/Simple/ToField.o )

src/Database/PostgreSQL/Simple/ToField.hs:174:33:
    Not in scope: data constructor `CUInt'
xcabal: Error: some packages failed to install:
postgresql-simple-0.5.2.0 failed during the building phase. The exception was:
ExitFailure 1

with base-4.5:

[21 of 34] Compiling Database.PostgreSQL.Simple.Notification ( src/Database/PostgreSQL/Simple/Notification.hs, dist/dist-sandbox-fe5a1570/build/Database/PostgreSQL/Simple/Notification.o )

src/Database/PostgreSQL/Simple/Notification.hs:110:39:
    Ambiguous occurrence `catch'
    It could refer to either `Prelude.catch',
                             imported from `Prelude' at src/Database/PostgreSQL/Simple/Notification.hs:32:8-46
                             (and originally defined in `System.IO.Error')
                          or `Control.Exception.catch',
                             imported from `Control.Exception' at src/Database/PostgreSQL/Simple/Notification.hs:40:47-51
                             (and originally defined in `Control.Exception.Base')
xcabal: Error: some packages failed to install:
postgresql-simple-0.5.2.0 failed during the building phase. The exception was:
ExitFailure 1