Hi,
While attempting to build "secret-project" I encountered this
[ 7 of 10] Compiling Installer.UI ( Installer/UI.hs, .stack-work/dist/x86_64-linux-nopie/Cabal-1.24.2.0/build/propellor-config/propellor-config-tmp/Installer/UI.o )
/home/stappers/src/secret-project/Installer/UI.hs:228:14: error:
Not in scope: ‘UI.loadFile’
Module ‘Graphics.UI.Threepenny’ does not export ‘loadFile’.
-- While building custom Setup.hs for package secret-project-0.0 using:
/root/.stack/setup-exe-cache/x86_64-linux-nopie/Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2 --builddir=.stack-work/dist/x86_64-linux-nopie/Cabal-1.24.2.0 build exe:propellor-config --ghc-options " -ddump-hi -ddump-to-file"
Process exited with code: ExitFailure 1
From http://propellor.branchable.com/forum/secret-project_and_type_constructor_or_class___8216__PartSpec__8217__/#comment-179662ace1bc9a24782d60e73f2a5a4e I understand that a UI patch to threepenny-gui is needed. But I don't understand that request.
How to patch the threepenny-gui??
Cheers
Geert Stappers
There was another error before the error reported above. It was
My workaround was
That because
stack.yaml
has a package linewhere I think/assume the 0.7.0.1 comes from.
The zip file pointed to by the stack.yaml file contains a patched version of threepenny-gui 0.8.0.0, the same as the cabal file requires.
Downgrading the dependency won't work, thus your build problems. All I can tell you is it's built successfully with stack every time I've tried to build it, and stack pins all package versions to ensure a reproducible build.
It may be that you're using too old a version of stack or something like that; I've used stack 1.1.2.
Without a version for threepenny-ui in secret-project.cabal gets 0.7.0.1 installed by
stack build
.Where 0.7.0.1 comes from is unclear to me. Downloading and unzipping https://github.com/joeyh/threepenny-gui/archive/59242cf93bdb8eaa805f5c2b0241e9a1cba9a70f.zip didn't reveal any 0.7.0.1.
Having
threepenny-gui (>= 0.8.0.0)
in secret-project.cabal gives this compile error:With having
in
stack.yaml
gives me this compile error:I hope it is reproduceable and that it can be fixed.
Thank you
Groeten
Geert Stappers
You need this for it to build with the newer stack:
However, that won't work with the stack currently in debian and since secret-project later installs that version of stack and runs it against the same stack.yaml file, I can't commit that change until Debian gets around to upgrading haskell-stack
Asked the stack developers and found a stack.yaml that I think worked with both versions of stack. At least both can build with it, have not tried running secret-project again.
Yes, with the updated
stack.yaml
I do get a clean build uponstack build
.Yeah