#774374 yesod website cabal template does not work with the yesod dependencies

Package:
yesod
Source:
haskell-yesod-bin
Description:
Helper executables for the Haskell web framework Yesod
Submitter:
Picca Frédéric-Emmanuel
Date:
2015-01-02 10:27:04 UTC
Severity:
important
#774374#5
Date:
2015-01-01 17:35:13 UTC
From:
To:
Hello,

I tryed to used yesod so after a
apt-get install yesod

I did

yesod init

to create myweb project which use sqlite for persistence.

now I did

cd myweb && yesod devel

but I got this

picca@mordor:~/tmp/myweb$ yesod devel
Yesod devel server. Press ENTER to quit
Resolving dependencies...
Configuring myweb-0.0.0...
cabal: At least the following dependencies are missing:
fast-logger ==2.2.*,
persistent ==2.0.*,
persistent-sqlite ==2.0.*,
persistent-template ==2.0.*,
shakespeare ==2.0.*,
wai-logger ==2.2.*,
yesod-core >=1.2.20 && <1.3

so it seems to me that yesod can not be used within Debian.

Indeed I can use cabal to build the missing the dependencies.
But it seems to me that it would be better if out of the box yesod should be used to generate websites.

thanks

Frederic

Ps: I will attach the myweb.cabal file generated by yesod init

#774374#10
Date:
2015-01-01 19:49:19 UTC
From:
To:
Hi,

Am Donnerstag, den 01.01.2015, 18:35 +0100 schrieb Picca
Frédéric-Emmanuel:

yes, that would be desirable, and we have an autopkgtest for that:
http://ci.debian.net/packages/h/haskell-yesod-bin/
but that did not prevent breakage, partly becaues autopkgtest failures
are far to easy to miss.

In the future I hope we can integrate the scaffolding package in our
package plan at
http://anonscm.debian.org/gitweb/?p=pkg-haskell/package-plan.git;a=summary

I’ll look into it once the freeze is over.

Greetings,
Joachim

#774374#15
Date:
2015-01-02 07:46:45 UTC
From:
To:
Hello,

It could not be  missed; if this test was run during the build process.

Nice tool.

Frederic

#774374#20
Date:
2015-01-02 10:25:26 UTC
From:
To:
Hi,


Am Freitag, den 02.01.2015, 07:46 +0000 schrieb PICCA Frederic-Emmanuel:

the problem is that yesod-bin has (or had?) different build-dependencies
than its generated packages, so this solution would come at the expense
of technically unnecessary build dependencies. Maybe better than the
current solution...

Greetings,
Joachim