*** setup configure Configuring RESTng-0.1... Dependency HDBC <2.0.0: using HDBC-1.1.6 Dependency HDBC-postgresql <2.0.0: using HDBC-postgresql-1.1.6.0 Dependency base <4: using base-3.0.3.1 Dependency mtl -any: using mtl-1.1.0.2 Dependency old-time -any: using old-time-1.0.0.2 Dependency parsec -any: using parsec-3.0.0 Dependency redHandlers -any: using redHandlers-0.1 Dependency xhtml -any: using xhtml-3000.2.0.1 Dependency yuiGrid ==0.1: using yuiGrid-0.1 Warning: This package indirectly depends on multiple versions of the same package. This is highly likely to cause a compile failure. package RESTng-0.1 requires HDBC-1.1.6 package HDBC-postgresql-1.1.6.0 requires HDBC-2.1.0 package testpack-1.0.2 requires QuickCheck-1.2.0.0 package convertible-1.0.1 requires QuickCheck-2.1.0.1 package HDBC-2.1.0 requires QuickCheck-2.1.0.1 Using Cabal-1.7.0 compiled by ghc-6.10 Using compiler: ghc-6.10.2 Using install prefix: /usr/local/tmp/archive/install Binaries installed in: /usr/local/tmp/archive/install/bin Libraries installed in: /usr/local/tmp/archive/install/lib/RESTng-0.1/ghc-6.10.2 Private binaries installed in: /usr/local/tmp/archive/install/libexec Data files installed in: /usr/local/tmp/archive/install/share/RESTng-0.1 Documentation installed in: /usr/local/tmp/archive/install/share/doc/RESTng-0.1 Using alex version 2.2 found on system at: /usr/bin/alex Using ar found on system at: /usr/bin/ar Using c2hs version 0.16.0 found on system at: /usr/local/bin/c2hs Using cpphs version 0.7 found on system at: /usr/bin/cpphs Using ffihugs found on system at: /usr/local/bin/ffihugs Using gcc version 4.3.3 found on system at: /usr/bin/gcc Using ghc version 6.10.2 found on system at: /usr/local/bin/ghc Using ghc-pkg version 6.10.2 found on system at: /usr/local/bin/ghc-pkg Using greencard found on system at: /usr/local/tmp/archive/install/bin/greencard Using haddock version 2.4.2 found on system at: /usr/local/bin/haddock Using happy version 1.17 found on system at: /usr/local/bin/happy No hmake found Using hsc2hs version 0.67 found on system at: /usr/local/bin/hsc2hs Using hscolour version 1.9 found on system at: /usr/local/bin/HsColour Using hugs found on system at: /usr/local/bin/hugs No jhc found Using ld found on system at: /usr/bin/ld No lhc found No nhc98 found Using pkg-config version 0.22 found on system at: /usr/bin/pkg-config Using ranlib found on system at: /usr/bin/ranlib Using strip found on system at: /usr/bin/strip Using tar found on system at: /bin/tar /usr/bin/gcc /tmp/18237.c -o /tmp/18237 -D__GLASGOW_HASKELL__=610 -I. -I/usr/local/tmp/archive/install/lib/network-2.2.1.4/ghc-6.10.2/include -I/usr/include/postgresql -I/usr/local/tmp/archive/install/lib/time-1.1.2.3/ghc-6.10.2/include -I/usr/local/lib/ghc-6.10.2/process-1.0.1.1/include -I/usr/local/lib/ghc-6.10.2/directory-1.0.0.3/include -I/usr/local/lib/ghc-6.10.2/unix-2.3.2.0/include -I/usr/local/lib/ghc-6.10.2/old-time-1.0.0.2/include -I/usr/local/lib/ghc-6.10.2/bytestring-0.9.1.4/include -I/usr/local/lib/ghc-6.10.2/base-4.1.0.0/include -I/usr/local/lib/ghc-6.10.2/include -IPAPI_INCLUDE_DIR *** setup build Creating dist/build (and its parents) Creating dist/build/autogen (and its parents) Preprocessing library RESTng-0.1... Building RESTng-0.1... Building library... Creating dist/build (and its parents) /usr/local/bin/ghc -package-name RESTng-0.1 --make -hide-all-packages -i -idist/build -i. -idist/build/autogen -Idist/build/autogen -Idist/build -optP-include -optPdist/build/autogen/cabal_macros.h -odir dist/build -hidir dist/build -stubdir dist/build -package HDBC-1.1.6 -package HDBC-postgresql-1.1.6.0 -package base-3.0.3.1 -package mtl-1.1.0.2 -package old-time-1.0.0.2 -package parsec-3.0.0 -package redHandlers-0.1 -package xhtml-3000.2.0.1 -package yuiGrid-0.1 -O RESTng.System RESTng.Resources RESTng.RqHandlers RESTng.Utils RESTng.Database.Record RESTng.Database.SQL RESTng.Resources.User RESTng.Database.SQL.Print RESTng.Database.SQL.Sql RESTng.RESTngMonad RESTng.System.Proxy RESTng.System.Resource RESTng.System.RelationalResource RESTng.System.ORMTypesConv RESTng.System.ORM RESTng.System.PersistableResource RESTng.System.WebResource RESTng.System.CRUD RESTng.System.FormFields RESTng.System.Annotation RESTng.System.Permission RESTng.System.Association RESTng.System.Component RESTng.System.Authentication RESTng.RqHandlers.GridHandler RESTng.RqHandlers.Response RESTng.Resources.UserModel RESTng.Resources.UserCRUD RESTng.Resources.Comment RESTng.Resources.Rating RESTng.Resources.ResourceTag RESTng/Database/Record.hs:2:15: Warning: -fallow-undecidable-instances is deprecated: use -XUndecidableInstances or pragma {-# LANGUAGE UndecidableInstances#-} instead RESTng/Database/Record.hs:2:15: Warning: -fallow-incoherent-instances is deprecated: use -XIncoherentInstances or pragma {-# LANGUAGE IncoherentInstances#-} instead RESTng/System/RelationalResource.hs:2:15: Warning: -fallow-undecidable-instances is deprecated: use -XUndecidableInstances or pragma {-# LANGUAGE UndecidableInstances#-} instead RESTng/System/RelationalResource.hs:2:15: Warning: -fallow-incoherent-instances is deprecated: use -XIncoherentInstances or pragma {-# LANGUAGE IncoherentInstances#-} instead RESTng/System/ORM.hs:2:15: Warning: -fallow-undecidable-instances is deprecated: use -XUndecidableInstances or pragma {-# LANGUAGE UndecidableInstances#-} instead RESTng/System/ORM.hs:2:15: Warning: -fallow-incoherent-instances is deprecated: use -XIncoherentInstances or pragma {-# LANGUAGE IncoherentInstances#-} instead RESTng/System/Association.hs:2:11: Warning: -fallow-undecidable-instances is deprecated: use -XUndecidableInstances or pragma {-# LANGUAGE UndecidableInstances#-} instead [ 5 of 31] Compiling RESTng.RESTngMonad ( RESTng/RESTngMonad.hs, dist/build/RESTng/RESTngMonad.o ) RESTng/RESTngMonad.hs:34:30: No instance for (Database.HDBC.Types.IConnection Connection) arising from a use of `HDBC.disconnect' at RESTng/RESTngMonad.hs:34:30-49 Possible fix: add an instance declaration for (Database.HDBC.Types.IConnection Connection) In a stmt of a 'do' expression: HDBC.disconnect conn In the expression: do conn <- connectPostgreSQL connString result <- runReaderT (unRESTng m) (conn, Nothing) HDBC.disconnect conn return result In the definition of `runRESTng'': runRESTng' connString m = do conn <- connectPostgreSQL connString result <- runReaderT (unRESTng m) (conn, Nothing) HDBC.disconnect conn .... *** Trying again with preferred-versions *** setup configure Configuring RESTng-0.1... Dependency HDBC <2.0.0: using HDBC-1.1.6 Dependency HDBC-postgresql <2.0.0: using HDBC-postgresql-1.1.6.0 Dependency base <4 && <4: using base-3.0.3.1 Dependency mtl -any: using mtl-1.1.0.2 Dependency old-time -any: using old-time-1.0.0.2 Dependency parsec -any && <3: using parsec-2.1.0.1 Dependency redHandlers -any: using redHandlers-0.1 Dependency xhtml -any: using xhtml-3000.2.0.1 Dependency yuiGrid ==0.1: using yuiGrid-0.1 Warning: This package indirectly depends on multiple versions of the same package. This is highly likely to cause a compile failure. package RESTng-0.1 requires HDBC-1.1.6 package HDBC-postgresql-1.1.6.0 requires HDBC-2.1.0 package testpack-1.0.2 requires QuickCheck-1.2.0.0 package convertible-1.0.1 requires QuickCheck-2.1.0.1 package HDBC-2.1.0 requires QuickCheck-2.1.0.1 package RESTng-0.1 requires parsec-2.1.0.1 package redHandlers-0.1 requires parsec-3.0.0 package network-2.2.1.4 requires parsec-3.0.0 package cgi-3001.1.7.1 requires parsec-3.0.0 package HDBC-postgresql-1.1.6.0 requires parsec-3.0.0 Using Cabal-1.7.0 compiled by ghc-6.10 Using compiler: ghc-6.10.2 Using install prefix: /usr/local/tmp/archive/install Binaries installed in: /usr/local/tmp/archive/install/bin Libraries installed in: /usr/local/tmp/archive/install/lib/RESTng-0.1/ghc-6.10.2 Private binaries installed in: /usr/local/tmp/archive/install/libexec Data files installed in: /usr/local/tmp/archive/install/share/RESTng-0.1 Documentation installed in: /usr/local/tmp/archive/install/share/doc/RESTng-0.1 Using alex version 2.2 found on system at: /usr/bin/alex Using ar found on system at: /usr/bin/ar Using c2hs version 0.16.0 found on system at: /usr/local/bin/c2hs Using cpphs version 0.7 found on system at: /usr/bin/cpphs Using ffihugs found on system at: /usr/local/bin/ffihugs Using gcc version 4.3.3 found on system at: /usr/bin/gcc Using ghc version 6.10.2 found on system at: /usr/local/bin/ghc Using ghc-pkg version 6.10.2 found on system at: /usr/local/bin/ghc-pkg Using greencard found on system at: /usr/local/tmp/archive/install/bin/greencard Using haddock version 2.4.2 found on system at: /usr/local/bin/haddock Using happy version 1.17 found on system at: /usr/local/bin/happy No hmake found Using hsc2hs version 0.67 found on system at: /usr/local/bin/hsc2hs Using hscolour version 1.9 found on system at: /usr/local/bin/HsColour Using hugs found on system at: /usr/local/bin/hugs No jhc found Using ld found on system at: /usr/bin/ld No lhc found No nhc98 found Using pkg-config version 0.22 found on system at: /usr/bin/pkg-config Using ranlib found on system at: /usr/bin/ranlib Using strip found on system at: /usr/bin/strip Using tar found on system at: /bin/tar /usr/bin/gcc /tmp/18277.c -o /tmp/18277 -D__GLASGOW_HASKELL__=610 -I. -I/usr/local/tmp/archive/install/lib/network-2.2.1.4/ghc-6.10.2/include -I/usr/include/postgresql -I/usr/local/tmp/archive/install/lib/time-1.1.2.3/ghc-6.10.2/include -I/usr/local/lib/ghc-6.10.2/process-1.0.1.1/include -I/usr/local/lib/ghc-6.10.2/directory-1.0.0.3/include -I/usr/local/lib/ghc-6.10.2/unix-2.3.2.0/include -I/usr/local/lib/ghc-6.10.2/old-time-1.0.0.2/include -I/usr/local/lib/ghc-6.10.2/bytestring-0.9.1.4/include -I/usr/local/lib/ghc-6.10.2/base-4.1.0.0/include -I/usr/local/lib/ghc-6.10.2/include -IPAPI_INCLUDE_DIR *** setup build Creating dist/build (and its parents) Creating dist/build/autogen (and its parents) Preprocessing library RESTng-0.1... Building RESTng-0.1... Building library... Creating dist/build (and its parents) /usr/local/bin/ghc -package-name RESTng-0.1 --make -hide-all-packages -i -idist/build -i. -idist/build/autogen -Idist/build/autogen -Idist/build -optP-include -optPdist/build/autogen/cabal_macros.h -odir dist/build -hidir dist/build -stubdir dist/build -package HDBC-1.1.6 -package HDBC-postgresql-1.1.6.0 -package base-3.0.3.1 -package mtl-1.1.0.2 -package old-time-1.0.0.2 -package parsec-2.1.0.1 -package redHandlers-0.1 -package xhtml-3000.2.0.1 -package yuiGrid-0.1 -O RESTng.System RESTng.Resources RESTng.RqHandlers RESTng.Utils RESTng.Database.Record RESTng.Database.SQL RESTng.Resources.User RESTng.Database.SQL.Print RESTng.Database.SQL.Sql RESTng.RESTngMonad RESTng.System.Proxy RESTng.System.Resource RESTng.System.RelationalResource RESTng.System.ORMTypesConv RESTng.System.ORM RESTng.System.PersistableResource RESTng.System.WebResource RESTng.System.CRUD RESTng.System.FormFields RESTng.System.Annotation RESTng.System.Permission RESTng.System.Association RESTng.System.Component RESTng.System.Authentication RESTng.RqHandlers.GridHandler RESTng.RqHandlers.Response RESTng.Resources.UserModel RESTng.Resources.UserCRUD RESTng.Resources.Comment RESTng.Resources.Rating RESTng.Resources.ResourceTag RESTng/Database/Record.hs:2:15: Warning: -fallow-undecidable-instances is deprecated: use -XUndecidableInstances or pragma {-# LANGUAGE UndecidableInstances#-} instead RESTng/Database/Record.hs:2:15: Warning: -fallow-incoherent-instances is deprecated: use -XIncoherentInstances or pragma {-# LANGUAGE IncoherentInstances#-} instead RESTng/System/RelationalResource.hs:2:15: Warning: -fallow-undecidable-instances is deprecated: use -XUndecidableInstances or pragma {-# LANGUAGE UndecidableInstances#-} instead RESTng/System/RelationalResource.hs:2:15: Warning: -fallow-incoherent-instances is deprecated: use -XIncoherentInstances or pragma {-# LANGUAGE IncoherentInstances#-} instead RESTng/System/ORM.hs:2:15: Warning: -fallow-undecidable-instances is deprecated: use -XUndecidableInstances or pragma {-# LANGUAGE UndecidableInstances#-} instead RESTng/System/ORM.hs:2:15: Warning: -fallow-incoherent-instances is deprecated: use -XIncoherentInstances or pragma {-# LANGUAGE IncoherentInstances#-} instead RESTng/System/Association.hs:2:11: Warning: -fallow-undecidable-instances is deprecated: use -XUndecidableInstances or pragma {-# LANGUAGE UndecidableInstances#-} instead [ 5 of 31] Compiling RESTng.RESTngMonad ( RESTng/RESTngMonad.hs, dist/build/RESTng/RESTngMonad.o ) RESTng/RESTngMonad.hs:34:30: No instance for (Database.HDBC.Types.IConnection Connection) arising from a use of `HDBC.disconnect' at RESTng/RESTngMonad.hs:34:30-49 Possible fix: add an instance declaration for (Database.HDBC.Types.IConnection Connection) In a stmt of a 'do' expression: HDBC.disconnect conn In the expression: do conn <- connectPostgreSQL connString result <- runReaderT (unRESTng m) (conn, Nothing) HDBC.disconnect conn return result In the definition of `runRESTng'': runRESTng' connString m = do conn <- connectPostgreSQL connString result <- runReaderT (unRESTng m) (conn, Nothing) HDBC.disconnect conn ....