Is Qtah compatible with the cabal new-build system?
Trying to link and run a boilerplate project with cabal new-run
gives the following errors:
Linking /home/spearman/hs/try/tryqt/dist-newstyle/build/x86_64-linux/ghc-8.2.2/tryqt-0.1.0.0/x/tryqt/build/tryqt/tryqt ...
/home/spearman/.cabal/store/ghc-8.2.2/qtah-qt5-0.4.0-38d5e5f78ef19e953570f73d507cdc02e8001cbb15fe6b7c66b7fc84d965c00f/lib/libHSqtah-qt5-0.4.0-38d5e5f78ef19e953570f73d507cdc02e8001cbb15fe6b7c66b7fc84d965c00f-ghc8.2.2.so: error: undefined reference to 'qtahzmqt5zm0zi4zi0zm38d5e5f78ef19e953570f73d507cdc02e8001cbb15fe6b7c66b7fc84d965c00f_GraphicsziUIziQtahziGeneratedziWidgetsziQAbstractItemDelegate_QAbstractItemDelegate_con_info'
/home/spearman/.cabal/store/ghc-8.2.2/qtah-qt5-0.4.0-38d5e5f78ef19e953570f73d507cdc02e8001cbb15fe6b7c66b7fc84d965c00f/lib/libHSqtah-qt5-0.4.0-38d5e5f78ef19e953570f73d507cdc02e8001cbb15fe6b7c66b7fc84d965c00f-ghc8.2.2.so: error: undefined reference to 'qtahzmqt5zm0zi4zi0zm38d5e5f78ef19e953570f73d507cdc02e8001cbb15fe6b7c66b7fc84d965c00f_GraphicsziUIziQtahziGeneratedziWidgetsziQAbstractItemDelegate_toQAbstractItemDelegate_info'
/home/spearman/.cabal/store/ghc-8.2.2/qtah-qt5-0.4.0-38d5e5f78ef19e953570f73d507cdc02e8001cbb15fe6b7c66b7fc84d965c00f/lib/libHSqtah-qt5-0.4.0-38d5e5f78ef19e953570f73d507cdc02e8001cbb15fe6b7c66b7fc84d965c00f-ghc8.2.2.so: error: undefined reference to 'qtahzmqt5zm0zi4zi0zm38d5e5f78ef19e953570f73d507cdc02e8001cbb15fe6b7c66b7fc84d965c00f_GraphicsziUIziQtahziGeneratedziCoreziQDate_QDate_con_info'
/home/spearman/.cabal/store/ghc-8.2.2/qtah-qt5-0.4.0-38d5e5f78ef19e953570f73d507cdc02e8001cbb15fe6b7c66b7fc84d965c00f/lib/libHSqtah-qt5-0.4.0-38d5e5f78ef19e953570f73d507cdc02e8001cbb15fe6b7c66b7fc84d965c00f-ghc8.2.2.so: error: undefined reference to 'qtahzmqt5zm0zi4zi0zm38d5e5f78ef19e953570f73d507cdc02e8001cbb15fe6b7c66b7fc84d965c00f_GraphicsziUIziQtahziGeneratedziCoreziQDate_QDateGc_con_info'
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
With:
$ ghc --version && cabal --version
The Glorious Glasgow Haskell Compilation System, version 8.2.2
cabal-install version 2.2.0.0
compiled using version 2.2.0.1 of the Cabal library
Contents of the .cabal file used:
-- Initial tryqt.cabal generated by cabal init. For further documentation,
-- see http://haskell.org/cabal/users-guide/
name: tryqt
version: 0.1.0.0
-- synopsis:
-- description:
license: BSD3
license-file: LICENSE
author: Shane Pearman
maintainer: spearman@github.com
-- copyright:
-- category:
build-type: Simple
extra-source-files: ChangeLog.md
cabal-version: >=1.10
executable tryqt
main-is: Main.hs
-- other-modules:
-- other-extensions:
build-depends: base >=4 && <5,
classy-prelude >= 1 && <2,
linear >= 1 && <2,
qtah-qt5 >=0.4 && <0.5
hs-source-dirs: src
default-language: Haskell2010
ghc-options: -Wall -fwarn-unused-imports -dynamic