Sorry, I accidentally dropped the mailing list CC previously. It looks like this is a bug that's already been fixed in 1.7. Can you try upgrading to the release candidate with:
stack upgrade --binary-version 1.7.0.1 On Tue, Apr 17, 2018 at 1:28 PM, Murat Özsöyler <murat.ozsoy...@gmail.com> wrote: > Thank you for responding. > > A minimal project can be found on https://github.com/ > MuratOzsoyler/stack-with-hpack-problem. README explains extensively how > to reproduce the problem. > > Thanks in advance for your kind help. > > 17 Nis 2018 Sal, 09:51 tarihinde, Michael Snoyman <mich...@snoyman.com> > şunu yazdı: > >> I'm not familiar with the --with-hpack option. It will generally help >> with getting help on a question like this if you provide a minimal repro so >> others can see the problem themselves. >> >> On Sun, Apr 15, 2018 at 3:56 PM, Murat Özsöyler <murat.ozsoy...@gmail.com >> > wrote: >> >>> By the way, .cabal file generated properly. The appropriate executable >>> has pkgconfig-depends option. >>> >>> 15 Nisan 2018 Pazar 15:53:17 UTC+3 tarihinde Murat Özsöyler yazdı: >>>> >>>> I need pkg-config-dependencies. But since stack 1.6.5 includes hpack >>>> 0.20.0, I installed hpack from stackage and tried to use it when building. >>>> This is the message that showed up. I think the option is passed too >>>> further. >>>> >>>> -------- command output --------------------- >>>> PS C:\Users\zmtemp\Desktop\haskell\gtk\haskell-gi\examples\introductory> >>>> stack build >>>> introductory-examples.cabal is up-to-date >>>> introductory-examples-0.1.0.0: configure (exe) >>>> unrecognized 'configure' option `--with-hpack=C:\Users\zmtemp\ >>>> AppData\Roaming\local\bin\hpack.exe' >>>> >>>> -- While building custom Setup.hs for package >>>> introductory-examples-0.1.0.0 using: >>>> >>>> C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_2.2.0.0_ghc-8.4.1.exe >>>> --builddir=.stack-work\dist\22b940d3 configure >>>> --with-ghc=C:\Users\zmtemp\AppData\Local\Programs\stack\ >>>> x86_64-windows\ghc-8.4.1\bin\ghc.EXE --with-ghc-pkg=C:\Users\ >>>> zmtemp\AppData\Local\Programs\stack\x86_64-windows\ghc-8.4.1\bin\ghc-pkg.EXE >>>> --user --package-db=clear --package-db=global >>>> --package-db=C:\sr\snapshots\52be8bfd\pkgdb >>>> --package-db=C:\Users\zmtemp\Desktop\haskell\gtk\haskell- >>>> gi\examples\introductory\.stack-work\install\99808b8a\pkgdb >>>> --libdir=C:\Users\zmtemp\Desktop\haskell\gtk\haskell- >>>> gi\examples\introductory\.stack-work\install\99808b8a\lib >>>> --bindir=C:\Users\zmtemp\Desktop\haskell\gtk\haskell- >>>> gi\examples\introductory\.stack-work\install\99808b8a\bin >>>> --datadir=C:\Users\zmtemp\Desktop\haskell\gtk\haskell- >>>> gi\examples\introductory\.stack-work\install\99808b8a\share >>>> --libexecdir=C:\Users\zmtemp\Desktop\haskell\gtk\haskell- >>>> gi\examples\introductory\.stack-work\install\99808b8a\libexec >>>> --sysconfdir=C:\Users\zmtemp\Desktop\haskell\gtk\haskell- >>>> gi\examples\introductory\.stack-work\install\99808b8a\etc >>>> --docdir=C:\Users\zmtemp\Desktop\haskell\gtk\haskell- >>>> gi\examples\introductory\.stack-work\install\99808b8a\ >>>> doc\introductory-examples-0.1.0.0 --htmldir=C:\Users\zmtemp\ >>>> Desktop\haskell\gtk\haskell-gi\examples\introductory\. >>>> stack-work\install\99808b8a\doc\introductory-examples-0.1.0.0 >>>> --haddockdir=C:\Users\zmtemp\Desktop\haskell\gtk\haskell- >>>> gi\examples\introductory\.stack-work\install\99808b8a\ >>>> doc\introductory-examples-0.1.0.0 --dependency=base=base-4.11.0.0 >>>> --dependency=filepath=filepath-1.4.2 --dependency=gi-cairo=gi- >>>> cairo-1.0.15-4rXVNqEkmZLJboBOqnZnqC >>>> --dependency=gi-gdk=gi-gdk-3.0.15-44HrmMNuiAg3TWfz5PbCtI >>>> --dependency=gi-gdkpixbuf=gi-gdkpixbuf-2.0.15-IM8H3z4wqR6CdKtgNPAgo8 >>>> --dependency=gi-gio=gi-gio-2.0.18-BCBZU40mn1AJdvQMVHmLxB >>>> --dependency=gi-gtk=gi-gtk-3.0.22-KzOfePMJsrrUrYngNAJUd >>>> --dependency=haskell-gi-base=haskell-gi-base-0.21.0-8DGRLECDHimDe69xbJU1Ut >>>> --dependency=text=text-1.2.3.0 --extra-include-dirs=C:\Users\ >>>> zmtemp\AppData\Local\Programs\stack\x86_64-windows\msys2-20150512\mingw64\include >>>> --extra-lib-dirs=C:\Users\zmtemp\AppData\Local\Programs\ >>>> stack\x86_64-windows\msys2-20150512\mingw64\bin >>>> --extra-lib-dirs=C:\Users\zmtemp\AppData\Local\Programs\ >>>> stack\x86_64-windows\msys2-20150512\mingw64\lib >>>> --with-hpack=C:\Users\zmtemp\AppData\Roaming\local\bin\hpack.exe >>>> --enable-tests --enable-benchmarks >>>> Process exited with code: ExitFailure 1 >>>> -------- end command output --------------------- >>>> >>>> I tried config.yaml, stack.yaml and command line option to no avail. >>>> >>>> Is there any other way to achieve this? >>>> >>>> Thank in advance. >>>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "haskell-stack" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to haskell-stack+unsubscr...@googlegroups.com. >>> To post to this group, send email to haskell-stack@googlegroups.com. >>> To view this discussion on the web visit https://groups.google.com/d/ >>> msgid/haskell-stack/30494691-7ef5-4f68-a99d-9c7e3d0a2c99% >>> 40googlegroups.com >>> <https://groups.google.com/d/msgid/haskell-stack/30494691-7ef5-4f68-a99d-9c7e3d0a2c99%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- > > Saygılarımla, > > Murat Özsöyler > -- You received this message because you are subscribed to the Google Groups "haskell-stack" group. To unsubscribe from this group and stop receiving emails from it, send an email to haskell-stack+unsubscr...@googlegroups.com. To post to this group, send email to haskell-stack@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/haskell-stack/CAKT9ecPua5Z3pOd%2BOv-CfDhg%3DpL_i6nRQ1aiPtXWCfPG4TtR9A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.