alevy / postgresql-orm

An Haskell ORM (Object Relational Mapping) and migrations DSL for PostgreSQL.
http://simple.cx
GNU General Public License v3.0
78 stars 12 forks source link

Build failure with GHC 8 #17

Closed snoyberg closed 8 years ago

snoyberg commented 8 years ago
> /tmp/stackage-build8$ stack unpack postgresql-orm-0.4.1
Unpacked postgresql-orm-0.4.1 to /tmp/stackage-build8/postgresql-orm-0.4.1/
> /tmp/stackage-build8/postgresql-orm-0.4.1$ runghc -clear-package-db -global-package-db -package-db=/home/stackage/work/builds/nightly/pkgdb Setup configure --package-db=clear --package-db=global --package-db=/home/stackage/work/builds/nightly/pkgdb --libdir=/home/stackage/work/builds/nightly/lib --bindir=/home/stackage/work/builds/nightly/bin --datadir=/home/stackage/work/builds/nightly/share --libexecdir=/home/stackage/work/builds/nightly/libexec --sysconfdir=/home/stackage/work/builds/nightly/etc --docdir=/home/stackage/work/builds/nightly/doc/postgresql-orm-0.4.1 --htmldir=/home/stackage/work/builds/nightly/doc/postgresql-orm-0.4.1 --haddockdir=/home/stackage/work/builds/nightly/doc/postgresql-orm-0.4.1 --flags=
Configuring postgresql-orm-0.4.1...
> /tmp/stackage-build8/postgresql-orm-0.4.1$ runghc -clear-package-db -global-package-db -package-db=/home/stackage/work/builds/nightly/pkgdb Setup build
Building postgresql-orm-0.4.1...
Preprocessing library postgresql-orm-0.4.1...
[ 1 of 15] Compiling Database.PostgreSQL.ORM.Validations ( Database/PostgreSQL/ORM/Validations.hs, dist/build/Database/PostgreSQL/ORM/Validations.o )
[ 2 of 15] Compiling Paths_postgresql_orm ( dist/build/autogen/Paths_postgresql_orm.hs, dist/build/Paths_postgresql_orm.o )
[ 3 of 15] Compiling Database.PostgreSQL.Escape ( Database/PostgreSQL/Escape.hs, dist/build/Database/PostgreSQL/Escape.o )

Database/PostgreSQL/Escape.hs:31:1: warning: [-Wunused-imports]
    The import of ‘Foreign.Ptr’ is redundant
      except perhaps to import instances from ‘Foreign.Ptr’
    To import instances alone, use: import Foreign.Ptr()
[ 4 of 15] Compiling Database.PostgreSQL.Migrations ( Database/PostgreSQL/Migrations.hs, dist/build/Database/PostgreSQL/Migrations.o )
[ 5 of 15] Compiling Database.PostgreSQL.Migrate ( Database/PostgreSQL/Migrate.hs, dist/build/Database/PostgreSQL/Migrate.o )
[ 6 of 15] Compiling Database.PostgreSQL.Describe ( Database/PostgreSQL/Describe.hs, dist/build/Database/PostgreSQL/Describe.o )
[ 7 of 15] Compiling Database.PostgreSQL.Devel ( Database/PostgreSQL/Devel.hs, dist/build/Database/PostgreSQL/Devel.o )
[ 8 of 15] Compiling Data.RequireSelector ( Data/RequireSelector.hs, dist/build/Data/RequireSelector.o )

Data/RequireSelector.hs:23:35: error:
    Not in scope: type constructor or class ‘NoSelector’
    Perhaps you meant ‘Selector’ (imported from GHC.Generics)

Data/RequireSelector.hs:23:66: error:
    Not in scope: type constructor or class ‘NoSelector’
    Perhaps you meant ‘Selector’ (imported from GHC.Generics)
alevy commented 8 years ago

@snoyberg thanks. Looking into this

charles-cooper commented 8 years ago

@alevy any update on this now that LTS 7.0 is out?

charles-cooper commented 8 years ago

I have a compiling version at https://github.com/charles-cooper/postgresql-orm/tree/ghc8 .. should I submit a PR?

alevy commented 8 years ago

@charles-cooper yes please.