[Pkg-haskell-maintainers] Bug#774374: yesod website cabal template does not work with the yesod dependencies
Picca Frédéric-Emmanuel
picca at debian.org
Thu Jan 1 17:35:13 UTC 2015
Package: yesod
Version: 1.2.13-1
Severity: important
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 at 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
-- System Information:
Debian Release: 8.0
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 3.16.0-4-586
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages yesod depends on:
ii libc6 2.19-13
ii libffi6 3.1-2+b2
ii libgmp10 2:6.0.0+dfsg-6
ii libicu52 52.1-6
ii libyaml-0-2 0.1.6-3
ii zlib1g 1:1.2.8.dfsg-2+b1
Versions of packages yesod recommends:
ii ghc [libghc-directory-dev] 7.6.3-20
ii libghc-aeson-dev 0.7.0.6.really.0.7.0.3-1
pn libghc-bytestring-dev <none>
ii libghc-conduit-dev 1.1.6-1+b4
ii libghc-fast-logger-dev 2.1.5-1+b1
ii libghc-hamlet-dev 1.1.9.2-1+b4
ii libghc-hjsmin-dev 0.1.4.7-2
ii libghc-http-conduit-dev 2.1.2.3-1+b7
ii libghc-monad-control-dev 0.3.2.2-1
ii libghc-monad-logger-dev 0.3.6.1-1+b5
ii libghc-persistent-dev 1.3.1.1-1+b8
ii libghc-persistent-sqlite-dev 1.3.0.5-1+b10
ii libghc-persistent-template-dev 1.3.1.4-1+b8
ii libghc-shakespeare-css-dev 1.0.7.4-1+b1
ii libghc-shakespeare-dev 1.2.1.1-1+b1
ii libghc-shakespeare-js-dev 1.2.0.4-1+b3
ii libghc-shakespeare-text-dev 1.0.2-1+b2
ii libghc-text-dev 0.11.3.1-1
ii libghc-wai-extra-dev 3.0.1.2-1+b2
ii libghc-wai-logger-dev 2.1.1-1+b9
ii libghc-warp-dev 3.0.0.5-1+b3
ii libghc-yaml-dev 0.8.9.1-1
ii libghc-yesod-auth-dev 1.3.4-1+b4
ii libghc-yesod-core-dev 1.2.19-1+b4
ii libghc-yesod-dev 1.2.6.1-1+b5
ii libghc-yesod-form-dev 1.3.15-1+b4
ii libghc-yesod-static-dev 1.2.4-1+b12
ii libghc-yesod-test-dev 1.2.3.2-1+b4
yesod suggests no packages.
-- no debconf information
-------------- next part --------------
name: myweb
version: 0.0.0
cabal-version: >= 1.8
build-type: Simple
Flag dev
Description: Turn on development settings, like auto-reload templates.
Default: False
Flag library-only
Description: Build for use with "yesod devel"
Default: False
library
exposed-modules: Application
Foundation
Import
Model
Settings
Settings.StaticFiles
Settings.Development
Handler.Home
if flag(dev) || flag(library-only)
cpp-options: -DDEVELOPMENT
ghc-options: -Wall -O0
else
ghc-options: -Wall -O2
extensions: TemplateHaskell
QuasiQuotes
OverloadedStrings
NoImplicitPrelude
CPP
MultiParamTypeClasses
TypeFamilies
GADTs
GeneralizedNewtypeDeriving
FlexibleContexts
EmptyDataDecls
NoMonomorphismRestriction
DeriveDataTypeable
build-depends: base >= 4 && < 5
, yesod >= 1.2.5 && < 1.3
, yesod-core >= 1.2.20 && < 1.3
, yesod-auth >= 1.3 && < 1.4
, yesod-static >= 1.2 && < 1.3
, yesod-form >= 1.3 && < 1.4
, bytestring >= 0.9 && < 0.11
, text >= 0.11 && < 2.0
, persistent >= 2.0 && < 2.1
, persistent-sqlite >= 2.0 && < 2.1
, persistent-template >= 2.0 && < 2.1
, template-haskell
, shakespeare >= 2.0 && < 2.1
, hjsmin >= 0.1 && < 0.2
, monad-control >= 0.3 && < 0.4
, wai-extra >= 3.0 && < 3.1
, yaml >= 0.8 && < 0.9
, http-conduit >= 2.1 && < 2.2
, directory >= 1.1 && < 1.3
, warp >= 3.0 && < 3.1
, data-default
, aeson >= 0.6 && < 0.9
, conduit >= 1.0 && < 2.0
, monad-logger >= 0.3 && < 0.4
, fast-logger >= 2.2 && < 2.3
, wai-logger >= 2.2 && < 2.3
-- see https://github.com/yesodweb/yesod/issues/814
if !os(windows)
build-depends: unix
executable myweb
if flag(library-only)
Buildable: False
main-is: main.hs
hs-source-dirs: app
build-depends: base
, myweb
, yesod
ghc-options: -threaded -O2 -rtsopts -with-rtsopts=-N
test-suite test
type: exitcode-stdio-1.0
main-is: main.hs
hs-source-dirs: tests
ghc-options: -Wall
build-depends: base
, myweb
, yesod-test >= 1.2 && < 1.3
, yesod-core
, yesod
, persistent
, persistent-sqlite
, resourcet
, monad-logger
, transformers
, hspec
More information about the Pkg-haskell-maintainers
mailing list