shakespeare >= 2.0.2 fails to install in OS X 10.6.8, Haskell-platform 2014.2.0.0; cabal-install 1.22.4.0

(I already sent a comment on the Shakespeare site but couldn't get too far. So, if this isn't the right place for this issue, I'd appreciate you point me to the right one.) Hi, I can't install yesod. Doing a cabal install yesod-bin or cabal install yesod fails because it fails to build shakespeare. I tried with all versions of shapeare >= 2.0, as required by yesod-bin. Below are all outputs. My environment: OS X 10.6.8, Xcode 3.2 Haskell-platform 2014.2.0.0 ghc-7.8.3 cabal-install 1.22.4.0 using version 1.22.3.0 of the Cabal library. This corresponds to a fresh install of the HP, ghc, and cabal I didn't before trying to install yesod. The developer of Shakespeare suspects that be a bug of HP and suggested I try a clean install of GHC as explained in http://www.stackage.org/install#mac-os-x However, the bindist available there doesn't work with my OS 10.6.8 I have a large screen output from those trials that you can check on the Shakespeare github page corresponding to the thread I started there https://github.com/yesodweb/shakespeare/issues/156 If you prefer, I can paste it here as well. Thanks in advance. MA -- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net

That is obviously a typo: I meant I *did* do a fresh install of the Haskell Platform and cabal before trying -and failing- to install yesod. On Thu, Jun 18, 2015 at 1:38 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
This corresponds to a fresh install of the HP, ghc, and cabal I didn't before trying to install yesod.
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net

Did you see that the Mac instructions said to follow the "other *nix" instructions if you were using an older version of Mac OS X? Those link here: https://www.haskell.org/ghc/download_ghc_7_8_4#binaries Get rid of all that (GHC, HP, Cabal), then install GHC using the bindist for Mac OS X linked above. On Thu, Jun 18, 2015 at 1:14 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
That is obviously a typo: I meant I *did* do a fresh install of the Haskell Platform and cabal before trying -and failing- to install yesod.
On Thu, Jun 18, 2015 at 1:38 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
This corresponds to a fresh install of the HP, ghc, and cabal I didn't before trying to install yesod.
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
-- Chris Allen Currently working on http://haskellbook.com

Indeed I saw that. That's what I meant with the bindist not being available
for OSX 10.6.8; only for 10.7+
https://www.haskell.org/ghc/download_ghc_7_8_4#macosx_x86_64
My bad, I should have said it before.
--
Public key ID: E8FE60D7
Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 2:36 PM, Christopher Allen
Did you see that the Mac instructions said to follow the "other *nix" instructions if you were using an older version of Mac OS X?
Those link here: https://www.haskell.org/ghc/download_ghc_7_8_4#binaries
Get rid of all that (GHC, HP, Cabal), then install GHC using the bindist for Mac OS X linked above.
On Thu, Jun 18, 2015 at 1:14 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
That is obviously a typo: I meant I *did* do a fresh install of the Haskell Platform and cabal before trying -and failing- to install yesod.
On Thu, Jun 18, 2015 at 1:38 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
This corresponds to a fresh install of the HP, ghc, and cabal I didn't before trying to install yesod.
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
-- Chris Allen Currently working on http://haskellbook.com

Ah that's frustrating, that's my mistake – I'm sorry. I thought you were talking about GHC for Mac OS X not being available for your OS version either. Your best bet on HP is to specify an older version of Yesod that will work with the dependencies that your version of HP comes with. On Thu, Jun 18, 2015 at 2:08 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
Indeed I saw that. That's what I meant with the bindist not being available for OSX 10.6.8; only for 10.7+ https://www.haskell.org/ghc/download_ghc_7_8_4#macosx_x86_64 My bad, I should have said it before.
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 2:36 PM, Christopher Allen
wrote: Did you see that the Mac instructions said to follow the "other *nix" instructions if you were using an older version of Mac OS X?
Those link here: https://www.haskell.org/ghc/download_ghc_7_8_4#binaries
Get rid of all that (GHC, HP, Cabal), then install GHC using the bindist for Mac OS X linked above.
On Thu, Jun 18, 2015 at 1:14 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
That is obviously a typo: I meant I *did* do a fresh install of the Haskell Platform and cabal before trying -and failing- to install yesod.
On Thu, Jun 18, 2015 at 1:38 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
This corresponds to a fresh install of the HP, ghc, and cabal I didn't before trying to install yesod.
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
-- Chris Allen Currently working on http://haskellbook.com
-- Chris Allen Currently working on http://haskellbook.com

Thanks! No problem. I gave a try to your suggestion. It doesn't look I'll
get yesod installed without "paying"
a bigger price than just "downgrading". :-/
Yesod 1.4.0 warns that forcing installing it will likely break pandoc,
among other things.
I can give it a try though, but I really use pandoc regularly. Plus, it's
still not clear that the building process
will not fail. And installing pandoc took me surprisingly a lot of time
last time.
Forcing Yesod-1.2.6.1 won't allow cabal to satisfy the dependencies.
I guess I could keep trying other versions and see. But I think I'll try
the 1.4.0 first. Will post here
the results so that at least others may hopefully benefit from this.
-----------------------------------------------------------------------------------------
msantos@MBP-2[15:42]:~/System$cabal install yesod-1.4.0
Resolving dependencies...
In order, the following would be installed:
monad-control-0.3.3.1 (latest: 1.0.0.4) (via: yesod-1.4.0
yesod-core-1.4.9.1 authenticate-1.3.2.11 xml-conduit-1.3.0
persistent-template-2.1.3.3 persistent-2.1.6 monad-logger-0.3.13.1
http-conduit-2.1.5 conduit-extra-1.1.9 resourcet-1.1.5
resource-pool-0.2.3.2 enclosed-exceptions-1.0.1.1 lifted-base-0.2.3.6) (new
version)
lifted-base-0.2.3.6 (via: yesod-auth-1.4.5 yesod-core-1.4.9.1
wai-extra-3.0.7.1 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5
conduit-1.2.4.2 resourcet-1.1.5 enclosed-exceptions-1.0.1.1) (reinstall)
(changes: monad-control-1.0.0.4 -> 0.3.3.1)
enclosed-exceptions-1.0.1.1 (via: yaml-0.8.11) (reinstall) (changes:
monad-control-1.0.0.4 -> 0.3.3.1)
resource-pool-0.2.3.2 (via: yesod-persistent-1.4.0.2 persistent-2.1.6)
(reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1)
resourcet-1.1.5 (via: yesod-auth-1.4.5 yesod-form-1.4.4.1
yesod-persistent-1.4.0.2 yesod-core-1.4.9.1 yaml-0.8.11
authenticate-1.3.2.11 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0
wai-extra-3.0.7.1 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5
conduit-extra-1.1.9 conduit-1.2.4.2) (reinstall) (changes:
monad-control-1.0.0.4 -> 0.3.3.1)
conduit-1.2.4.2 (via: yesod-auth-1.4.5 yesod-persistent-1.4.0.2
yesod-core-1.4.9.1 yaml-0.8.11 authenticate-1.3.2.11
tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 persistent-2.1.6
monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-extra-1.1.9) (reinstall)
conduit-extra-1.1.9 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-core-1.4.9.1
tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 monad-logger-0.3.13.1)
(reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1)
http-conduit-2.1.5 (via: yesod-auth-1.4.5 authenticate-1.3.2.11)
(reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1)
monad-logger-0.3.13.1 (via: yesod-1.4.0 yesod-core-1.4.9.1
persistent-template-2.1.3.3 persistent-2.1.6) (reinstall) (changes:
monad-control-1.0.0.4 -> 0.3.3.1)
persistent-2.1.6 (via: yesod-auth-1.4.5 yesod-form-1.4.4.1
yesod-persistent-1.4.0.2 persistent-template-2.1.3.3) (reinstall) (changes:
monad-control-1.0.0.4 -> 0.3.3.1)
persistent-template-2.1.3.3 (via: yesod-auth-1.4.5
yesod-persistent-1.4.0.2) (reinstall) (changes: monad-control-1.0.0.4 ->
0.3.3.1)
shakespeare-2.0.5 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-form-1.4.4.1
yesod-core-1.4.9.1) (new package)
wai-extra-3.0.7.1 (via: yesod-1.4.0 yesod-core-1.4.9.1) (reinstall)
xml-conduit-1.3.0 (via: authenticate-1.3.2.11 tagstream-conduit-0.5.5.3)
(reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1)
tagstream-conduit-0.5.5.3 (via: authenticate-1.3.2.11) (reinstall)
authenticate-1.3.2.11 (via: yesod-auth-1.4.5) (reinstall) (changes:
monad-control-1.0.0.4 -> 0.3.3.1)
yaml-0.8.11 (via: yesod-1.4.0) (reinstall)
yesod-core-1.4.9.1 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-form-1.4.4.1
yesod-persistent-1.4.0.2) (new package)
yesod-persistent-1.4.0.2 (via: yesod-1.4.0 yesod-auth-1.4.5
yesod-form-1.4.4.1) (new package)
yesod-form-1.4.4.1 (via: yesod-1.4.0 yesod-auth-1.4.5) (new package)
yesod-auth-1.4.5 (via: yesod-1.4.0) (new package)
yesod-1.4.0 (latest: 1.4.1.5) (new package)
cabal: The following packages are likely to be broken by the reinstalls:
pandoc-citeproc-0.7.1.1
pandoc-1.14.0.4
project-template-0.2.0
http-reverse-proxy-0.4.2
Use --force-reinstalls if you want to install anyway.
msantos@MBP-2[15:42]:~/System$cabal install yesod-1.2.6.1
Resolving dependencies...
cabal: Could not resolve dependencies:
next goal: yesod (user goal)
rejecting: yesod-1.4.1.5, 1.4.1.4, 1.4.1.3, 1.4.1.2, 1.4.1.1, 1.4.1, 1.4.0
(global constraint requires ==1.2.6.1)
trying: yesod-1.2.6.1
trying: streaming-commons-0.1.12.1/installed-200... (dependency of
yesod-1.2.6.1)
trying: warp-3.0.13.1/installed-150... (dependency of yesod-1.2.6.1)
next goal: yesod-form (dependency of yesod-1.2.6.1)
rejecting: yesod-form-1.4.4.1, 1.4.4, 1.4.3.1, 1.4.3, 1.4.2.1, 1.4.2,
1.4.1.1,
1.4.1, 1.4.0.2, 1.4.0.1, 1.4.0 (conflict: yesod => yesod-form>=1.3 && <1.4)
trying: yesod-form-1.3.16
next goal: persistent (dependency of yesod-form-1.3.16)
rejecting: persistent-2.1.6/installed-4f9..., 2.1.6, 2.1.5, 2.1.4, 2.1.3,
2.1.2, 2.1.1.7, 2.1.1.6, 2.1.1.5, 2.1.1.4, 2.1.1.3, 2.1.1.2, 2.1.1.1, 2.1.1,
2.1.0.2, 2.1.0.1, 2.1 (conflict: yesod-form => persistent>=1.2 && <2.1)
trying: persistent-1.3.3
trying: path-pieces-0.2.0/installed-533... (dependency of persistent-1.3.3)
next goal: yesod-core (dependency of yesod-1.2.6.1)
rejecting: yesod-core-1.4.9.1, 1.4.9, 1.4.8.3, 1.4.8.2, 1.4.8.1, 1.4.8,
1.4.7.3, 1.4.7.2, 1.4.7.1, 1.4.7, 1.4.6.2, 1.4.6.1, 1.4.6, 1.4.5, 1.4.4.5,
1.4.4.4, 1.4.4.3, 1.4.4.2, 1.4.4.1, 1.4.4, 1.4.3.1, 1.4.3, 1.4.2, 1.4.1.1,
1.4.1, 1.4.0.2, 1.4.0.1, 1.4.0 (conflict: yesod => yesod-core>=1.2.2 &&
<1.3)
rejecting: yesod-core-1.2.20.1, 1.2.20, 1.2.19.2, 1.2.19.1, 1.2.19, 1.2.18,
1.2.17, 1.2.16.1, 1.2.16, 1.2.15.2, 1.2.15.1, 1.2.15, 1.2.14, 1.2.13.1,
1.2.13, 1.2.12, 1.2.11.1, 1.2.11, 1.2.10, 1.2.9.2, 1.2.9.1, 1.2.9, 1.2.8,
1.2.7, 1.2.6.7, 1.2.6.6, 1.2.6.5, 1.2.6.4, 1.2.6.3, 1.2.6.2, 1.2.6.1
(conflict: path-pieces==0.2.0/installed-533..., yesod-core =>
path-pieces>=0.1.2 && <0.2)
rejecting: yesod-core-1.2.6 (conflict: streaming-commons =>
text==1.1.0.0/installed-9bd..., yesod-core => text>=0.7 && <0.12)
rejecting: yesod-core-1.2.5, 1.2.4.5, 1.2.4.4, 1.2.4.3, 1.2.4.2, 1.2.4.1,
1.2.4, 1.2.3, 1.2.2 (conflict: warp => wai==3.0.2.3/installed-39c...,
yesod-core => wai>=1.4 && <1.5)
rejecting: yesod-core-1.2.1, 1.2.0.4, 1.2.0.3, 1.2.0.2, 1.2.0.1, 1.2.0,
1.1.8.3, 1.1.8.2, 1.1.8.1, 1.1.8, 1.1.7.2, 1.1.7.1, 1.1.7, 1.1.6.1, 1.1.6,
1.1.5, 1.1.4.2, 1.1.4.1, 1.1.4, 1.1.3.1, 1.1.3, 1.1.2.2, 1.1.2.1, 1.1.2,
1.1.1.2, 1.1.1.1, 1.1.1, 1.1.0.1, 1.1.0, 1.0.1.3, 1.0.1.2, 1.0.1.1, 1.0.1,
1.0.0.2, 1.0.0.1, 1.0.0, 0.10.3, 0.10.2.2, 0.10.2.1, 0.10.2, 0.10.1,
0.9.4.1,
0.9.4, 0.9.3.6, 0.9.3.5, 0.9.3.4, 0.9.3.3, 0.9.3.2, 0.9.3.1, 0.9.3, 0.9.2,
0.9.1.1, 0.9.1, 0.8.3.2, 0.8.3.1, 0.8.3, 0.8.2, 0.8.1, 0.8.0.1, 0.8.0,
0.7.0.2, 0.7.0.1, 0.7.0 (conflict: yesod => yesod-core>=1.2.2 && <1.3)
Backjump limit reached (change with --max-backjumps).
--
Public key ID: E8FE60D7
Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 3:32 PM, Christopher Allen
Ah that's frustrating, that's my mistake – I'm sorry. I thought you were talking about GHC for Mac OS X not being available for your OS version either.
Your best bet on HP is to specify an older version of Yesod that will work with the dependencies that your version of HP comes with.
On Thu, Jun 18, 2015 at 2:08 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
Indeed I saw that. That's what I meant with the bindist not being available for OSX 10.6.8; only for 10.7+ https://www.haskell.org/ghc/download_ghc_7_8_4#macosx_x86_64 My bad, I should have said it before.
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 2:36 PM, Christopher Allen
wrote: Did you see that the Mac instructions said to follow the "other *nix" instructions if you were using an older version of Mac OS X?
Those link here: https://www.haskell.org/ghc/download_ghc_7_8_4#binaries
Get rid of all that (GHC, HP, Cabal), then install GHC using the bindist for Mac OS X linked above.
On Thu, Jun 18, 2015 at 1:14 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
That is obviously a typo: I meant I *did* do a fresh install of the Haskell Platform and cabal before trying -and failing- to install yesod.
On Thu, Jun 18, 2015 at 1:38 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
This corresponds to a fresh install of the HP, ghc, and cabal I didn't before trying to install yesod.
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
-- Chris Allen Currently working on http://haskellbook.com
-- Chris Allen Currently working on http://haskellbook.com

Some of that looks like churn from trying to install an older version of Yesod over a newer one. Are you using a sandbox? if so, did you wipe it out before attempting Yesod 1.2.6.1? What we'd be looking for is a package conflict that tells you which package of what version that is globally installed is causing the conflict. Insta-Yesodian conflict implies you're reinstalling into a not-fresh packgage-db which means you either need to wipe your user package-db or use a sandbox. (I recommend the latter). If you haven't done so, do that, then re-attempt that version of Yesod (1.2.6.1). On Thu, Jun 18, 2015 at 2:57 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
Thanks! No problem. I gave a try to your suggestion. It doesn't look I'll get yesod installed without "paying" a bigger price than just "downgrading". :-/
Yesod 1.4.0 warns that forcing installing it will likely break pandoc, among other things. I can give it a try though, but I really use pandoc regularly. Plus, it's still not clear that the building process will not fail. And installing pandoc took me surprisingly a lot of time last time.
Forcing Yesod-1.2.6.1 won't allow cabal to satisfy the dependencies.
I guess I could keep trying other versions and see. But I think I'll try the 1.4.0 first. Will post here the results so that at least others may hopefully benefit from this.
----------------------------------------------------------------------------------------- msantos@MBP-2[15:42]:~/System$cabal install yesod-1.4.0 Resolving dependencies... In order, the following would be installed: monad-control-0.3.3.1 (latest: 1.0.0.4) (via: yesod-1.4.0 yesod-core-1.4.9.1 authenticate-1.3.2.11 xml-conduit-1.3.0 persistent-template-2.1.3.3 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-extra-1.1.9 resourcet-1.1.5 resource-pool-0.2.3.2 enclosed-exceptions-1.0.1.1 lifted-base-0.2.3.6) (new version) lifted-base-0.2.3.6 (via: yesod-auth-1.4.5 yesod-core-1.4.9.1 wai-extra-3.0.7.1 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-1.2.4.2 resourcet-1.1.5 enclosed-exceptions-1.0.1.1) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) enclosed-exceptions-1.0.1.1 (via: yaml-0.8.11) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) resource-pool-0.2.3.2 (via: yesod-persistent-1.4.0.2 persistent-2.1.6) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) resourcet-1.1.5 (via: yesod-auth-1.4.5 yesod-form-1.4.4.1 yesod-persistent-1.4.0.2 yesod-core-1.4.9.1 yaml-0.8.11 authenticate-1.3.2.11 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 wai-extra-3.0.7.1 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-extra-1.1.9 conduit-1.2.4.2) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) conduit-1.2.4.2 (via: yesod-auth-1.4.5 yesod-persistent-1.4.0.2 yesod-core-1.4.9.1 yaml-0.8.11 authenticate-1.3.2.11 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-extra-1.1.9) (reinstall) conduit-extra-1.1.9 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-core-1.4.9.1 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 monad-logger-0.3.13.1) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) http-conduit-2.1.5 (via: yesod-auth-1.4.5 authenticate-1.3.2.11) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) monad-logger-0.3.13.1 (via: yesod-1.4.0 yesod-core-1.4.9.1 persistent-template-2.1.3.3 persistent-2.1.6) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) persistent-2.1.6 (via: yesod-auth-1.4.5 yesod-form-1.4.4.1 yesod-persistent-1.4.0.2 persistent-template-2.1.3.3) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) persistent-template-2.1.3.3 (via: yesod-auth-1.4.5 yesod-persistent-1.4.0.2) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) shakespeare-2.0.5 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-form-1.4.4.1 yesod-core-1.4.9.1) (new package) wai-extra-3.0.7.1 (via: yesod-1.4.0 yesod-core-1.4.9.1) (reinstall) xml-conduit-1.3.0 (via: authenticate-1.3.2.11 tagstream-conduit-0.5.5.3) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) tagstream-conduit-0.5.5.3 (via: authenticate-1.3.2.11) (reinstall) authenticate-1.3.2.11 (via: yesod-auth-1.4.5) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) yaml-0.8.11 (via: yesod-1.4.0) (reinstall) yesod-core-1.4.9.1 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-form-1.4.4.1 yesod-persistent-1.4.0.2) (new package) yesod-persistent-1.4.0.2 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-form-1.4.4.1) (new package) yesod-form-1.4.4.1 (via: yesod-1.4.0 yesod-auth-1.4.5) (new package) yesod-auth-1.4.5 (via: yesod-1.4.0) (new package) yesod-1.4.0 (latest: 1.4.1.5) (new package) cabal: The following packages are likely to be broken by the reinstalls: pandoc-citeproc-0.7.1.1 pandoc-1.14.0.4 project-template-0.2.0 http-reverse-proxy-0.4.2 Use --force-reinstalls if you want to install anyway. msantos@MBP-2[15:42]:~/System$cabal install yesod-1.2.6.1 Resolving dependencies... cabal: Could not resolve dependencies: next goal: yesod (user goal) rejecting: yesod-1.4.1.5, 1.4.1.4, 1.4.1.3, 1.4.1.2, 1.4.1.1, 1.4.1, 1.4.0 (global constraint requires ==1.2.6.1) trying: yesod-1.2.6.1 trying: streaming-commons-0.1.12.1/installed-200... (dependency of yesod-1.2.6.1) trying: warp-3.0.13.1/installed-150... (dependency of yesod-1.2.6.1) next goal: yesod-form (dependency of yesod-1.2.6.1) rejecting: yesod-form-1.4.4.1, 1.4.4, 1.4.3.1, 1.4.3, 1.4.2.1, 1.4.2, 1.4.1.1, 1.4.1, 1.4.0.2, 1.4.0.1, 1.4.0 (conflict: yesod => yesod-form>=1.3 && <1.4) trying: yesod-form-1.3.16 next goal: persistent (dependency of yesod-form-1.3.16) rejecting: persistent-2.1.6/installed-4f9..., 2.1.6, 2.1.5, 2.1.4, 2.1.3, 2.1.2, 2.1.1.7, 2.1.1.6, 2.1.1.5, 2.1.1.4, 2.1.1.3, 2.1.1.2, 2.1.1.1, 2.1.1, 2.1.0.2, 2.1.0.1, 2.1 (conflict: yesod-form => persistent>=1.2 && <2.1) trying: persistent-1.3.3 trying: path-pieces-0.2.0/installed-533... (dependency of persistent-1.3.3) next goal: yesod-core (dependency of yesod-1.2.6.1) rejecting: yesod-core-1.4.9.1, 1.4.9, 1.4.8.3, 1.4.8.2, 1.4.8.1, 1.4.8, 1.4.7.3, 1.4.7.2, 1.4.7.1, 1.4.7, 1.4.6.2, 1.4.6.1, 1.4.6, 1.4.5, 1.4.4.5, 1.4.4.4, 1.4.4.3, 1.4.4.2, 1.4.4.1, 1.4.4, 1.4.3.1, 1.4.3, 1.4.2, 1.4.1.1, 1.4.1, 1.4.0.2, 1.4.0.1, 1.4.0 (conflict: yesod => yesod-core>=1.2.2 && <1.3) rejecting: yesod-core-1.2.20.1, 1.2.20, 1.2.19.2, 1.2.19.1, 1.2.19, 1.2.18, 1.2.17, 1.2.16.1, 1.2.16, 1.2.15.2, 1.2.15.1, 1.2.15, 1.2.14, 1.2.13.1, 1.2.13, 1.2.12, 1.2.11.1, 1.2.11, 1.2.10, 1.2.9.2, 1.2.9.1, 1.2.9, 1.2.8, 1.2.7, 1.2.6.7, 1.2.6.6, 1.2.6.5, 1.2.6.4, 1.2.6.3, 1.2.6.2, 1.2.6.1 (conflict: path-pieces==0.2.0/installed-533..., yesod-core => path-pieces>=0.1.2 && <0.2) rejecting: yesod-core-1.2.6 (conflict: streaming-commons => text==1.1.0.0/installed-9bd..., yesod-core => text>=0.7 && <0.12) rejecting: yesod-core-1.2.5, 1.2.4.5, 1.2.4.4, 1.2.4.3, 1.2.4.2, 1.2.4.1, 1.2.4, 1.2.3, 1.2.2 (conflict: warp => wai==3.0.2.3/installed-39c..., yesod-core => wai>=1.4 && <1.5) rejecting: yesod-core-1.2.1, 1.2.0.4, 1.2.0.3, 1.2.0.2, 1.2.0.1, 1.2.0, 1.1.8.3, 1.1.8.2, 1.1.8.1, 1.1.8, 1.1.7.2, 1.1.7.1, 1.1.7, 1.1.6.1, 1.1.6, 1.1.5, 1.1.4.2, 1.1.4.1, 1.1.4, 1.1.3.1, 1.1.3, 1.1.2.2, 1.1.2.1, 1.1.2, 1.1.1.2, 1.1.1.1, 1.1.1, 1.1.0.1, 1.1.0, 1.0.1.3, 1.0.1.2, 1.0.1.1, 1.0.1, 1.0.0.2, 1.0.0.1, 1.0.0, 0.10.3, 0.10.2.2, 0.10.2.1, 0.10.2, 0.10.1, 0.9.4.1, 0.9.4, 0.9.3.6, 0.9.3.5, 0.9.3.4, 0.9.3.3, 0.9.3.2, 0.9.3.1, 0.9.3, 0.9.2, 0.9.1.1, 0.9.1, 0.8.3.2, 0.8.3.1, 0.8.3, 0.8.2, 0.8.1, 0.8.0.1, 0.8.0, 0.7.0.2, 0.7.0.1, 0.7.0 (conflict: yesod => yesod-core>=1.2.2 && <1.3) Backjump limit reached (change with --max-backjumps).
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 3:32 PM, Christopher Allen
wrote: Ah that's frustrating, that's my mistake – I'm sorry. I thought you were talking about GHC for Mac OS X not being available for your OS version either.
Your best bet on HP is to specify an older version of Yesod that will work with the dependencies that your version of HP comes with.
On Thu, Jun 18, 2015 at 2:08 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
Indeed I saw that. That's what I meant with the bindist not being available for OSX 10.6.8; only for 10.7+ https://www.haskell.org/ghc/download_ghc_7_8_4#macosx_x86_64 My bad, I should have said it before.
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 2:36 PM, Christopher Allen
wrote: Did you see that the Mac instructions said to follow the "other *nix" instructions if you were using an older version of Mac OS X?
Those link here: https://www.haskell.org/ghc/download_ghc_7_8_4#binaries
Get rid of all that (GHC, HP, Cabal), then install GHC using the bindist for Mac OS X linked above.
On Thu, Jun 18, 2015 at 1:14 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
That is obviously a typo: I meant I *did* do a fresh install of the Haskell Platform and cabal before trying -and failing- to install yesod.
On Thu, Jun 18, 2015 at 1:38 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
This corresponds to a fresh install of the HP, ghc, and cabal I didn't before trying to install yesod.
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
-- Chris Allen Currently working on http://haskellbook.com
-- Chris Allen Currently working on http://haskellbook.com
-- Chris Allen Currently working on http://haskellbook.com

I haven't yet read how to use sandboxes, so, no, that I tried just like
that cabal install...
I did check first that cabal info yesod was saying I didn't have it
install. But now that you mention it, I did
may have had other packages lingering around from my last attempt of
installing yesod.
Meanwhile I did run forcing the install of 1.4.0...
Ah, it finished with cabal install --force-reinstalls yesod-1.4.0 and...
it complains about the shakespeare.
"shakespeare-2.0.5 failed during the building phase. The exception was:
ExitFailure 1"
Below the full output.
I'll give a try to the sandbox solution.
------------------------------------------------
msantos@MBP-2[16:09]:~/System/YESOD$cabal install --force-reinstalls
yesod-1.4.0
Resolving dependencies...
Warning: The following packages are likely to be broken by the reinstalls:
pandoc-citeproc-0.7.1.1
pandoc-1.14.0.4
project-template-0.2.0
http-reverse-proxy-0.4.2
Continuing even though the plan contains dangerous reinstalls.
Downloading monad-control-0.3.3.1...
Configuring shakespeare-2.0.5...
Configuring monad-control-0.3.3.1...
Building monad-control-0.3.3.1...
Building shakespeare-2.0.5...
Installed monad-control-0.3.3.1
Configuring lifted-base-0.2.3.6...
Building lifted-base-0.2.3.6...
Configuring resource-pool-0.2.3.2...
Installed lifted-base-0.2.3.6
Building resource-pool-0.2.3.2...
Installed resource-pool-0.2.3.2
Configuring enclosed-exceptions-1.0.1.1...
Building enclosed-exceptions-1.0.1.1...
Configuring resourcet-1.1.5...
Installed enclosed-exceptions-1.0.1.1
Building resourcet-1.1.5...
Failed to install shakespeare-2.0.5
Build log ( /Users/msantos/.cabal/logs/shakespeare-2.0.5.log ):
Configuring shakespeare-2.0.5...
Building shakespeare-2.0.5...
Preprocessing library shakespeare-2.0.5...
[ 1 of 17] Compiling Text.MkSizeType ( Text/MkSizeType.hs,
dist/build/Text/MkSizeType.o )
[ 2 of 17] Compiling Text.IndentToBrace ( Text/IndentToBrace.hs,
dist/build/Text/IndentToBrace.o )
[ 3 of 17] Compiling Text.Shakespeare.Base ( Text/Shakespeare/Base.hs,
dist/build/Text/Shakespeare/Base.o )
[ 4 of 17] Compiling Text.Hamlet.Parse ( Text/Hamlet/Parse.hs,
dist/build/Text/Hamlet/Parse.o )
[ 5 of 17] Compiling Text.Hamlet ( Text/Hamlet.hs,
dist/build/Text/Hamlet.o )
Text/Hamlet.hs:402:1: Warning: Defined but not used: ‘varName’
Text/Hamlet.hs:406:1: Warning: Defined but not used: ‘strToExp’
Text/Hamlet.hs:439:16: Warning: Defined but not used: ‘html’
Text/Hamlet.hs:440:14: Warning: Defined but not used: ‘url’
Text/Hamlet.hs:441:19: Warning: Defined but not used: ‘url’
Text/Hamlet.hs:442:16: Warning: Defined but not used: ‘url’
Text/Hamlet.hs:443:20: Warning: Defined but not used: ‘msg_url’
Text/Hamlet.hs:444:14: Warning: Defined but not used: ‘msg’
Text/Hamlet.hs:488:43: Warning:
This binding for ‘c’ shadows the existing binding
bound at Text/Hamlet.hs:484:13
[ 6 of 17] Compiling Text.Hamlet.RT ( Text/Hamlet/RT.hs,
dist/build/Text/Hamlet/RT.o )
Text/Hamlet/RT.hs:78:13: Warning: Defined but not used: ‘x’
Text/Hamlet/RT.hs:78:26: Warning: Defined but not used: ‘deref’
Text/Hamlet/RT.hs:78:45: Warning: Defined but not used: ‘docs’
Text/Hamlet/RT.hs:85:13: Warning: Defined but not used: ‘x’
Text/Hamlet/RT.hs:85:25: Warning: Defined but not used: ‘deref’
Text/Hamlet/RT.hs:85:44: Warning: Defined but not used: ‘jdocs’
Text/Hamlet/RT.hs:85:50: Warning: Defined but not used: ‘ndocs’
Text/Hamlet/RT.hs:115:37: Warning:
This binding for ‘x’ shadows the existing binding
bound at Text/Hamlet/RT.hs:108:13
[ 7 of 17] Compiling Text.Shakespeare ( Text/Shakespeare.hs,
dist/build/Text/Shakespeare.o )
[ 8 of 17] Compiling Text.Shakespeare.Text ( Text/Shakespeare/Text.hs,
dist/build/Text/Shakespeare/Text.o )
[ 9 of 17] Compiling Text.Julius ( Text/Julius.hs,
dist/build/Text/Julius.o )
Text/Julius.hs:90:63: Warning:
In the use of ‘fromValue’ (imported from Data.Aeson.Encode):
Deprecated: "Use 'encodeToTextBuilder' instead"
[10 of 17] Compiling Text.Roy ( Text/Roy.hs, dist/build/Text/Roy.o )
[11 of 17] Compiling Text.Coffee ( Text/Coffee.hs,
dist/build/Text/Coffee.o )
[12 of 17] Compiling Text.Css ( Text/Css.hs, dist/build/Text/Css.o )
Text/Css.hs:349:40: Warning: Defined but not used: ‘subblocks’
Text/Css.hs:367:5: Warning: Defined but not used: ‘subGo’
[13 of 17] Compiling Text.CssCommon ( Text/CssCommon.hs,
dist/build/Text/CssCommon.o )
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package array-0.5.0.0 ... linking ... done.
Loading package deepseq-1.3.0.2 ... linking ... done.
Loading package filepath-1.3.0.2 ... linking ... done.
Loading package old-locale-1.0.0.6 ... linking ... done.
Loading package time-1.4.2 ... linking ... done.
Loading package bytestring-0.10.4.0 ... linking ... done.
Loading package unix-2.7.0.1 ... linking ... done.
Loading package directory-1.2.1.0 ... linking ... done.
Loading package process-1.2.0.0 ... linking ... done.
Loading package transformers-0.3.0.0 ... linking ... done.
Loading package mtl-2.1.3.1 ... linking ... done.
Loading package text-1.1.0.0 ... linking ... done.
Loading package parsec-3.1.5 ... <command line>: can't load .so/.DLL for:
/Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib
(dlopen(/Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib,
9): Library not loaded: @rpath/libHStext-1.1.0.0-ghc7.8.3.dylib
Referenced from:
/Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib
Reason: image not found)
Installed resourcet-1.1.5
Configuring wai-extra-3.0.7.1...
Configuring conduit-1.2.4.2...
Building conduit-1.2.4.2...
Building wai-extra-3.0.7.1...
Installed conduit-1.2.4.2
Configuring conduit-extra-1.1.9...
Building conduit-extra-1.1.9...
Configuring http-conduit-2.1.5...
Installed wai-extra-3.0.7.1
Building http-conduit-2.1.5...
Configuring yaml-0.8.11...
Installed http-conduit-2.1.5
Building yaml-0.8.11...
Installed conduit-extra-1.1.9
Configuring monad-logger-0.3.13.1...
Building monad-logger-0.3.13.1...
Configuring xml-conduit-1.3.0...
Installed monad-logger-0.3.13.1
Building xml-conduit-1.3.0...
Installed yaml-0.8.11
Configuring persistent-2.1.6...
Building persistent-2.1.6...
Installed xml-conduit-1.3.0
Configuring tagstream-conduit-0.5.5.3...
Building tagstream-conduit-0.5.5.3...
Installed tagstream-conduit-0.5.5.3
Configuring authenticate-1.3.2.11...
Building authenticate-1.3.2.11...
Installed authenticate-1.3.2.11
Installed persistent-2.1.6
Configuring persistent-template-2.1.3.3...
Building persistent-template-2.1.3.3...
Installed persistent-template-2.1.3.3
Updating documentation index
/Users/msantos/Library/Haskell/share/doc/x86_64-osx-ghc-7.8.3/index.html
cabal: Error: some packages failed to install:
shakespeare-2.0.5 failed during the building phase. The exception was:
ExitFailure 1
yesod-1.4.0 depends on shakespeare-2.0.5 which failed to install.
yesod-auth-1.4.5 depends on shakespeare-2.0.5 which failed to install.
yesod-core-1.4.9.1 depends on shakespeare-2.0.5 which failed to install.
yesod-form-1.4.4.1 depends on shakespeare-2.0.5 which failed to install.
yesod-persistent-1.4.0.2 depends on shakespeare-2.0.5 which failed to
install.
--
Public key ID: E8FE60D7
Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 4:16 PM, Christopher Allen
Some of that looks like churn from trying to install an older version of Yesod over a newer one. Are you using a sandbox? if so, did you wipe it out before attempting Yesod 1.2.6.1? What we'd be looking for is a package conflict that tells you which package of what version that is globally installed is causing the conflict.
Insta-Yesodian conflict implies you're reinstalling into a not-fresh packgage-db which means you either need to wipe your user package-db or use a sandbox. (I recommend the latter).
If you haven't done so, do that, then re-attempt that version of Yesod (1.2.6.1).
On Thu, Jun 18, 2015 at 2:57 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
Thanks! No problem. I gave a try to your suggestion. It doesn't look I'll get yesod installed without "paying" a bigger price than just "downgrading". :-/
Yesod 1.4.0 warns that forcing installing it will likely break pandoc, among other things. I can give it a try though, but I really use pandoc regularly. Plus, it's still not clear that the building process will not fail. And installing pandoc took me surprisingly a lot of time last time.
Forcing Yesod-1.2.6.1 won't allow cabal to satisfy the dependencies.
I guess I could keep trying other versions and see. But I think I'll try the 1.4.0 first. Will post here the results so that at least others may hopefully benefit from this.
----------------------------------------------------------------------------------------- msantos@MBP-2[15:42]:~/System$cabal install yesod-1.4.0 Resolving dependencies... In order, the following would be installed: monad-control-0.3.3.1 (latest: 1.0.0.4) (via: yesod-1.4.0 yesod-core-1.4.9.1 authenticate-1.3.2.11 xml-conduit-1.3.0 persistent-template-2.1.3.3 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-extra-1.1.9 resourcet-1.1.5 resource-pool-0.2.3.2 enclosed-exceptions-1.0.1.1 lifted-base-0.2.3.6) (new version) lifted-base-0.2.3.6 (via: yesod-auth-1.4.5 yesod-core-1.4.9.1 wai-extra-3.0.7.1 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-1.2.4.2 resourcet-1.1.5 enclosed-exceptions-1.0.1.1) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) enclosed-exceptions-1.0.1.1 (via: yaml-0.8.11) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) resource-pool-0.2.3.2 (via: yesod-persistent-1.4.0.2 persistent-2.1.6) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) resourcet-1.1.5 (via: yesod-auth-1.4.5 yesod-form-1.4.4.1 yesod-persistent-1.4.0.2 yesod-core-1.4.9.1 yaml-0.8.11 authenticate-1.3.2.11 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 wai-extra-3.0.7.1 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-extra-1.1.9 conduit-1.2.4.2) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) conduit-1.2.4.2 (via: yesod-auth-1.4.5 yesod-persistent-1.4.0.2 yesod-core-1.4.9.1 yaml-0.8.11 authenticate-1.3.2.11 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-extra-1.1.9) (reinstall) conduit-extra-1.1.9 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-core-1.4.9.1 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 monad-logger-0.3.13.1) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) http-conduit-2.1.5 (via: yesod-auth-1.4.5 authenticate-1.3.2.11) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) monad-logger-0.3.13.1 (via: yesod-1.4.0 yesod-core-1.4.9.1 persistent-template-2.1.3.3 persistent-2.1.6) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) persistent-2.1.6 (via: yesod-auth-1.4.5 yesod-form-1.4.4.1 yesod-persistent-1.4.0.2 persistent-template-2.1.3.3) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) persistent-template-2.1.3.3 (via: yesod-auth-1.4.5 yesod-persistent-1.4.0.2) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) shakespeare-2.0.5 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-form-1.4.4.1 yesod-core-1.4.9.1) (new package) wai-extra-3.0.7.1 (via: yesod-1.4.0 yesod-core-1.4.9.1) (reinstall) xml-conduit-1.3.0 (via: authenticate-1.3.2.11 tagstream-conduit-0.5.5.3) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) tagstream-conduit-0.5.5.3 (via: authenticate-1.3.2.11) (reinstall) authenticate-1.3.2.11 (via: yesod-auth-1.4.5) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) yaml-0.8.11 (via: yesod-1.4.0) (reinstall) yesod-core-1.4.9.1 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-form-1.4.4.1 yesod-persistent-1.4.0.2) (new package) yesod-persistent-1.4.0.2 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-form-1.4.4.1) (new package) yesod-form-1.4.4.1 (via: yesod-1.4.0 yesod-auth-1.4.5) (new package) yesod-auth-1.4.5 (via: yesod-1.4.0) (new package) yesod-1.4.0 (latest: 1.4.1.5) (new package) cabal: The following packages are likely to be broken by the reinstalls: pandoc-citeproc-0.7.1.1 pandoc-1.14.0.4 project-template-0.2.0 http-reverse-proxy-0.4.2 Use --force-reinstalls if you want to install anyway. msantos@MBP-2[15:42]:~/System$cabal install yesod-1.2.6.1 Resolving dependencies... cabal: Could not resolve dependencies: next goal: yesod (user goal) rejecting: yesod-1.4.1.5, 1.4.1.4, 1.4.1.3, 1.4.1.2, 1.4.1.1, 1.4.1, 1.4.0 (global constraint requires ==1.2.6.1) trying: yesod-1.2.6.1 trying: streaming-commons-0.1.12.1/installed-200... (dependency of yesod-1.2.6.1) trying: warp-3.0.13.1/installed-150... (dependency of yesod-1.2.6.1) next goal: yesod-form (dependency of yesod-1.2.6.1) rejecting: yesod-form-1.4.4.1, 1.4.4, 1.4.3.1, 1.4.3, 1.4.2.1, 1.4.2, 1.4.1.1, 1.4.1, 1.4.0.2, 1.4.0.1, 1.4.0 (conflict: yesod => yesod-form>=1.3 && <1.4) trying: yesod-form-1.3.16 next goal: persistent (dependency of yesod-form-1.3.16) rejecting: persistent-2.1.6/installed-4f9..., 2.1.6, 2.1.5, 2.1.4, 2.1.3, 2.1.2, 2.1.1.7, 2.1.1.6, 2.1.1.5, 2.1.1.4, 2.1.1.3, 2.1.1.2, 2.1.1.1, 2.1.1, 2.1.0.2, 2.1.0.1, 2.1 (conflict: yesod-form => persistent>=1.2 && <2.1) trying: persistent-1.3.3 trying: path-pieces-0.2.0/installed-533... (dependency of persistent-1.3.3) next goal: yesod-core (dependency of yesod-1.2.6.1) rejecting: yesod-core-1.4.9.1, 1.4.9, 1.4.8.3, 1.4.8.2, 1.4.8.1, 1.4.8, 1.4.7.3, 1.4.7.2, 1.4.7.1, 1.4.7, 1.4.6.2, 1.4.6.1, 1.4.6, 1.4.5, 1.4.4.5, 1.4.4.4, 1.4.4.3, 1.4.4.2, 1.4.4.1, 1.4.4, 1.4.3.1, 1.4.3, 1.4.2, 1.4.1.1, 1.4.1, 1.4.0.2, 1.4.0.1, 1.4.0 (conflict: yesod => yesod-core>=1.2.2 && <1.3) rejecting: yesod-core-1.2.20.1, 1.2.20, 1.2.19.2, 1.2.19.1, 1.2.19, 1.2.18, 1.2.17, 1.2.16.1, 1.2.16, 1.2.15.2, 1.2.15.1, 1.2.15, 1.2.14, 1.2.13.1, 1.2.13, 1.2.12, 1.2.11.1, 1.2.11, 1.2.10, 1.2.9.2, 1.2.9.1, 1.2.9, 1.2.8, 1.2.7, 1.2.6.7, 1.2.6.6, 1.2.6.5, 1.2.6.4, 1.2.6.3, 1.2.6.2, 1.2.6.1 (conflict: path-pieces==0.2.0/installed-533..., yesod-core => path-pieces>=0.1.2 && <0.2) rejecting: yesod-core-1.2.6 (conflict: streaming-commons => text==1.1.0.0/installed-9bd..., yesod-core => text>=0.7 && <0.12) rejecting: yesod-core-1.2.5, 1.2.4.5, 1.2.4.4, 1.2.4.3, 1.2.4.2, 1.2.4.1, 1.2.4, 1.2.3, 1.2.2 (conflict: warp => wai==3.0.2.3/installed-39c..., yesod-core => wai>=1.4 && <1.5) rejecting: yesod-core-1.2.1, 1.2.0.4, 1.2.0.3, 1.2.0.2, 1.2.0.1, 1.2.0, 1.1.8.3, 1.1.8.2, 1.1.8.1, 1.1.8, 1.1.7.2, 1.1.7.1, 1.1.7, 1.1.6.1, 1.1.6, 1.1.5, 1.1.4.2, 1.1.4.1, 1.1.4, 1.1.3.1, 1.1.3, 1.1.2.2, 1.1.2.1, 1.1.2, 1.1.1.2, 1.1.1.1, 1.1.1, 1.1.0.1, 1.1.0, 1.0.1.3, 1.0.1.2, 1.0.1.1, 1.0.1, 1.0.0.2, 1.0.0.1, 1.0.0, 0.10.3, 0.10.2.2, 0.10.2.1, 0.10.2, 0.10.1, 0.9.4.1, 0.9.4, 0.9.3.6, 0.9.3.5, 0.9.3.4, 0.9.3.3, 0.9.3.2, 0.9.3.1, 0.9.3, 0.9.2, 0.9.1.1, 0.9.1, 0.8.3.2, 0.8.3.1, 0.8.3, 0.8.2, 0.8.1, 0.8.0.1, 0.8.0, 0.7.0.2, 0.7.0.1, 0.7.0 (conflict: yesod => yesod-core>=1.2.2 && <1.3) Backjump limit reached (change with --max-backjumps).
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 3:32 PM, Christopher Allen
wrote: Ah that's frustrating, that's my mistake – I'm sorry. I thought you were talking about GHC for Mac OS X not being available for your OS version either.
Your best bet on HP is to specify an older version of Yesod that will work with the dependencies that your version of HP comes with.
On Thu, Jun 18, 2015 at 2:08 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
Indeed I saw that. That's what I meant with the bindist not being available for OSX 10.6.8; only for 10.7+ https://www.haskell.org/ghc/download_ghc_7_8_4#macosx_x86_64 My bad, I should have said it before.
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 2:36 PM, Christopher Allen
wrote: Did you see that the Mac instructions said to follow the "other *nix" instructions if you were using an older version of Mac OS X?
Those link here: https://www.haskell.org/ghc/download_ghc_7_8_4#binaries
Get rid of all that (GHC, HP, Cabal), then install GHC using the bindist for Mac OS X linked above.
On Thu, Jun 18, 2015 at 1:14 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
That is obviously a typo: I meant I *did* do a fresh install of the Haskell Platform and cabal before trying -and failing- to install yesod.
On Thu, Jun 18, 2015 at 1:38 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
> This corresponds to a fresh install of the HP, ghc, and cabal I > didn't before trying to install yesod. >
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
-- Chris Allen Currently working on http://haskellbook.com
-- Chris Allen Currently working on http://haskellbook.com
-- Chris Allen Currently working on http://haskellbook.com

If you won't use a sandbox, then lets nuke your user package-db and start from scratch: rm -rf ~/.ghc cabal install yesod==1.2.6.1 On Thu, Jun 18, 2015 at 3:28 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
I haven't yet read how to use sandboxes, so, no, that I tried just like that cabal install... I did check first that cabal info yesod was saying I didn't have it install. But now that you mention it, I did may have had other packages lingering around from my last attempt of installing yesod.
Meanwhile I did run forcing the install of 1.4.0... Ah, it finished with cabal install --force-reinstalls yesod-1.4.0 and... it complains about the shakespeare.
"shakespeare-2.0.5 failed during the building phase. The exception was: ExitFailure 1"
Below the full output.
I'll give a try to the sandbox solution.
------------------------------------------------ msantos@MBP-2[16:09]:~/System/YESOD$cabal install --force-reinstalls yesod-1.4.0 Resolving dependencies... Warning: The following packages are likely to be broken by the reinstalls: pandoc-citeproc-0.7.1.1 pandoc-1.14.0.4 project-template-0.2.0 http-reverse-proxy-0.4.2 Continuing even though the plan contains dangerous reinstalls. Downloading monad-control-0.3.3.1... Configuring shakespeare-2.0.5... Configuring monad-control-0.3.3.1... Building monad-control-0.3.3.1... Building shakespeare-2.0.5... Installed monad-control-0.3.3.1 Configuring lifted-base-0.2.3.6... Building lifted-base-0.2.3.6... Configuring resource-pool-0.2.3.2... Installed lifted-base-0.2.3.6 Building resource-pool-0.2.3.2... Installed resource-pool-0.2.3.2 Configuring enclosed-exceptions-1.0.1.1... Building enclosed-exceptions-1.0.1.1... Configuring resourcet-1.1.5... Installed enclosed-exceptions-1.0.1.1 Building resourcet-1.1.5... Failed to install shakespeare-2.0.5 Build log ( /Users/msantos/.cabal/logs/shakespeare-2.0.5.log ): Configuring shakespeare-2.0.5... Building shakespeare-2.0.5... Preprocessing library shakespeare-2.0.5... [ 1 of 17] Compiling Text.MkSizeType ( Text/MkSizeType.hs, dist/build/Text/MkSizeType.o ) [ 2 of 17] Compiling Text.IndentToBrace ( Text/IndentToBrace.hs, dist/build/Text/IndentToBrace.o ) [ 3 of 17] Compiling Text.Shakespeare.Base ( Text/Shakespeare/Base.hs, dist/build/Text/Shakespeare/Base.o ) [ 4 of 17] Compiling Text.Hamlet.Parse ( Text/Hamlet/Parse.hs, dist/build/Text/Hamlet/Parse.o ) [ 5 of 17] Compiling Text.Hamlet ( Text/Hamlet.hs, dist/build/Text/Hamlet.o )
Text/Hamlet.hs:402:1: Warning: Defined but not used: ‘varName’
Text/Hamlet.hs:406:1: Warning: Defined but not used: ‘strToExp’
Text/Hamlet.hs:439:16: Warning: Defined but not used: ‘html’
Text/Hamlet.hs:440:14: Warning: Defined but not used: ‘url’
Text/Hamlet.hs:441:19: Warning: Defined but not used: ‘url’
Text/Hamlet.hs:442:16: Warning: Defined but not used: ‘url’
Text/Hamlet.hs:443:20: Warning: Defined but not used: ‘msg_url’
Text/Hamlet.hs:444:14: Warning: Defined but not used: ‘msg’
Text/Hamlet.hs:488:43: Warning: This binding for ‘c’ shadows the existing binding bound at Text/Hamlet.hs:484:13 [ 6 of 17] Compiling Text.Hamlet.RT ( Text/Hamlet/RT.hs, dist/build/Text/Hamlet/RT.o )
Text/Hamlet/RT.hs:78:13: Warning: Defined but not used: ‘x’
Text/Hamlet/RT.hs:78:26: Warning: Defined but not used: ‘deref’
Text/Hamlet/RT.hs:78:45: Warning: Defined but not used: ‘docs’
Text/Hamlet/RT.hs:85:13: Warning: Defined but not used: ‘x’
Text/Hamlet/RT.hs:85:25: Warning: Defined but not used: ‘deref’
Text/Hamlet/RT.hs:85:44: Warning: Defined but not used: ‘jdocs’
Text/Hamlet/RT.hs:85:50: Warning: Defined but not used: ‘ndocs’
Text/Hamlet/RT.hs:115:37: Warning: This binding for ‘x’ shadows the existing binding bound at Text/Hamlet/RT.hs:108:13 [ 7 of 17] Compiling Text.Shakespeare ( Text/Shakespeare.hs, dist/build/Text/Shakespeare.o ) [ 8 of 17] Compiling Text.Shakespeare.Text ( Text/Shakespeare/Text.hs, dist/build/Text/Shakespeare/Text.o ) [ 9 of 17] Compiling Text.Julius ( Text/Julius.hs, dist/build/Text/Julius.o )
Text/Julius.hs:90:63: Warning: In the use of ‘fromValue’ (imported from Data.Aeson.Encode): Deprecated: "Use 'encodeToTextBuilder' instead" [10 of 17] Compiling Text.Roy ( Text/Roy.hs, dist/build/Text/Roy.o ) [11 of 17] Compiling Text.Coffee ( Text/Coffee.hs, dist/build/Text/Coffee.o ) [12 of 17] Compiling Text.Css ( Text/Css.hs, dist/build/Text/Css.o )
Text/Css.hs:349:40: Warning: Defined but not used: ‘subblocks’
Text/Css.hs:367:5: Warning: Defined but not used: ‘subGo’ [13 of 17] Compiling Text.CssCommon ( Text/CssCommon.hs, dist/build/Text/CssCommon.o ) Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Loading package array-0.5.0.0 ... linking ... done. Loading package deepseq-1.3.0.2 ... linking ... done. Loading package filepath-1.3.0.2 ... linking ... done. Loading package old-locale-1.0.0.6 ... linking ... done. Loading package time-1.4.2 ... linking ... done. Loading package bytestring-0.10.4.0 ... linking ... done. Loading package unix-2.7.0.1 ... linking ... done. Loading package directory-1.2.1.0 ... linking ... done. Loading package process-1.2.0.0 ... linking ... done. Loading package transformers-0.3.0.0 ... linking ... done. Loading package mtl-2.1.3.1 ... linking ... done. Loading package text-1.1.0.0 ... linking ... done. Loading package parsec-3.1.5 ... <command line>: can't load .so/.DLL for: /Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib (dlopen(/Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib, 9): Library not loaded: @rpath/libHStext-1.1.0.0-ghc7.8.3.dylib Referenced from: /Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib Reason: image not found) Installed resourcet-1.1.5 Configuring wai-extra-3.0.7.1... Configuring conduit-1.2.4.2... Building conduit-1.2.4.2... Building wai-extra-3.0.7.1... Installed conduit-1.2.4.2 Configuring conduit-extra-1.1.9... Building conduit-extra-1.1.9... Configuring http-conduit-2.1.5... Installed wai-extra-3.0.7.1 Building http-conduit-2.1.5... Configuring yaml-0.8.11... Installed http-conduit-2.1.5 Building yaml-0.8.11... Installed conduit-extra-1.1.9 Configuring monad-logger-0.3.13.1... Building monad-logger-0.3.13.1... Configuring xml-conduit-1.3.0... Installed monad-logger-0.3.13.1 Building xml-conduit-1.3.0... Installed yaml-0.8.11 Configuring persistent-2.1.6... Building persistent-2.1.6... Installed xml-conduit-1.3.0 Configuring tagstream-conduit-0.5.5.3... Building tagstream-conduit-0.5.5.3... Installed tagstream-conduit-0.5.5.3 Configuring authenticate-1.3.2.11... Building authenticate-1.3.2.11... Installed authenticate-1.3.2.11 Installed persistent-2.1.6 Configuring persistent-template-2.1.3.3... Building persistent-template-2.1.3.3... Installed persistent-template-2.1.3.3 Updating documentation index /Users/msantos/Library/Haskell/share/doc/x86_64-osx-ghc-7.8.3/index.html cabal: Error: some packages failed to install: shakespeare-2.0.5 failed during the building phase. The exception was: ExitFailure 1 yesod-1.4.0 depends on shakespeare-2.0.5 which failed to install. yesod-auth-1.4.5 depends on shakespeare-2.0.5 which failed to install. yesod-core-1.4.9.1 depends on shakespeare-2.0.5 which failed to install. yesod-form-1.4.4.1 depends on shakespeare-2.0.5 which failed to install. yesod-persistent-1.4.0.2 depends on shakespeare-2.0.5 which failed to install.
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 4:16 PM, Christopher Allen
wrote: Some of that looks like churn from trying to install an older version of Yesod over a newer one. Are you using a sandbox? if so, did you wipe it out before attempting Yesod 1.2.6.1? What we'd be looking for is a package conflict that tells you which package of what version that is globally installed is causing the conflict.
Insta-Yesodian conflict implies you're reinstalling into a not-fresh packgage-db which means you either need to wipe your user package-db or use a sandbox. (I recommend the latter).
If you haven't done so, do that, then re-attempt that version of Yesod (1.2.6.1).
On Thu, Jun 18, 2015 at 2:57 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
Thanks! No problem. I gave a try to your suggestion. It doesn't look I'll get yesod installed without "paying" a bigger price than just "downgrading". :-/
Yesod 1.4.0 warns that forcing installing it will likely break pandoc, among other things. I can give it a try though, but I really use pandoc regularly. Plus, it's still not clear that the building process will not fail. And installing pandoc took me surprisingly a lot of time last time.
Forcing Yesod-1.2.6.1 won't allow cabal to satisfy the dependencies.
I guess I could keep trying other versions and see. But I think I'll try the 1.4.0 first. Will post here the results so that at least others may hopefully benefit from this.
----------------------------------------------------------------------------------------- msantos@MBP-2[15:42]:~/System$cabal install yesod-1.4.0 Resolving dependencies... In order, the following would be installed: monad-control-0.3.3.1 (latest: 1.0.0.4) (via: yesod-1.4.0 yesod-core-1.4.9.1 authenticate-1.3.2.11 xml-conduit-1.3.0 persistent-template-2.1.3.3 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-extra-1.1.9 resourcet-1.1.5 resource-pool-0.2.3.2 enclosed-exceptions-1.0.1.1 lifted-base-0.2.3.6) (new version) lifted-base-0.2.3.6 (via: yesod-auth-1.4.5 yesod-core-1.4.9.1 wai-extra-3.0.7.1 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-1.2.4.2 resourcet-1.1.5 enclosed-exceptions-1.0.1.1) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) enclosed-exceptions-1.0.1.1 (via: yaml-0.8.11) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) resource-pool-0.2.3.2 (via: yesod-persistent-1.4.0.2 persistent-2.1.6) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) resourcet-1.1.5 (via: yesod-auth-1.4.5 yesod-form-1.4.4.1 yesod-persistent-1.4.0.2 yesod-core-1.4.9.1 yaml-0.8.11 authenticate-1.3.2.11 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 wai-extra-3.0.7.1 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-extra-1.1.9 conduit-1.2.4.2) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) conduit-1.2.4.2 (via: yesod-auth-1.4.5 yesod-persistent-1.4.0.2 yesod-core-1.4.9.1 yaml-0.8.11 authenticate-1.3.2.11 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-extra-1.1.9) (reinstall) conduit-extra-1.1.9 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-core-1.4.9.1 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 monad-logger-0.3.13.1) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) http-conduit-2.1.5 (via: yesod-auth-1.4.5 authenticate-1.3.2.11) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) monad-logger-0.3.13.1 (via: yesod-1.4.0 yesod-core-1.4.9.1 persistent-template-2.1.3.3 persistent-2.1.6) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) persistent-2.1.6 (via: yesod-auth-1.4.5 yesod-form-1.4.4.1 yesod-persistent-1.4.0.2 persistent-template-2.1.3.3) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) persistent-template-2.1.3.3 (via: yesod-auth-1.4.5 yesod-persistent-1.4.0.2) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) shakespeare-2.0.5 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-form-1.4.4.1 yesod-core-1.4.9.1) (new package) wai-extra-3.0.7.1 (via: yesod-1.4.0 yesod-core-1.4.9.1) (reinstall) xml-conduit-1.3.0 (via: authenticate-1.3.2.11 tagstream-conduit-0.5.5.3) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) tagstream-conduit-0.5.5.3 (via: authenticate-1.3.2.11) (reinstall) authenticate-1.3.2.11 (via: yesod-auth-1.4.5) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) yaml-0.8.11 (via: yesod-1.4.0) (reinstall) yesod-core-1.4.9.1 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-form-1.4.4.1 yesod-persistent-1.4.0.2) (new package) yesod-persistent-1.4.0.2 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-form-1.4.4.1) (new package) yesod-form-1.4.4.1 (via: yesod-1.4.0 yesod-auth-1.4.5) (new package) yesod-auth-1.4.5 (via: yesod-1.4.0) (new package) yesod-1.4.0 (latest: 1.4.1.5) (new package) cabal: The following packages are likely to be broken by the reinstalls: pandoc-citeproc-0.7.1.1 pandoc-1.14.0.4 project-template-0.2.0 http-reverse-proxy-0.4.2 Use --force-reinstalls if you want to install anyway. msantos@MBP-2[15:42]:~/System$cabal install yesod-1.2.6.1 Resolving dependencies... cabal: Could not resolve dependencies: next goal: yesod (user goal) rejecting: yesod-1.4.1.5, 1.4.1.4, 1.4.1.3, 1.4.1.2, 1.4.1.1, 1.4.1, 1.4.0 (global constraint requires ==1.2.6.1) trying: yesod-1.2.6.1 trying: streaming-commons-0.1.12.1/installed-200... (dependency of yesod-1.2.6.1) trying: warp-3.0.13.1/installed-150... (dependency of yesod-1.2.6.1) next goal: yesod-form (dependency of yesod-1.2.6.1) rejecting: yesod-form-1.4.4.1, 1.4.4, 1.4.3.1, 1.4.3, 1.4.2.1, 1.4.2, 1.4.1.1, 1.4.1, 1.4.0.2, 1.4.0.1, 1.4.0 (conflict: yesod => yesod-form>=1.3 && <1.4) trying: yesod-form-1.3.16 next goal: persistent (dependency of yesod-form-1.3.16) rejecting: persistent-2.1.6/installed-4f9..., 2.1.6, 2.1.5, 2.1.4, 2.1.3, 2.1.2, 2.1.1.7, 2.1.1.6, 2.1.1.5, 2.1.1.4, 2.1.1.3, 2.1.1.2, 2.1.1.1, 2.1.1, 2.1.0.2, 2.1.0.1, 2.1 (conflict: yesod-form => persistent>=1.2 && <2.1) trying: persistent-1.3.3 trying: path-pieces-0.2.0/installed-533... (dependency of persistent-1.3.3) next goal: yesod-core (dependency of yesod-1.2.6.1) rejecting: yesod-core-1.4.9.1, 1.4.9, 1.4.8.3, 1.4.8.2, 1.4.8.1, 1.4.8, 1.4.7.3, 1.4.7.2, 1.4.7.1, 1.4.7, 1.4.6.2, 1.4.6.1, 1.4.6, 1.4.5, 1.4.4.5, 1.4.4.4, 1.4.4.3, 1.4.4.2, 1.4.4.1, 1.4.4, 1.4.3.1, 1.4.3, 1.4.2, 1.4.1.1, 1.4.1, 1.4.0.2, 1.4.0.1, 1.4.0 (conflict: yesod => yesod-core>=1.2.2 && <1.3) rejecting: yesod-core-1.2.20.1, 1.2.20, 1.2.19.2, 1.2.19.1, 1.2.19, 1.2.18, 1.2.17, 1.2.16.1, 1.2.16, 1.2.15.2, 1.2.15.1, 1.2.15, 1.2.14, 1.2.13.1, 1.2.13, 1.2.12, 1.2.11.1, 1.2.11, 1.2.10, 1.2.9.2, 1.2.9.1, 1.2.9, 1.2.8, 1.2.7, 1.2.6.7, 1.2.6.6, 1.2.6.5, 1.2.6.4, 1.2.6.3, 1.2.6.2, 1.2.6.1 (conflict: path-pieces==0.2.0/installed-533..., yesod-core => path-pieces>=0.1.2 && <0.2) rejecting: yesod-core-1.2.6 (conflict: streaming-commons => text==1.1.0.0/installed-9bd..., yesod-core => text>=0.7 && <0.12) rejecting: yesod-core-1.2.5, 1.2.4.5, 1.2.4.4, 1.2.4.3, 1.2.4.2, 1.2.4.1, 1.2.4, 1.2.3, 1.2.2 (conflict: warp => wai==3.0.2.3/installed-39c..., yesod-core => wai>=1.4 && <1.5) rejecting: yesod-core-1.2.1, 1.2.0.4, 1.2.0.3, 1.2.0.2, 1.2.0.1, 1.2.0, 1.1.8.3, 1.1.8.2, 1.1.8.1, 1.1.8, 1.1.7.2, 1.1.7.1, 1.1.7, 1.1.6.1, 1.1.6, 1.1.5, 1.1.4.2, 1.1.4.1, 1.1.4, 1.1.3.1, 1.1.3, 1.1.2.2, 1.1.2.1, 1.1.2, 1.1.1.2, 1.1.1.1, 1.1.1, 1.1.0.1, 1.1.0, 1.0.1.3, 1.0.1.2, 1.0.1.1, 1.0.1, 1.0.0.2, 1.0.0.1, 1.0.0, 0.10.3, 0.10.2.2, 0.10.2.1, 0.10.2, 0.10.1, 0.9.4.1, 0.9.4, 0.9.3.6, 0.9.3.5, 0.9.3.4, 0.9.3.3, 0.9.3.2, 0.9.3.1, 0.9.3, 0.9.2, 0.9.1.1, 0.9.1, 0.8.3.2, 0.8.3.1, 0.8.3, 0.8.2, 0.8.1, 0.8.0.1, 0.8.0, 0.7.0.2, 0.7.0.1, 0.7.0 (conflict: yesod => yesod-core>=1.2.2 && <1.3) Backjump limit reached (change with --max-backjumps).
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 3:32 PM, Christopher Allen
wrote: Ah that's frustrating, that's my mistake – I'm sorry. I thought you were talking about GHC for Mac OS X not being available for your OS version either.
Your best bet on HP is to specify an older version of Yesod that will work with the dependencies that your version of HP comes with.
On Thu, Jun 18, 2015 at 2:08 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
Indeed I saw that. That's what I meant with the bindist not being available for OSX 10.6.8; only for 10.7+ https://www.haskell.org/ghc/download_ghc_7_8_4#macosx_x86_64 My bad, I should have said it before.
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 2:36 PM, Christopher Allen
wrote: Did you see that the Mac instructions said to follow the "other *nix" instructions if you were using an older version of Mac OS X?
Those link here: https://www.haskell.org/ghc/download_ghc_7_8_4#binaries
Get rid of all that (GHC, HP, Cabal), then install GHC using the bindist for Mac OS X linked above.
On Thu, Jun 18, 2015 at 1:14 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
> That is obviously a typo: I meant I *did* do a fresh install of the > Haskell Platform and cabal before > trying -and failing- to install yesod. > > On Thu, Jun 18, 2015 at 1:38 PM, Miguel A. Santos < > miguel.a.santos.l@gmail.com> wrote: > >> This corresponds to a fresh install of the HP, ghc, and cabal I >> didn't before trying to install yesod. >> > > > -- > Public key ID: E8FE60D7 > Public key server: see, e.g., hkp://keys.gnupg.net > > _______________________________________________ > Haskell-Cafe mailing list > Haskell-Cafe@haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe > >
-- Chris Allen Currently working on http://haskellbook.com
-- Chris Allen Currently working on http://haskellbook.com
-- Chris Allen Currently working on http://haskellbook.com
-- Chris Allen Currently working on http://haskellbook.com

Hmm.. wouldn't that mean, I later have to reinstall all my packages? :-/
Meanwhile, I did try the sandbox way. It didn't work either. Briefly I
issued
cabal sandbox init
and then
cabal install yesod-1.2.6.1
Details below.
The initial complain about not being able to resolve dependencies makes me
think
I may be missing more things about working with sandboxes. Just checked
https://www.haskell.org/cabal/users-guide/installing-packages.html#developin...
and guessed the init would be enough.
--------------------------------------------------------
msantos@MBP-2[16:38]:~/System/YESOD/Sandbox$cabal sandbox init
Writing a default package environment file to
/Users/msantos/System/YESOD/Sandbox/cabal.sandbox.config
Creating a new sandbox at /Users/msantos/System/YESOD/Sandbox/.cabal-sandbox
msantos@MBP-2[16:41]:~/System/YESOD/Sandbox$cabal install yesod-1.2.6.1
Resolving dependencies...
cabal: Could not resolve dependencies:
next goal: yesod (user goal)
rejecting: yesod-1.4.1.5, 1.4.1.4, 1.4.1.3, 1.4.1.2, 1.4.1.1, 1.4.1, 1.4.0
(global constraint requires ==1.2.6.1)
trying: yesod-1.2.6.1
trying: streaming-commons-0.1.12.1 (dependency of yesod-1.2.6.1)
trying: network-2.4.2.3/installed-575... (dependency of
streaming-commons-0.1.12.1)
trying: parsec-3.1.5/installed-04a... (dependency of
network-2.4.2.3/installed-575...)
trying: mtl-2.1.3.1/installed-8bc... (dependency of
parsec-3.1.5/installed-04a...)
trying: shakespeare-2.0.5 (dependency of yesod-1.2.6.1)
trying: exceptions-0.8.0.2 (dependency of shakespeare-2.0.5)
trying: transformers-compat-0.4.0.4 (dependency of exceptions-0.8.0.2)
trying: transformers-compat-0.4.0.4:-two
rejecting: transformers-compat-0.4.0.4:-three (conflict: mtl =>
transformers==0.3.0.0/installed-16a..., transformers-compat-0.4.0.4:three =>
transformers>=0.4.1 && <0.5)
rejecting: transformers-compat-0.4.0.4:+three (manual flag can only be
changed
explicitly)
Backjump limit reached (change with --max-backjumps).
Note: when using a sandbox, all packages are required to have consistent
dependencies. Try reinstalling/unregistering the offending packages or
recreating the sandbox.
--
Public key ID: E8FE60D7
Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 4:46 PM, Christopher Allen
If you won't use a sandbox, then lets nuke your user package-db and start from scratch:
rm -rf ~/.ghc cabal install yesod==1.2.6.1
On Thu, Jun 18, 2015 at 3:28 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
I haven't yet read how to use sandboxes, so, no, that I tried just like that cabal install... I did check first that cabal info yesod was saying I didn't have it install. But now that you mention it, I did may have had other packages lingering around from my last attempt of installing yesod.
Meanwhile I did run forcing the install of 1.4.0... Ah, it finished with cabal install --force-reinstalls yesod-1.4.0 and... it complains about the shakespeare.
"shakespeare-2.0.5 failed during the building phase. The exception was: ExitFailure 1"
Below the full output.
I'll give a try to the sandbox solution.
------------------------------------------------ msantos@MBP-2[16:09]:~/System/YESOD$cabal install --force-reinstalls yesod-1.4.0 Resolving dependencies... Warning: The following packages are likely to be broken by the reinstalls: pandoc-citeproc-0.7.1.1 pandoc-1.14.0.4 project-template-0.2.0 http-reverse-proxy-0.4.2 Continuing even though the plan contains dangerous reinstalls. Downloading monad-control-0.3.3.1... Configuring shakespeare-2.0.5... Configuring monad-control-0.3.3.1... Building monad-control-0.3.3.1... Building shakespeare-2.0.5... Installed monad-control-0.3.3.1 Configuring lifted-base-0.2.3.6... Building lifted-base-0.2.3.6... Configuring resource-pool-0.2.3.2... Installed lifted-base-0.2.3.6 Building resource-pool-0.2.3.2... Installed resource-pool-0.2.3.2 Configuring enclosed-exceptions-1.0.1.1... Building enclosed-exceptions-1.0.1.1... Configuring resourcet-1.1.5... Installed enclosed-exceptions-1.0.1.1 Building resourcet-1.1.5... Failed to install shakespeare-2.0.5 Build log ( /Users/msantos/.cabal/logs/shakespeare-2.0.5.log ): Configuring shakespeare-2.0.5... Building shakespeare-2.0.5... Preprocessing library shakespeare-2.0.5... [ 1 of 17] Compiling Text.MkSizeType ( Text/MkSizeType.hs, dist/build/Text/MkSizeType.o ) [ 2 of 17] Compiling Text.IndentToBrace ( Text/IndentToBrace.hs, dist/build/Text/IndentToBrace.o ) [ 3 of 17] Compiling Text.Shakespeare.Base ( Text/Shakespeare/Base.hs, dist/build/Text/Shakespeare/Base.o ) [ 4 of 17] Compiling Text.Hamlet.Parse ( Text/Hamlet/Parse.hs, dist/build/Text/Hamlet/Parse.o ) [ 5 of 17] Compiling Text.Hamlet ( Text/Hamlet.hs, dist/build/Text/Hamlet.o )
Text/Hamlet.hs:402:1: Warning: Defined but not used: ‘varName’
Text/Hamlet.hs:406:1: Warning: Defined but not used: ‘strToExp’
Text/Hamlet.hs:439:16: Warning: Defined but not used: ‘html’
Text/Hamlet.hs:440:14: Warning: Defined but not used: ‘url’
Text/Hamlet.hs:441:19: Warning: Defined but not used: ‘url’
Text/Hamlet.hs:442:16: Warning: Defined but not used: ‘url’
Text/Hamlet.hs:443:20: Warning: Defined but not used: ‘msg_url’
Text/Hamlet.hs:444:14: Warning: Defined but not used: ‘msg’
Text/Hamlet.hs:488:43: Warning: This binding for ‘c’ shadows the existing binding bound at Text/Hamlet.hs:484:13 [ 6 of 17] Compiling Text.Hamlet.RT ( Text/Hamlet/RT.hs, dist/build/Text/Hamlet/RT.o )
Text/Hamlet/RT.hs:78:13: Warning: Defined but not used: ‘x’
Text/Hamlet/RT.hs:78:26: Warning: Defined but not used: ‘deref’
Text/Hamlet/RT.hs:78:45: Warning: Defined but not used: ‘docs’
Text/Hamlet/RT.hs:85:13: Warning: Defined but not used: ‘x’
Text/Hamlet/RT.hs:85:25: Warning: Defined but not used: ‘deref’
Text/Hamlet/RT.hs:85:44: Warning: Defined but not used: ‘jdocs’
Text/Hamlet/RT.hs:85:50: Warning: Defined but not used: ‘ndocs’
Text/Hamlet/RT.hs:115:37: Warning: This binding for ‘x’ shadows the existing binding bound at Text/Hamlet/RT.hs:108:13 [ 7 of 17] Compiling Text.Shakespeare ( Text/Shakespeare.hs, dist/build/Text/Shakespeare.o ) [ 8 of 17] Compiling Text.Shakespeare.Text ( Text/Shakespeare/Text.hs, dist/build/Text/Shakespeare/Text.o ) [ 9 of 17] Compiling Text.Julius ( Text/Julius.hs, dist/build/Text/Julius.o )
Text/Julius.hs:90:63: Warning: In the use of ‘fromValue’ (imported from Data.Aeson.Encode): Deprecated: "Use 'encodeToTextBuilder' instead" [10 of 17] Compiling Text.Roy ( Text/Roy.hs, dist/build/Text/Roy.o ) [11 of 17] Compiling Text.Coffee ( Text/Coffee.hs, dist/build/Text/Coffee.o ) [12 of 17] Compiling Text.Css ( Text/Css.hs, dist/build/Text/Css.o )
Text/Css.hs:349:40: Warning: Defined but not used: ‘subblocks’
Text/Css.hs:367:5: Warning: Defined but not used: ‘subGo’ [13 of 17] Compiling Text.CssCommon ( Text/CssCommon.hs, dist/build/Text/CssCommon.o ) Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Loading package array-0.5.0.0 ... linking ... done. Loading package deepseq-1.3.0.2 ... linking ... done. Loading package filepath-1.3.0.2 ... linking ... done. Loading package old-locale-1.0.0.6 ... linking ... done. Loading package time-1.4.2 ... linking ... done. Loading package bytestring-0.10.4.0 ... linking ... done. Loading package unix-2.7.0.1 ... linking ... done. Loading package directory-1.2.1.0 ... linking ... done. Loading package process-1.2.0.0 ... linking ... done. Loading package transformers-0.3.0.0 ... linking ... done. Loading package mtl-2.1.3.1 ... linking ... done. Loading package text-1.1.0.0 ... linking ... done. Loading package parsec-3.1.5 ... <command line>: can't load .so/.DLL for: /Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib (dlopen(/Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib, 9): Library not loaded: @rpath/libHStext-1.1.0.0-ghc7.8.3.dylib Referenced from: /Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib Reason: image not found) Installed resourcet-1.1.5 Configuring wai-extra-3.0.7.1... Configuring conduit-1.2.4.2... Building conduit-1.2.4.2... Building wai-extra-3.0.7.1... Installed conduit-1.2.4.2 Configuring conduit-extra-1.1.9... Building conduit-extra-1.1.9... Configuring http-conduit-2.1.5... Installed wai-extra-3.0.7.1 Building http-conduit-2.1.5... Configuring yaml-0.8.11... Installed http-conduit-2.1.5 Building yaml-0.8.11... Installed conduit-extra-1.1.9 Configuring monad-logger-0.3.13.1... Building monad-logger-0.3.13.1... Configuring xml-conduit-1.3.0... Installed monad-logger-0.3.13.1 Building xml-conduit-1.3.0... Installed yaml-0.8.11 Configuring persistent-2.1.6... Building persistent-2.1.6... Installed xml-conduit-1.3.0 Configuring tagstream-conduit-0.5.5.3... Building tagstream-conduit-0.5.5.3... Installed tagstream-conduit-0.5.5.3 Configuring authenticate-1.3.2.11... Building authenticate-1.3.2.11... Installed authenticate-1.3.2.11 Installed persistent-2.1.6 Configuring persistent-template-2.1.3.3... Building persistent-template-2.1.3.3... Installed persistent-template-2.1.3.3 Updating documentation index /Users/msantos/Library/Haskell/share/doc/x86_64-osx-ghc-7.8.3/index.html cabal: Error: some packages failed to install: shakespeare-2.0.5 failed during the building phase. The exception was: ExitFailure 1 yesod-1.4.0 depends on shakespeare-2.0.5 which failed to install. yesod-auth-1.4.5 depends on shakespeare-2.0.5 which failed to install. yesod-core-1.4.9.1 depends on shakespeare-2.0.5 which failed to install. yesod-form-1.4.4.1 depends on shakespeare-2.0.5 which failed to install. yesod-persistent-1.4.0.2 depends on shakespeare-2.0.5 which failed to install.
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 4:16 PM, Christopher Allen
wrote: Some of that looks like churn from trying to install an older version of Yesod over a newer one. Are you using a sandbox? if so, did you wipe it out before attempting Yesod 1.2.6.1? What we'd be looking for is a package conflict that tells you which package of what version that is globally installed is causing the conflict.
Insta-Yesodian conflict implies you're reinstalling into a not-fresh packgage-db which means you either need to wipe your user package-db or use a sandbox. (I recommend the latter).
If you haven't done so, do that, then re-attempt that version of Yesod (1.2.6.1).
On Thu, Jun 18, 2015 at 2:57 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
Thanks! No problem. I gave a try to your suggestion. It doesn't look I'll get yesod installed without "paying" a bigger price than just "downgrading". :-/
Yesod 1.4.0 warns that forcing installing it will likely break pandoc, among other things. I can give it a try though, but I really use pandoc regularly. Plus, it's still not clear that the building process will not fail. And installing pandoc took me surprisingly a lot of time last time.
Forcing Yesod-1.2.6.1 won't allow cabal to satisfy the dependencies.
I guess I could keep trying other versions and see. But I think I'll try the 1.4.0 first. Will post here the results so that at least others may hopefully benefit from this.
----------------------------------------------------------------------------------------- msantos@MBP-2[15:42]:~/System$cabal install yesod-1.4.0 Resolving dependencies... In order, the following would be installed: monad-control-0.3.3.1 (latest: 1.0.0.4) (via: yesod-1.4.0 yesod-core-1.4.9.1 authenticate-1.3.2.11 xml-conduit-1.3.0 persistent-template-2.1.3.3 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-extra-1.1.9 resourcet-1.1.5 resource-pool-0.2.3.2 enclosed-exceptions-1.0.1.1 lifted-base-0.2.3.6) (new version) lifted-base-0.2.3.6 (via: yesod-auth-1.4.5 yesod-core-1.4.9.1 wai-extra-3.0.7.1 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-1.2.4.2 resourcet-1.1.5 enclosed-exceptions-1.0.1.1) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) enclosed-exceptions-1.0.1.1 (via: yaml-0.8.11) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) resource-pool-0.2.3.2 (via: yesod-persistent-1.4.0.2 persistent-2.1.6) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) resourcet-1.1.5 (via: yesod-auth-1.4.5 yesod-form-1.4.4.1 yesod-persistent-1.4.0.2 yesod-core-1.4.9.1 yaml-0.8.11 authenticate-1.3.2.11 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 wai-extra-3.0.7.1 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-extra-1.1.9 conduit-1.2.4.2) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) conduit-1.2.4.2 (via: yesod-auth-1.4.5 yesod-persistent-1.4.0.2 yesod-core-1.4.9.1 yaml-0.8.11 authenticate-1.3.2.11 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-extra-1.1.9) (reinstall) conduit-extra-1.1.9 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-core-1.4.9.1 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 monad-logger-0.3.13.1) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) http-conduit-2.1.5 (via: yesod-auth-1.4.5 authenticate-1.3.2.11) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) monad-logger-0.3.13.1 (via: yesod-1.4.0 yesod-core-1.4.9.1 persistent-template-2.1.3.3 persistent-2.1.6) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) persistent-2.1.6 (via: yesod-auth-1.4.5 yesod-form-1.4.4.1 yesod-persistent-1.4.0.2 persistent-template-2.1.3.3) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) persistent-template-2.1.3.3 (via: yesod-auth-1.4.5 yesod-persistent-1.4.0.2) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) shakespeare-2.0.5 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-form-1.4.4.1 yesod-core-1.4.9.1) (new package) wai-extra-3.0.7.1 (via: yesod-1.4.0 yesod-core-1.4.9.1) (reinstall) xml-conduit-1.3.0 (via: authenticate-1.3.2.11 tagstream-conduit-0.5.5.3) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) tagstream-conduit-0.5.5.3 (via: authenticate-1.3.2.11) (reinstall) authenticate-1.3.2.11 (via: yesod-auth-1.4.5) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) yaml-0.8.11 (via: yesod-1.4.0) (reinstall) yesod-core-1.4.9.1 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-form-1.4.4.1 yesod-persistent-1.4.0.2) (new package) yesod-persistent-1.4.0.2 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-form-1.4.4.1) (new package) yesod-form-1.4.4.1 (via: yesod-1.4.0 yesod-auth-1.4.5) (new package) yesod-auth-1.4.5 (via: yesod-1.4.0) (new package) yesod-1.4.0 (latest: 1.4.1.5) (new package) cabal: The following packages are likely to be broken by the reinstalls: pandoc-citeproc-0.7.1.1 pandoc-1.14.0.4 project-template-0.2.0 http-reverse-proxy-0.4.2 Use --force-reinstalls if you want to install anyway. msantos@MBP-2[15:42]:~/System$cabal install yesod-1.2.6.1 Resolving dependencies... cabal: Could not resolve dependencies: next goal: yesod (user goal) rejecting: yesod-1.4.1.5, 1.4.1.4, 1.4.1.3, 1.4.1.2, 1.4.1.1, 1.4.1, 1.4.0 (global constraint requires ==1.2.6.1) trying: yesod-1.2.6.1 trying: streaming-commons-0.1.12.1/installed-200... (dependency of yesod-1.2.6.1) trying: warp-3.0.13.1/installed-150... (dependency of yesod-1.2.6.1) next goal: yesod-form (dependency of yesod-1.2.6.1) rejecting: yesod-form-1.4.4.1, 1.4.4, 1.4.3.1, 1.4.3, 1.4.2.1, 1.4.2, 1.4.1.1, 1.4.1, 1.4.0.2, 1.4.0.1, 1.4.0 (conflict: yesod => yesod-form>=1.3 && <1.4) trying: yesod-form-1.3.16 next goal: persistent (dependency of yesod-form-1.3.16) rejecting: persistent-2.1.6/installed-4f9..., 2.1.6, 2.1.5, 2.1.4, 2.1.3, 2.1.2, 2.1.1.7, 2.1.1.6, 2.1.1.5, 2.1.1.4, 2.1.1.3, 2.1.1.2, 2.1.1.1, 2.1.1, 2.1.0.2, 2.1.0.1, 2.1 (conflict: yesod-form => persistent>=1.2 && <2.1) trying: persistent-1.3.3 trying: path-pieces-0.2.0/installed-533... (dependency of persistent-1.3.3) next goal: yesod-core (dependency of yesod-1.2.6.1) rejecting: yesod-core-1.4.9.1, 1.4.9, 1.4.8.3, 1.4.8.2, 1.4.8.1, 1.4.8, 1.4.7.3, 1.4.7.2, 1.4.7.1, 1.4.7, 1.4.6.2, 1.4.6.1, 1.4.6, 1.4.5, 1.4.4.5, 1.4.4.4, 1.4.4.3, 1.4.4.2, 1.4.4.1, 1.4.4, 1.4.3.1, 1.4.3, 1.4.2, 1.4.1.1, 1.4.1, 1.4.0.2, 1.4.0.1, 1.4.0 (conflict: yesod => yesod-core>=1.2.2 && <1.3) rejecting: yesod-core-1.2.20.1, 1.2.20, 1.2.19.2, 1.2.19.1, 1.2.19, 1.2.18, 1.2.17, 1.2.16.1, 1.2.16, 1.2.15.2, 1.2.15.1, 1.2.15, 1.2.14, 1.2.13.1, 1.2.13, 1.2.12, 1.2.11.1, 1.2.11, 1.2.10, 1.2.9.2, 1.2.9.1, 1.2.9, 1.2.8, 1.2.7, 1.2.6.7, 1.2.6.6, 1.2.6.5, 1.2.6.4, 1.2.6.3, 1.2.6.2, 1.2.6.1 (conflict: path-pieces==0.2.0/installed-533..., yesod-core => path-pieces>=0.1.2 && <0.2) rejecting: yesod-core-1.2.6 (conflict: streaming-commons => text==1.1.0.0/installed-9bd..., yesod-core => text>=0.7 && <0.12) rejecting: yesod-core-1.2.5, 1.2.4.5, 1.2.4.4, 1.2.4.3, 1.2.4.2, 1.2.4.1, 1.2.4, 1.2.3, 1.2.2 (conflict: warp => wai==3.0.2.3/installed-39c..., yesod-core => wai>=1.4 && <1.5) rejecting: yesod-core-1.2.1, 1.2.0.4, 1.2.0.3, 1.2.0.2, 1.2.0.1, 1.2.0, 1.1.8.3, 1.1.8.2, 1.1.8.1, 1.1.8, 1.1.7.2, 1.1.7.1, 1.1.7, 1.1.6.1, 1.1.6, 1.1.5, 1.1.4.2, 1.1.4.1, 1.1.4, 1.1.3.1, 1.1.3, 1.1.2.2, 1.1.2.1, 1.1.2, 1.1.1.2, 1.1.1.1, 1.1.1, 1.1.0.1, 1.1.0, 1.0.1.3, 1.0.1.2, 1.0.1.1, 1.0.1, 1.0.0.2, 1.0.0.1, 1.0.0, 0.10.3, 0.10.2.2, 0.10.2.1, 0.10.2, 0.10.1, 0.9.4.1, 0.9.4, 0.9.3.6, 0.9.3.5, 0.9.3.4, 0.9.3.3, 0.9.3.2, 0.9.3.1, 0.9.3, 0.9.2, 0.9.1.1, 0.9.1, 0.8.3.2, 0.8.3.1, 0.8.3, 0.8.2, 0.8.1, 0.8.0.1, 0.8.0, 0.7.0.2, 0.7.0.1, 0.7.0 (conflict: yesod => yesod-core>=1.2.2 && <1.3) Backjump limit reached (change with --max-backjumps).
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 3:32 PM, Christopher Allen
wrote: Ah that's frustrating, that's my mistake – I'm sorry. I thought you were talking about GHC for Mac OS X not being available for your OS version either.
Your best bet on HP is to specify an older version of Yesod that will work with the dependencies that your version of HP comes with.
On Thu, Jun 18, 2015 at 2:08 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
Indeed I saw that. That's what I meant with the bindist not being available for OSX 10.6.8; only for 10.7+ https://www.haskell.org/ghc/download_ghc_7_8_4#macosx_x86_64 My bad, I should have said it before.
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 2:36 PM, Christopher Allen
wrote: > Did you see that the Mac instructions said to follow the "other > *nix" instructions if you were using an older version of Mac OS X? > > Those link here: > https://www.haskell.org/ghc/download_ghc_7_8_4#binaries > > Get rid of all that (GHC, HP, Cabal), then install GHC using the > bindist for Mac OS X linked above. > > On Thu, Jun 18, 2015 at 1:14 PM, Miguel A. Santos < > miguel.a.santos.l@gmail.com> wrote: > >> That is obviously a typo: I meant I *did* do a fresh install of the >> Haskell Platform and cabal before >> trying -and failing- to install yesod. >> >> On Thu, Jun 18, 2015 at 1:38 PM, Miguel A. Santos < >> miguel.a.santos.l@gmail.com> wrote: >> >>> This corresponds to a fresh install of the HP, ghc, and cabal I >>> didn't before trying to install yesod. >>> >> >> >> -- >> Public key ID: E8FE60D7 >> Public key server: see, e.g., hkp://keys.gnupg.net >> >> _______________________________________________ >> Haskell-Cafe mailing list >> Haskell-Cafe@haskell.org >> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe >> >> > > > -- > Chris Allen > Currently working on http://haskellbook.com >
-- Chris Allen Currently working on http://haskellbook.com
-- Chris Allen Currently working on http://haskellbook.com
-- Chris Allen Currently working on http://haskellbook.com

I'm trying with mv ~/.ghc/ ~/.ghc-org cabal install yesod==1.2.6.1 the rm seemed to "harsh". That should work as well as the actual rm, won't it? I'll post the results in a little while. (I'm running other things and it's being a bit slow) -- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net On Thu, Jun 18, 2015 at 4:54 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
Hmm.. wouldn't that mean, I later have to reinstall all my packages? :-/
Meanwhile, I did try the sandbox way. It didn't work either. Briefly I issued cabal sandbox init and then cabal install yesod-1.2.6.1 Details below.
The initial complain about not being able to resolve dependencies makes me think I may be missing more things about working with sandboxes. Just checked
https://www.haskell.org/cabal/users-guide/installing-packages.html#developin... and guessed the init would be enough.
-------------------------------------------------------- msantos@MBP-2[16:38]:~/System/YESOD/Sandbox$cabal sandbox init Writing a default package environment file to /Users/msantos/System/YESOD/Sandbox/cabal.sandbox.config Creating a new sandbox at /Users/msantos/System/YESOD/Sandbox/.cabal-sandbox msantos@MBP-2[16:41]:~/System/YESOD/Sandbox$cabal install yesod-1.2.6.1 Resolving dependencies... cabal: Could not resolve dependencies: next goal: yesod (user goal) rejecting: yesod-1.4.1.5, 1.4.1.4, 1.4.1.3, 1.4.1.2, 1.4.1.1, 1.4.1, 1.4.0 (global constraint requires ==1.2.6.1) trying: yesod-1.2.6.1 trying: streaming-commons-0.1.12.1 (dependency of yesod-1.2.6.1) trying: network-2.4.2.3/installed-575... (dependency of streaming-commons-0.1.12.1) trying: parsec-3.1.5/installed-04a... (dependency of network-2.4.2.3/installed-575...) trying: mtl-2.1.3.1/installed-8bc... (dependency of parsec-3.1.5/installed-04a...) trying: shakespeare-2.0.5 (dependency of yesod-1.2.6.1) trying: exceptions-0.8.0.2 (dependency of shakespeare-2.0.5) trying: transformers-compat-0.4.0.4 (dependency of exceptions-0.8.0.2) trying: transformers-compat-0.4.0.4:-two rejecting: transformers-compat-0.4.0.4:-three (conflict: mtl => transformers==0.3.0.0/installed-16a..., transformers-compat-0.4.0.4:three => transformers>=0.4.1 && <0.5) rejecting: transformers-compat-0.4.0.4:+three (manual flag can only be changed explicitly) Backjump limit reached (change with --max-backjumps).
Note: when using a sandbox, all packages are required to have consistent dependencies. Try reinstalling/unregistering the offending packages or recreating the sandbox.
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 4:46 PM, Christopher Allen
wrote: If you won't use a sandbox, then lets nuke your user package-db and start from scratch:
rm -rf ~/.ghc cabal install yesod==1.2.6.1
On Thu, Jun 18, 2015 at 3:28 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
I haven't yet read how to use sandboxes, so, no, that I tried just like that cabal install... I did check first that cabal info yesod was saying I didn't have it install. But now that you mention it, I did may have had other packages lingering around from my last attempt of installing yesod.
Meanwhile I did run forcing the install of 1.4.0... Ah, it finished with cabal install --force-reinstalls yesod-1.4.0 and... it complains about the shakespeare.
"shakespeare-2.0.5 failed during the building phase. The exception was: ExitFailure 1"
Below the full output.
I'll give a try to the sandbox solution.
------------------------------------------------ msantos@MBP-2[16:09]:~/System/YESOD$cabal install --force-reinstalls yesod-1.4.0 Resolving dependencies... Warning: The following packages are likely to be broken by the reinstalls: pandoc-citeproc-0.7.1.1 pandoc-1.14.0.4 project-template-0.2.0 http-reverse-proxy-0.4.2 Continuing even though the plan contains dangerous reinstalls. Downloading monad-control-0.3.3.1... Configuring shakespeare-2.0.5... Configuring monad-control-0.3.3.1... Building monad-control-0.3.3.1... Building shakespeare-2.0.5... Installed monad-control-0.3.3.1 Configuring lifted-base-0.2.3.6... Building lifted-base-0.2.3.6... Configuring resource-pool-0.2.3.2... Installed lifted-base-0.2.3.6 Building resource-pool-0.2.3.2... Installed resource-pool-0.2.3.2 Configuring enclosed-exceptions-1.0.1.1... Building enclosed-exceptions-1.0.1.1... Configuring resourcet-1.1.5... Installed enclosed-exceptions-1.0.1.1 Building resourcet-1.1.5... Failed to install shakespeare-2.0.5 Build log ( /Users/msantos/.cabal/logs/shakespeare-2.0.5.log ): Configuring shakespeare-2.0.5... Building shakespeare-2.0.5... Preprocessing library shakespeare-2.0.5... [ 1 of 17] Compiling Text.MkSizeType ( Text/MkSizeType.hs, dist/build/Text/MkSizeType.o ) [ 2 of 17] Compiling Text.IndentToBrace ( Text/IndentToBrace.hs, dist/build/Text/IndentToBrace.o ) [ 3 of 17] Compiling Text.Shakespeare.Base ( Text/Shakespeare/Base.hs, dist/build/Text/Shakespeare/Base.o ) [ 4 of 17] Compiling Text.Hamlet.Parse ( Text/Hamlet/Parse.hs, dist/build/Text/Hamlet/Parse.o ) [ 5 of 17] Compiling Text.Hamlet ( Text/Hamlet.hs, dist/build/Text/Hamlet.o )
Text/Hamlet.hs:402:1: Warning: Defined but not used: ‘varName’
Text/Hamlet.hs:406:1: Warning: Defined but not used: ‘strToExp’
Text/Hamlet.hs:439:16: Warning: Defined but not used: ‘html’
Text/Hamlet.hs:440:14: Warning: Defined but not used: ‘url’
Text/Hamlet.hs:441:19: Warning: Defined but not used: ‘url’
Text/Hamlet.hs:442:16: Warning: Defined but not used: ‘url’
Text/Hamlet.hs:443:20: Warning: Defined but not used: ‘msg_url’
Text/Hamlet.hs:444:14: Warning: Defined but not used: ‘msg’
Text/Hamlet.hs:488:43: Warning: This binding for ‘c’ shadows the existing binding bound at Text/Hamlet.hs:484:13 [ 6 of 17] Compiling Text.Hamlet.RT ( Text/Hamlet/RT.hs, dist/build/Text/Hamlet/RT.o )
Text/Hamlet/RT.hs:78:13: Warning: Defined but not used: ‘x’
Text/Hamlet/RT.hs:78:26: Warning: Defined but not used: ‘deref’
Text/Hamlet/RT.hs:78:45: Warning: Defined but not used: ‘docs’
Text/Hamlet/RT.hs:85:13: Warning: Defined but not used: ‘x’
Text/Hamlet/RT.hs:85:25: Warning: Defined but not used: ‘deref’
Text/Hamlet/RT.hs:85:44: Warning: Defined but not used: ‘jdocs’
Text/Hamlet/RT.hs:85:50: Warning: Defined but not used: ‘ndocs’
Text/Hamlet/RT.hs:115:37: Warning: This binding for ‘x’ shadows the existing binding bound at Text/Hamlet/RT.hs:108:13 [ 7 of 17] Compiling Text.Shakespeare ( Text/Shakespeare.hs, dist/build/Text/Shakespeare.o ) [ 8 of 17] Compiling Text.Shakespeare.Text ( Text/Shakespeare/Text.hs, dist/build/Text/Shakespeare/Text.o ) [ 9 of 17] Compiling Text.Julius ( Text/Julius.hs, dist/build/Text/Julius.o )
Text/Julius.hs:90:63: Warning: In the use of ‘fromValue’ (imported from Data.Aeson.Encode): Deprecated: "Use 'encodeToTextBuilder' instead" [10 of 17] Compiling Text.Roy ( Text/Roy.hs, dist/build/Text/Roy.o ) [11 of 17] Compiling Text.Coffee ( Text/Coffee.hs, dist/build/Text/Coffee.o ) [12 of 17] Compiling Text.Css ( Text/Css.hs, dist/build/Text/Css.o )
Text/Css.hs:349:40: Warning: Defined but not used: ‘subblocks’
Text/Css.hs:367:5: Warning: Defined but not used: ‘subGo’ [13 of 17] Compiling Text.CssCommon ( Text/CssCommon.hs, dist/build/Text/CssCommon.o ) Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Loading package array-0.5.0.0 ... linking ... done. Loading package deepseq-1.3.0.2 ... linking ... done. Loading package filepath-1.3.0.2 ... linking ... done. Loading package old-locale-1.0.0.6 ... linking ... done. Loading package time-1.4.2 ... linking ... done. Loading package bytestring-0.10.4.0 ... linking ... done. Loading package unix-2.7.0.1 ... linking ... done. Loading package directory-1.2.1.0 ... linking ... done. Loading package process-1.2.0.0 ... linking ... done. Loading package transformers-0.3.0.0 ... linking ... done. Loading package mtl-2.1.3.1 ... linking ... done. Loading package text-1.1.0.0 ... linking ... done. Loading package parsec-3.1.5 ... <command line>: can't load .so/.DLL for: /Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib (dlopen(/Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib, 9): Library not loaded: @rpath/libHStext-1.1.0.0-ghc7.8.3.dylib Referenced from: /Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib Reason: image not found) Installed resourcet-1.1.5 Configuring wai-extra-3.0.7.1... Configuring conduit-1.2.4.2... Building conduit-1.2.4.2... Building wai-extra-3.0.7.1... Installed conduit-1.2.4.2 Configuring conduit-extra-1.1.9... Building conduit-extra-1.1.9... Configuring http-conduit-2.1.5... Installed wai-extra-3.0.7.1 Building http-conduit-2.1.5... Configuring yaml-0.8.11... Installed http-conduit-2.1.5 Building yaml-0.8.11... Installed conduit-extra-1.1.9 Configuring monad-logger-0.3.13.1... Building monad-logger-0.3.13.1... Configuring xml-conduit-1.3.0... Installed monad-logger-0.3.13.1 Building xml-conduit-1.3.0... Installed yaml-0.8.11 Configuring persistent-2.1.6... Building persistent-2.1.6... Installed xml-conduit-1.3.0 Configuring tagstream-conduit-0.5.5.3... Building tagstream-conduit-0.5.5.3... Installed tagstream-conduit-0.5.5.3 Configuring authenticate-1.3.2.11... Building authenticate-1.3.2.11... Installed authenticate-1.3.2.11 Installed persistent-2.1.6 Configuring persistent-template-2.1.3.3... Building persistent-template-2.1.3.3... Installed persistent-template-2.1.3.3 Updating documentation index /Users/msantos/Library/Haskell/share/doc/x86_64-osx-ghc-7.8.3/index.html cabal: Error: some packages failed to install: shakespeare-2.0.5 failed during the building phase. The exception was: ExitFailure 1 yesod-1.4.0 depends on shakespeare-2.0.5 which failed to install. yesod-auth-1.4.5 depends on shakespeare-2.0.5 which failed to install. yesod-core-1.4.9.1 depends on shakespeare-2.0.5 which failed to install. yesod-form-1.4.4.1 depends on shakespeare-2.0.5 which failed to install. yesod-persistent-1.4.0.2 depends on shakespeare-2.0.5 which failed to install.
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 4:16 PM, Christopher Allen
wrote: Some of that looks like churn from trying to install an older version of Yesod over a newer one. Are you using a sandbox? if so, did you wipe it out before attempting Yesod 1.2.6.1? What we'd be looking for is a package conflict that tells you which package of what version that is globally installed is causing the conflict.
Insta-Yesodian conflict implies you're reinstalling into a not-fresh packgage-db which means you either need to wipe your user package-db or use a sandbox. (I recommend the latter).
If you haven't done so, do that, then re-attempt that version of Yesod (1.2.6.1).
On Thu, Jun 18, 2015 at 2:57 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
Thanks! No problem. I gave a try to your suggestion. It doesn't look I'll get yesod installed without "paying" a bigger price than just "downgrading". :-/
Yesod 1.4.0 warns that forcing installing it will likely break pandoc, among other things. I can give it a try though, but I really use pandoc regularly. Plus, it's still not clear that the building process will not fail. And installing pandoc took me surprisingly a lot of time last time.
Forcing Yesod-1.2.6.1 won't allow cabal to satisfy the dependencies.
I guess I could keep trying other versions and see. But I think I'll try the 1.4.0 first. Will post here the results so that at least others may hopefully benefit from this.
----------------------------------------------------------------------------------------- msantos@MBP-2[15:42]:~/System$cabal install yesod-1.4.0 Resolving dependencies... In order, the following would be installed: monad-control-0.3.3.1 (latest: 1.0.0.4) (via: yesod-1.4.0 yesod-core-1.4.9.1 authenticate-1.3.2.11 xml-conduit-1.3.0 persistent-template-2.1.3.3 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-extra-1.1.9 resourcet-1.1.5 resource-pool-0.2.3.2 enclosed-exceptions-1.0.1.1 lifted-base-0.2.3.6) (new version) lifted-base-0.2.3.6 (via: yesod-auth-1.4.5 yesod-core-1.4.9.1 wai-extra-3.0.7.1 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-1.2.4.2 resourcet-1.1.5 enclosed-exceptions-1.0.1.1) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) enclosed-exceptions-1.0.1.1 (via: yaml-0.8.11) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) resource-pool-0.2.3.2 (via: yesod-persistent-1.4.0.2 persistent-2.1.6) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) resourcet-1.1.5 (via: yesod-auth-1.4.5 yesod-form-1.4.4.1 yesod-persistent-1.4.0.2 yesod-core-1.4.9.1 yaml-0.8.11 authenticate-1.3.2.11 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 wai-extra-3.0.7.1 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-extra-1.1.9 conduit-1.2.4.2) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) conduit-1.2.4.2 (via: yesod-auth-1.4.5 yesod-persistent-1.4.0.2 yesod-core-1.4.9.1 yaml-0.8.11 authenticate-1.3.2.11 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-extra-1.1.9) (reinstall) conduit-extra-1.1.9 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-core-1.4.9.1 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 monad-logger-0.3.13.1) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) http-conduit-2.1.5 (via: yesod-auth-1.4.5 authenticate-1.3.2.11) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) monad-logger-0.3.13.1 (via: yesod-1.4.0 yesod-core-1.4.9.1 persistent-template-2.1.3.3 persistent-2.1.6) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) persistent-2.1.6 (via: yesod-auth-1.4.5 yesod-form-1.4.4.1 yesod-persistent-1.4.0.2 persistent-template-2.1.3.3) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) persistent-template-2.1.3.3 (via: yesod-auth-1.4.5 yesod-persistent-1.4.0.2) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) shakespeare-2.0.5 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-form-1.4.4.1 yesod-core-1.4.9.1) (new package) wai-extra-3.0.7.1 (via: yesod-1.4.0 yesod-core-1.4.9.1) (reinstall) xml-conduit-1.3.0 (via: authenticate-1.3.2.11 tagstream-conduit-0.5.5.3) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) tagstream-conduit-0.5.5.3 (via: authenticate-1.3.2.11) (reinstall) authenticate-1.3.2.11 (via: yesod-auth-1.4.5) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) yaml-0.8.11 (via: yesod-1.4.0) (reinstall) yesod-core-1.4.9.1 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-form-1.4.4.1 yesod-persistent-1.4.0.2) (new package) yesod-persistent-1.4.0.2 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-form-1.4.4.1) (new package) yesod-form-1.4.4.1 (via: yesod-1.4.0 yesod-auth-1.4.5) (new package) yesod-auth-1.4.5 (via: yesod-1.4.0) (new package) yesod-1.4.0 (latest: 1.4.1.5) (new package) cabal: The following packages are likely to be broken by the reinstalls: pandoc-citeproc-0.7.1.1 pandoc-1.14.0.4 project-template-0.2.0 http-reverse-proxy-0.4.2 Use --force-reinstalls if you want to install anyway. msantos@MBP-2[15:42]:~/System$cabal install yesod-1.2.6.1 Resolving dependencies... cabal: Could not resolve dependencies: next goal: yesod (user goal) rejecting: yesod-1.4.1.5, 1.4.1.4, 1.4.1.3, 1.4.1.2, 1.4.1.1, 1.4.1, 1.4.0 (global constraint requires ==1.2.6.1) trying: yesod-1.2.6.1 trying: streaming-commons-0.1.12.1/installed-200... (dependency of yesod-1.2.6.1) trying: warp-3.0.13.1/installed-150... (dependency of yesod-1.2.6.1) next goal: yesod-form (dependency of yesod-1.2.6.1) rejecting: yesod-form-1.4.4.1, 1.4.4, 1.4.3.1, 1.4.3, 1.4.2.1, 1.4.2, 1.4.1.1, 1.4.1, 1.4.0.2, 1.4.0.1, 1.4.0 (conflict: yesod => yesod-form>=1.3 && <1.4) trying: yesod-form-1.3.16 next goal: persistent (dependency of yesod-form-1.3.16) rejecting: persistent-2.1.6/installed-4f9..., 2.1.6, 2.1.5, 2.1.4, 2.1.3, 2.1.2, 2.1.1.7, 2.1.1.6, 2.1.1.5, 2.1.1.4, 2.1.1.3, 2.1.1.2, 2.1.1.1, 2.1.1, 2.1.0.2, 2.1.0.1, 2.1 (conflict: yesod-form => persistent>=1.2 && <2.1) trying: persistent-1.3.3 trying: path-pieces-0.2.0/installed-533... (dependency of persistent-1.3.3) next goal: yesod-core (dependency of yesod-1.2.6.1) rejecting: yesod-core-1.4.9.1, 1.4.9, 1.4.8.3, 1.4.8.2, 1.4.8.1, 1.4.8, 1.4.7.3, 1.4.7.2, 1.4.7.1, 1.4.7, 1.4.6.2, 1.4.6.1, 1.4.6, 1.4.5, 1.4.4.5, 1.4.4.4, 1.4.4.3, 1.4.4.2, 1.4.4.1, 1.4.4, 1.4.3.1, 1.4.3, 1.4.2, 1.4.1.1, 1.4.1, 1.4.0.2, 1.4.0.1, 1.4.0 (conflict: yesod => yesod-core>=1.2.2 && <1.3) rejecting: yesod-core-1.2.20.1, 1.2.20, 1.2.19.2, 1.2.19.1, 1.2.19, 1.2.18, 1.2.17, 1.2.16.1, 1.2.16, 1.2.15.2, 1.2.15.1, 1.2.15, 1.2.14, 1.2.13.1, 1.2.13, 1.2.12, 1.2.11.1, 1.2.11, 1.2.10, 1.2.9.2, 1.2.9.1, 1.2.9, 1.2.8, 1.2.7, 1.2.6.7, 1.2.6.6, 1.2.6.5, 1.2.6.4, 1.2.6.3, 1.2.6.2, 1.2.6.1 (conflict: path-pieces==0.2.0/installed-533..., yesod-core => path-pieces>=0.1.2 && <0.2) rejecting: yesod-core-1.2.6 (conflict: streaming-commons => text==1.1.0.0/installed-9bd..., yesod-core => text>=0.7 && <0.12) rejecting: yesod-core-1.2.5, 1.2.4.5, 1.2.4.4, 1.2.4.3, 1.2.4.2, 1.2.4.1, 1.2.4, 1.2.3, 1.2.2 (conflict: warp => wai==3.0.2.3/installed-39c..., yesod-core => wai>=1.4 && <1.5) rejecting: yesod-core-1.2.1, 1.2.0.4, 1.2.0.3, 1.2.0.2, 1.2.0.1, 1.2.0, 1.1.8.3, 1.1.8.2, 1.1.8.1, 1.1.8, 1.1.7.2, 1.1.7.1, 1.1.7, 1.1.6.1, 1.1.6, 1.1.5, 1.1.4.2, 1.1.4.1, 1.1.4, 1.1.3.1, 1.1.3, 1.1.2.2, 1.1.2.1, 1.1.2, 1.1.1.2, 1.1.1.1, 1.1.1, 1.1.0.1, 1.1.0, 1.0.1.3, 1.0.1.2, 1.0.1.1, 1.0.1, 1.0.0.2, 1.0.0.1, 1.0.0, 0.10.3, 0.10.2.2, 0.10.2.1, 0.10.2, 0.10.1, 0.9.4.1, 0.9.4, 0.9.3.6, 0.9.3.5, 0.9.3.4, 0.9.3.3, 0.9.3.2, 0.9.3.1, 0.9.3, 0.9.2, 0.9.1.1, 0.9.1, 0.8.3.2, 0.8.3.1, 0.8.3, 0.8.2, 0.8.1, 0.8.0.1, 0.8.0, 0.7.0.2, 0.7.0.1, 0.7.0 (conflict: yesod => yesod-core>=1.2.2 && <1.3) Backjump limit reached (change with --max-backjumps).
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 3:32 PM, Christopher Allen
wrote: Ah that's frustrating, that's my mistake – I'm sorry. I thought you were talking about GHC for Mac OS X not being available for your OS version either.
Your best bet on HP is to specify an older version of Yesod that will work with the dependencies that your version of HP comes with.
On Thu, Jun 18, 2015 at 2:08 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
> Indeed I saw that. That's what I meant with the bindist not being > available for OSX 10.6.8; only for 10.7+ > https://www.haskell.org/ghc/download_ghc_7_8_4#macosx_x86_64 > My bad, I should have said it before. > > > > -- > Public key ID: E8FE60D7 > Public key server: see, e.g., hkp://keys.gnupg.net > > On Thu, Jun 18, 2015 at 2:36 PM, Christopher Allen < > cma@bitemyapp.com> wrote: > >> Did you see that the Mac instructions said to follow the "other >> *nix" instructions if you were using an older version of Mac OS X? >> >> Those link here: >> https://www.haskell.org/ghc/download_ghc_7_8_4#binaries >> >> Get rid of all that (GHC, HP, Cabal), then install GHC using the >> bindist for Mac OS X linked above. >> >> On Thu, Jun 18, 2015 at 1:14 PM, Miguel A. Santos < >> miguel.a.santos.l@gmail.com> wrote: >> >>> That is obviously a typo: I meant I *did* do a fresh install of >>> the Haskell Platform and cabal before >>> trying -and failing- to install yesod. >>> >>> On Thu, Jun 18, 2015 at 1:38 PM, Miguel A. Santos < >>> miguel.a.santos.l@gmail.com> wrote: >>> >>>> This corresponds to a fresh install of the HP, ghc, and cabal I >>>> didn't before trying to install yesod. >>>> >>> >>> >>> -- >>> Public key ID: E8FE60D7 >>> Public key server: see, e.g., hkp://keys.gnupg.net >>> >>> _______________________________________________ >>> Haskell-Cafe mailing list >>> Haskell-Cafe@haskell.org >>> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe >>> >>> >> >> >> -- >> Chris Allen >> Currently working on http://haskellbook.com >> > >
-- Chris Allen Currently working on http://haskellbook.com
-- Chris Allen Currently working on http://haskellbook.com
-- Chris Allen Currently working on http://haskellbook.com

You don't need to rm -rf ~/.ghc if you're using a sandbox. The sandbox (usually) occludes the user package-db. Well, the sandbox may not have fixed the incompatibility of HP and that particular version of Yesod, but we're better information from the dependency solver. That said, this is going to simply require a lot of trial and error if you want to try this approach and me telling you increment/decrement versions isn't going to be any faster. I'd say your best options are: 1. Upgrade your installation of Mac OS X so you can use the vanilla GHC bindist, or even better, GHC for Mac OS X 2. Use your copy of Haskell Platform to build GHC from source and use that instead of GHC (possibly a quagmire, might work out okay. Will take a long time to build.) 3. Unregister all the unnecessary packages from your global package-db. Listing here: https://www.haskell.org/platform/changelog.html (Additional Platform Libraries, do *not* uninstall any of the core libraries) If you make a mistake you may need to reinstall Platform. 4. Give passing --allow-newer to cabal install a shot. This is rough. Not that many people on <10.7 OS X versions so there aren't enough squeaky wheels for this sort of thing. Sorry I couldn't do more. On Thu, Jun 18, 2015 at 3:54 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
Hmm.. wouldn't that mean, I later have to reinstall all my packages? :-/
Meanwhile, I did try the sandbox way. It didn't work either. Briefly I issued cabal sandbox init and then cabal install yesod-1.2.6.1 Details below.
The initial complain about not being able to resolve dependencies makes me think I may be missing more things about working with sandboxes. Just checked
https://www.haskell.org/cabal/users-guide/installing-packages.html#developin... and guessed the init would be enough.
-------------------------------------------------------- msantos@MBP-2[16:38]:~/System/YESOD/Sandbox$cabal sandbox init Writing a default package environment file to /Users/msantos/System/YESOD/Sandbox/cabal.sandbox.config Creating a new sandbox at /Users/msantos/System/YESOD/Sandbox/.cabal-sandbox msantos@MBP-2[16:41]:~/System/YESOD/Sandbox$cabal install yesod-1.2.6.1 Resolving dependencies... cabal: Could not resolve dependencies: next goal: yesod (user goal) rejecting: yesod-1.4.1.5, 1.4.1.4, 1.4.1.3, 1.4.1.2, 1.4.1.1, 1.4.1, 1.4.0 (global constraint requires ==1.2.6.1) trying: yesod-1.2.6.1 trying: streaming-commons-0.1.12.1 (dependency of yesod-1.2.6.1) trying: network-2.4.2.3/installed-575... (dependency of streaming-commons-0.1.12.1) trying: parsec-3.1.5/installed-04a... (dependency of network-2.4.2.3/installed-575...) trying: mtl-2.1.3.1/installed-8bc... (dependency of parsec-3.1.5/installed-04a...) trying: shakespeare-2.0.5 (dependency of yesod-1.2.6.1) trying: exceptions-0.8.0.2 (dependency of shakespeare-2.0.5) trying: transformers-compat-0.4.0.4 (dependency of exceptions-0.8.0.2) trying: transformers-compat-0.4.0.4:-two rejecting: transformers-compat-0.4.0.4:-three (conflict: mtl => transformers==0.3.0.0/installed-16a..., transformers-compat-0.4.0.4:three => transformers>=0.4.1 && <0.5) rejecting: transformers-compat-0.4.0.4:+three (manual flag can only be changed explicitly) Backjump limit reached (change with --max-backjumps).
Note: when using a sandbox, all packages are required to have consistent dependencies. Try reinstalling/unregistering the offending packages or recreating the sandbox.
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 4:46 PM, Christopher Allen
wrote: If you won't use a sandbox, then lets nuke your user package-db and start from scratch:
rm -rf ~/.ghc cabal install yesod==1.2.6.1
On Thu, Jun 18, 2015 at 3:28 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
I haven't yet read how to use sandboxes, so, no, that I tried just like that cabal install... I did check first that cabal info yesod was saying I didn't have it install. But now that you mention it, I did may have had other packages lingering around from my last attempt of installing yesod.
Meanwhile I did run forcing the install of 1.4.0... Ah, it finished with cabal install --force-reinstalls yesod-1.4.0 and... it complains about the shakespeare.
"shakespeare-2.0.5 failed during the building phase. The exception was: ExitFailure 1"
Below the full output.
I'll give a try to the sandbox solution.
------------------------------------------------ msantos@MBP-2[16:09]:~/System/YESOD$cabal install --force-reinstalls yesod-1.4.0 Resolving dependencies... Warning: The following packages are likely to be broken by the reinstalls: pandoc-citeproc-0.7.1.1 pandoc-1.14.0.4 project-template-0.2.0 http-reverse-proxy-0.4.2 Continuing even though the plan contains dangerous reinstalls. Downloading monad-control-0.3.3.1... Configuring shakespeare-2.0.5... Configuring monad-control-0.3.3.1... Building monad-control-0.3.3.1... Building shakespeare-2.0.5... Installed monad-control-0.3.3.1 Configuring lifted-base-0.2.3.6... Building lifted-base-0.2.3.6... Configuring resource-pool-0.2.3.2... Installed lifted-base-0.2.3.6 Building resource-pool-0.2.3.2... Installed resource-pool-0.2.3.2 Configuring enclosed-exceptions-1.0.1.1... Building enclosed-exceptions-1.0.1.1... Configuring resourcet-1.1.5... Installed enclosed-exceptions-1.0.1.1 Building resourcet-1.1.5... Failed to install shakespeare-2.0.5 Build log ( /Users/msantos/.cabal/logs/shakespeare-2.0.5.log ): Configuring shakespeare-2.0.5... Building shakespeare-2.0.5... Preprocessing library shakespeare-2.0.5... [ 1 of 17] Compiling Text.MkSizeType ( Text/MkSizeType.hs, dist/build/Text/MkSizeType.o ) [ 2 of 17] Compiling Text.IndentToBrace ( Text/IndentToBrace.hs, dist/build/Text/IndentToBrace.o ) [ 3 of 17] Compiling Text.Shakespeare.Base ( Text/Shakespeare/Base.hs, dist/build/Text/Shakespeare/Base.o ) [ 4 of 17] Compiling Text.Hamlet.Parse ( Text/Hamlet/Parse.hs, dist/build/Text/Hamlet/Parse.o ) [ 5 of 17] Compiling Text.Hamlet ( Text/Hamlet.hs, dist/build/Text/Hamlet.o )
Text/Hamlet.hs:402:1: Warning: Defined but not used: ‘varName’
Text/Hamlet.hs:406:1: Warning: Defined but not used: ‘strToExp’
Text/Hamlet.hs:439:16: Warning: Defined but not used: ‘html’
Text/Hamlet.hs:440:14: Warning: Defined but not used: ‘url’
Text/Hamlet.hs:441:19: Warning: Defined but not used: ‘url’
Text/Hamlet.hs:442:16: Warning: Defined but not used: ‘url’
Text/Hamlet.hs:443:20: Warning: Defined but not used: ‘msg_url’
Text/Hamlet.hs:444:14: Warning: Defined but not used: ‘msg’
Text/Hamlet.hs:488:43: Warning: This binding for ‘c’ shadows the existing binding bound at Text/Hamlet.hs:484:13 [ 6 of 17] Compiling Text.Hamlet.RT ( Text/Hamlet/RT.hs, dist/build/Text/Hamlet/RT.o )
Text/Hamlet/RT.hs:78:13: Warning: Defined but not used: ‘x’
Text/Hamlet/RT.hs:78:26: Warning: Defined but not used: ‘deref’
Text/Hamlet/RT.hs:78:45: Warning: Defined but not used: ‘docs’
Text/Hamlet/RT.hs:85:13: Warning: Defined but not used: ‘x’
Text/Hamlet/RT.hs:85:25: Warning: Defined but not used: ‘deref’
Text/Hamlet/RT.hs:85:44: Warning: Defined but not used: ‘jdocs’
Text/Hamlet/RT.hs:85:50: Warning: Defined but not used: ‘ndocs’
Text/Hamlet/RT.hs:115:37: Warning: This binding for ‘x’ shadows the existing binding bound at Text/Hamlet/RT.hs:108:13 [ 7 of 17] Compiling Text.Shakespeare ( Text/Shakespeare.hs, dist/build/Text/Shakespeare.o ) [ 8 of 17] Compiling Text.Shakespeare.Text ( Text/Shakespeare/Text.hs, dist/build/Text/Shakespeare/Text.o ) [ 9 of 17] Compiling Text.Julius ( Text/Julius.hs, dist/build/Text/Julius.o )
Text/Julius.hs:90:63: Warning: In the use of ‘fromValue’ (imported from Data.Aeson.Encode): Deprecated: "Use 'encodeToTextBuilder' instead" [10 of 17] Compiling Text.Roy ( Text/Roy.hs, dist/build/Text/Roy.o ) [11 of 17] Compiling Text.Coffee ( Text/Coffee.hs, dist/build/Text/Coffee.o ) [12 of 17] Compiling Text.Css ( Text/Css.hs, dist/build/Text/Css.o )
Text/Css.hs:349:40: Warning: Defined but not used: ‘subblocks’
Text/Css.hs:367:5: Warning: Defined but not used: ‘subGo’ [13 of 17] Compiling Text.CssCommon ( Text/CssCommon.hs, dist/build/Text/CssCommon.o ) Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Loading package array-0.5.0.0 ... linking ... done. Loading package deepseq-1.3.0.2 ... linking ... done. Loading package filepath-1.3.0.2 ... linking ... done. Loading package old-locale-1.0.0.6 ... linking ... done. Loading package time-1.4.2 ... linking ... done. Loading package bytestring-0.10.4.0 ... linking ... done. Loading package unix-2.7.0.1 ... linking ... done. Loading package directory-1.2.1.0 ... linking ... done. Loading package process-1.2.0.0 ... linking ... done. Loading package transformers-0.3.0.0 ... linking ... done. Loading package mtl-2.1.3.1 ... linking ... done. Loading package text-1.1.0.0 ... linking ... done. Loading package parsec-3.1.5 ... <command line>: can't load .so/.DLL for: /Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib (dlopen(/Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib, 9): Library not loaded: @rpath/libHStext-1.1.0.0-ghc7.8.3.dylib Referenced from: /Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib Reason: image not found) Installed resourcet-1.1.5 Configuring wai-extra-3.0.7.1... Configuring conduit-1.2.4.2... Building conduit-1.2.4.2... Building wai-extra-3.0.7.1... Installed conduit-1.2.4.2 Configuring conduit-extra-1.1.9... Building conduit-extra-1.1.9... Configuring http-conduit-2.1.5... Installed wai-extra-3.0.7.1 Building http-conduit-2.1.5... Configuring yaml-0.8.11... Installed http-conduit-2.1.5 Building yaml-0.8.11... Installed conduit-extra-1.1.9 Configuring monad-logger-0.3.13.1... Building monad-logger-0.3.13.1... Configuring xml-conduit-1.3.0... Installed monad-logger-0.3.13.1 Building xml-conduit-1.3.0... Installed yaml-0.8.11 Configuring persistent-2.1.6... Building persistent-2.1.6... Installed xml-conduit-1.3.0 Configuring tagstream-conduit-0.5.5.3... Building tagstream-conduit-0.5.5.3... Installed tagstream-conduit-0.5.5.3 Configuring authenticate-1.3.2.11... Building authenticate-1.3.2.11... Installed authenticate-1.3.2.11 Installed persistent-2.1.6 Configuring persistent-template-2.1.3.3... Building persistent-template-2.1.3.3... Installed persistent-template-2.1.3.3 Updating documentation index /Users/msantos/Library/Haskell/share/doc/x86_64-osx-ghc-7.8.3/index.html cabal: Error: some packages failed to install: shakespeare-2.0.5 failed during the building phase. The exception was: ExitFailure 1 yesod-1.4.0 depends on shakespeare-2.0.5 which failed to install. yesod-auth-1.4.5 depends on shakespeare-2.0.5 which failed to install. yesod-core-1.4.9.1 depends on shakespeare-2.0.5 which failed to install. yesod-form-1.4.4.1 depends on shakespeare-2.0.5 which failed to install. yesod-persistent-1.4.0.2 depends on shakespeare-2.0.5 which failed to install.
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 4:16 PM, Christopher Allen
wrote: Some of that looks like churn from trying to install an older version of Yesod over a newer one. Are you using a sandbox? if so, did you wipe it out before attempting Yesod 1.2.6.1? What we'd be looking for is a package conflict that tells you which package of what version that is globally installed is causing the conflict.
Insta-Yesodian conflict implies you're reinstalling into a not-fresh packgage-db which means you either need to wipe your user package-db or use a sandbox. (I recommend the latter).
If you haven't done so, do that, then re-attempt that version of Yesod (1.2.6.1).
On Thu, Jun 18, 2015 at 2:57 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
Thanks! No problem. I gave a try to your suggestion. It doesn't look I'll get yesod installed without "paying" a bigger price than just "downgrading". :-/
Yesod 1.4.0 warns that forcing installing it will likely break pandoc, among other things. I can give it a try though, but I really use pandoc regularly. Plus, it's still not clear that the building process will not fail. And installing pandoc took me surprisingly a lot of time last time.
Forcing Yesod-1.2.6.1 won't allow cabal to satisfy the dependencies.
I guess I could keep trying other versions and see. But I think I'll try the 1.4.0 first. Will post here the results so that at least others may hopefully benefit from this.
----------------------------------------------------------------------------------------- msantos@MBP-2[15:42]:~/System$cabal install yesod-1.4.0 Resolving dependencies... In order, the following would be installed: monad-control-0.3.3.1 (latest: 1.0.0.4) (via: yesod-1.4.0 yesod-core-1.4.9.1 authenticate-1.3.2.11 xml-conduit-1.3.0 persistent-template-2.1.3.3 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-extra-1.1.9 resourcet-1.1.5 resource-pool-0.2.3.2 enclosed-exceptions-1.0.1.1 lifted-base-0.2.3.6) (new version) lifted-base-0.2.3.6 (via: yesod-auth-1.4.5 yesod-core-1.4.9.1 wai-extra-3.0.7.1 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-1.2.4.2 resourcet-1.1.5 enclosed-exceptions-1.0.1.1) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) enclosed-exceptions-1.0.1.1 (via: yaml-0.8.11) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) resource-pool-0.2.3.2 (via: yesod-persistent-1.4.0.2 persistent-2.1.6) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) resourcet-1.1.5 (via: yesod-auth-1.4.5 yesod-form-1.4.4.1 yesod-persistent-1.4.0.2 yesod-core-1.4.9.1 yaml-0.8.11 authenticate-1.3.2.11 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 wai-extra-3.0.7.1 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-extra-1.1.9 conduit-1.2.4.2) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) conduit-1.2.4.2 (via: yesod-auth-1.4.5 yesod-persistent-1.4.0.2 yesod-core-1.4.9.1 yaml-0.8.11 authenticate-1.3.2.11 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-extra-1.1.9) (reinstall) conduit-extra-1.1.9 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-core-1.4.9.1 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 monad-logger-0.3.13.1) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) http-conduit-2.1.5 (via: yesod-auth-1.4.5 authenticate-1.3.2.11) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) monad-logger-0.3.13.1 (via: yesod-1.4.0 yesod-core-1.4.9.1 persistent-template-2.1.3.3 persistent-2.1.6) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) persistent-2.1.6 (via: yesod-auth-1.4.5 yesod-form-1.4.4.1 yesod-persistent-1.4.0.2 persistent-template-2.1.3.3) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) persistent-template-2.1.3.3 (via: yesod-auth-1.4.5 yesod-persistent-1.4.0.2) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) shakespeare-2.0.5 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-form-1.4.4.1 yesod-core-1.4.9.1) (new package) wai-extra-3.0.7.1 (via: yesod-1.4.0 yesod-core-1.4.9.1) (reinstall) xml-conduit-1.3.0 (via: authenticate-1.3.2.11 tagstream-conduit-0.5.5.3) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) tagstream-conduit-0.5.5.3 (via: authenticate-1.3.2.11) (reinstall) authenticate-1.3.2.11 (via: yesod-auth-1.4.5) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) yaml-0.8.11 (via: yesod-1.4.0) (reinstall) yesod-core-1.4.9.1 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-form-1.4.4.1 yesod-persistent-1.4.0.2) (new package) yesod-persistent-1.4.0.2 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-form-1.4.4.1) (new package) yesod-form-1.4.4.1 (via: yesod-1.4.0 yesod-auth-1.4.5) (new package) yesod-auth-1.4.5 (via: yesod-1.4.0) (new package) yesod-1.4.0 (latest: 1.4.1.5) (new package) cabal: The following packages are likely to be broken by the reinstalls: pandoc-citeproc-0.7.1.1 pandoc-1.14.0.4 project-template-0.2.0 http-reverse-proxy-0.4.2 Use --force-reinstalls if you want to install anyway. msantos@MBP-2[15:42]:~/System$cabal install yesod-1.2.6.1 Resolving dependencies... cabal: Could not resolve dependencies: next goal: yesod (user goal) rejecting: yesod-1.4.1.5, 1.4.1.4, 1.4.1.3, 1.4.1.2, 1.4.1.1, 1.4.1, 1.4.0 (global constraint requires ==1.2.6.1) trying: yesod-1.2.6.1 trying: streaming-commons-0.1.12.1/installed-200... (dependency of yesod-1.2.6.1) trying: warp-3.0.13.1/installed-150... (dependency of yesod-1.2.6.1) next goal: yesod-form (dependency of yesod-1.2.6.1) rejecting: yesod-form-1.4.4.1, 1.4.4, 1.4.3.1, 1.4.3, 1.4.2.1, 1.4.2, 1.4.1.1, 1.4.1, 1.4.0.2, 1.4.0.1, 1.4.0 (conflict: yesod => yesod-form>=1.3 && <1.4) trying: yesod-form-1.3.16 next goal: persistent (dependency of yesod-form-1.3.16) rejecting: persistent-2.1.6/installed-4f9..., 2.1.6, 2.1.5, 2.1.4, 2.1.3, 2.1.2, 2.1.1.7, 2.1.1.6, 2.1.1.5, 2.1.1.4, 2.1.1.3, 2.1.1.2, 2.1.1.1, 2.1.1, 2.1.0.2, 2.1.0.1, 2.1 (conflict: yesod-form => persistent>=1.2 && <2.1) trying: persistent-1.3.3 trying: path-pieces-0.2.0/installed-533... (dependency of persistent-1.3.3) next goal: yesod-core (dependency of yesod-1.2.6.1) rejecting: yesod-core-1.4.9.1, 1.4.9, 1.4.8.3, 1.4.8.2, 1.4.8.1, 1.4.8, 1.4.7.3, 1.4.7.2, 1.4.7.1, 1.4.7, 1.4.6.2, 1.4.6.1, 1.4.6, 1.4.5, 1.4.4.5, 1.4.4.4, 1.4.4.3, 1.4.4.2, 1.4.4.1, 1.4.4, 1.4.3.1, 1.4.3, 1.4.2, 1.4.1.1, 1.4.1, 1.4.0.2, 1.4.0.1, 1.4.0 (conflict: yesod => yesod-core>=1.2.2 && <1.3) rejecting: yesod-core-1.2.20.1, 1.2.20, 1.2.19.2, 1.2.19.1, 1.2.19, 1.2.18, 1.2.17, 1.2.16.1, 1.2.16, 1.2.15.2, 1.2.15.1, 1.2.15, 1.2.14, 1.2.13.1, 1.2.13, 1.2.12, 1.2.11.1, 1.2.11, 1.2.10, 1.2.9.2, 1.2.9.1, 1.2.9, 1.2.8, 1.2.7, 1.2.6.7, 1.2.6.6, 1.2.6.5, 1.2.6.4, 1.2.6.3, 1.2.6.2, 1.2.6.1 (conflict: path-pieces==0.2.0/installed-533..., yesod-core => path-pieces>=0.1.2 && <0.2) rejecting: yesod-core-1.2.6 (conflict: streaming-commons => text==1.1.0.0/installed-9bd..., yesod-core => text>=0.7 && <0.12) rejecting: yesod-core-1.2.5, 1.2.4.5, 1.2.4.4, 1.2.4.3, 1.2.4.2, 1.2.4.1, 1.2.4, 1.2.3, 1.2.2 (conflict: warp => wai==3.0.2.3/installed-39c..., yesod-core => wai>=1.4 && <1.5) rejecting: yesod-core-1.2.1, 1.2.0.4, 1.2.0.3, 1.2.0.2, 1.2.0.1, 1.2.0, 1.1.8.3, 1.1.8.2, 1.1.8.1, 1.1.8, 1.1.7.2, 1.1.7.1, 1.1.7, 1.1.6.1, 1.1.6, 1.1.5, 1.1.4.2, 1.1.4.1, 1.1.4, 1.1.3.1, 1.1.3, 1.1.2.2, 1.1.2.1, 1.1.2, 1.1.1.2, 1.1.1.1, 1.1.1, 1.1.0.1, 1.1.0, 1.0.1.3, 1.0.1.2, 1.0.1.1, 1.0.1, 1.0.0.2, 1.0.0.1, 1.0.0, 0.10.3, 0.10.2.2, 0.10.2.1, 0.10.2, 0.10.1, 0.9.4.1, 0.9.4, 0.9.3.6, 0.9.3.5, 0.9.3.4, 0.9.3.3, 0.9.3.2, 0.9.3.1, 0.9.3, 0.9.2, 0.9.1.1, 0.9.1, 0.8.3.2, 0.8.3.1, 0.8.3, 0.8.2, 0.8.1, 0.8.0.1, 0.8.0, 0.7.0.2, 0.7.0.1, 0.7.0 (conflict: yesod => yesod-core>=1.2.2 && <1.3) Backjump limit reached (change with --max-backjumps).
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 3:32 PM, Christopher Allen
wrote: Ah that's frustrating, that's my mistake – I'm sorry. I thought you were talking about GHC for Mac OS X not being available for your OS version either.
Your best bet on HP is to specify an older version of Yesod that will work with the dependencies that your version of HP comes with.
On Thu, Jun 18, 2015 at 2:08 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
> Indeed I saw that. That's what I meant with the bindist not being > available for OSX 10.6.8; only for 10.7+ > https://www.haskell.org/ghc/download_ghc_7_8_4#macosx_x86_64 > My bad, I should have said it before. > > > > -- > Public key ID: E8FE60D7 > Public key server: see, e.g., hkp://keys.gnupg.net > > On Thu, Jun 18, 2015 at 2:36 PM, Christopher Allen < > cma@bitemyapp.com> wrote: > >> Did you see that the Mac instructions said to follow the "other >> *nix" instructions if you were using an older version of Mac OS X? >> >> Those link here: >> https://www.haskell.org/ghc/download_ghc_7_8_4#binaries >> >> Get rid of all that (GHC, HP, Cabal), then install GHC using the >> bindist for Mac OS X linked above. >> >> On Thu, Jun 18, 2015 at 1:14 PM, Miguel A. Santos < >> miguel.a.santos.l@gmail.com> wrote: >> >>> That is obviously a typo: I meant I *did* do a fresh install of >>> the Haskell Platform and cabal before >>> trying -and failing- to install yesod. >>> >>> On Thu, Jun 18, 2015 at 1:38 PM, Miguel A. Santos < >>> miguel.a.santos.l@gmail.com> wrote: >>> >>>> This corresponds to a fresh install of the HP, ghc, and cabal I >>>> didn't before trying to install yesod. >>>> >>> >>> >>> -- >>> Public key ID: E8FE60D7 >>> Public key server: see, e.g., hkp://keys.gnupg.net >>> >>> _______________________________________________ >>> Haskell-Cafe mailing list >>> Haskell-Cafe@haskell.org >>> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe >>> >>> >> >> >> -- >> Chris Allen >> Currently working on http://haskellbook.com >> > >
-- Chris Allen Currently working on http://haskellbook.com
-- Chris Allen Currently working on http://haskellbook.com
-- Chris Allen Currently working on http://haskellbook.com
-- Chris Allen Currently working on http://haskellbook.com

Ok, removing ~/.ghc (actually just moving it to ~/.ghc-org) didn't work
either. The detailed output is below
but from a cursory view it seems not much better than within the sandbox
try before.
I understand I'm staying in the "past" and with that comes problems like
this one, but upgrading to Yellowstone
is not an option for me.
I have some questions about your other options. In particular, I'm not sure
what you mean by (capitals) GHC.
I thought that's just the compiler. I don't understand your first sentence
after "vanilla". What is what I got
with HP if not GHC for MacOSX!?
About point 2., I'm building (already for hours, that's the 'other' process
I'd running) ghc from the tarball ghc-7.8.4-src.tar.bz2 available at the
bottom of that same link we mentioned before, namely,
https://www.haskell.org/ghc/download_ghc_7_8_4#binaries Is this the same as
what you mean by this 2nd option? Mind you I'm already using version 7.8.3.
How will a new version of the compiler change what looks like a
compatibility problem with a package? or you mean it is not that simple?
Option 3: It seems to me I may as well just remove everything, install HP
again (already downloaded) and after
that step finishes, trying installing right away yesod, before I try with
any other packages. Seems a path based
mostly on blind hope than logic to me :-p as the only big thing I installed
between my fresh install of HP and my initial try of yesod was pandoc,
which had some large dependencies to deal with. But it's a simple one, so I
may check it definitely out
of the equation.
Option 4: I guess this is something I can try right away without much
effort. To be concrete you mean then
cabal install --allow-newer yesod ?
Btw, thanks so much for your prompt help!
--------------------------------------------
msantos@MBP-2[17:09]:~/System/YESOD$mv ~/.ghc/ ~/.ghc-org
msantos@MBP-2[17:30]:~$cabal install yesod==1.2.6.1
Warning: The package list for 'hackage.haskell.org' is 15.0 days old.
Run 'cabal update' to get the latest list of available packages.
Resolving dependencies...
cabal: Could not resolve dependencies:
next goal: yesod (user goal)
rejecting: yesod-1.4.1.5, 1.4.1.4, 1.4.1.3, 1.4.1.2, 1.4.1.1, 1.4.1, 1.4.0
(global constraint requires ==1.2.6.1)
trying: yesod-1.2.6.1
trying: streaming-commons-0.1.12.1 (dependency of yesod-1.2.6.1)
trying: network-2.4.2.3/installed-575... (dependency of
streaming-commons-0.1.12.1)
trying: parsec-3.1.5/installed-04a... (dependency of
network-2.4.2.3/installed-575...)
trying: mtl-2.1.3.1/installed-8bc... (dependency of
parsec-3.1.5/installed-04a...)
trying: shakespeare-2.0.5 (dependency of yesod-1.2.6.1)
trying: exceptions-0.8.0.2 (dependency of shakespeare-2.0.5)
trying: transformers-compat-0.4.0.4 (dependency of exceptions-0.8.0.2)
trying: transformers-compat-0.4.0.4:-two
rejecting: transformers-compat-0.4.0.4:-three (conflict: mtl =>
transformers==0.3.0.0/installed-16a..., transformers-compat-0.4.0.4:three =>
transformers>=0.4.1 && <0.5)
rejecting: transformers-compat-0.4.0.4:+three (manual flag can only be
changed
explicitly)
Backjump limit reached (change with --max-backjumps).
--
Public key ID: E8FE60D7
Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 5:15 PM, Christopher Allen
You don't need to rm -rf ~/.ghc if you're using a sandbox. The sandbox (usually) occludes the user package-db.
Well, the sandbox may not have fixed the incompatibility of HP and that particular version of Yesod, but we're better information from the dependency solver.
That said, this is going to simply require a lot of trial and error if you want to try this approach and me telling you increment/decrement versions isn't going to be any faster.
I'd say your best options are:
1. Upgrade your installation of Mac OS X so you can use the vanilla GHC bindist, or even better, GHC for Mac OS X
2. Use your copy of Haskell Platform to build GHC from source and use that instead of GHC (possibly a quagmire, might work out okay. Will take a long time to build.)
3. Unregister all the unnecessary packages from your global package-db. Listing here: https://www.haskell.org/platform/changelog.html (Additional Platform Libraries, do *not* uninstall any of the core libraries) If you make a mistake you may need to reinstall Platform.
4. Give passing --allow-newer to cabal install a shot.
This is rough. Not that many people on <10.7 OS X versions so there aren't enough squeaky wheels for this sort of thing.
Sorry I couldn't do more.
On Thu, Jun 18, 2015 at 3:54 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
Hmm.. wouldn't that mean, I later have to reinstall all my packages? :-/
Meanwhile, I did try the sandbox way. It didn't work either. Briefly I issued cabal sandbox init and then cabal install yesod-1.2.6.1 Details below.
The initial complain about not being able to resolve dependencies makes me think I may be missing more things about working with sandboxes. Just checked
https://www.haskell.org/cabal/users-guide/installing-packages.html#developin... and guessed the init would be enough.
-------------------------------------------------------- msantos@MBP-2[16:38]:~/System/YESOD/Sandbox$cabal sandbox init Writing a default package environment file to /Users/msantos/System/YESOD/Sandbox/cabal.sandbox.config Creating a new sandbox at /Users/msantos/System/YESOD/Sandbox/.cabal-sandbox msantos@MBP-2[16:41]:~/System/YESOD/Sandbox$cabal install yesod-1.2.6.1 Resolving dependencies... cabal: Could not resolve dependencies: next goal: yesod (user goal) rejecting: yesod-1.4.1.5, 1.4.1.4, 1.4.1.3, 1.4.1.2, 1.4.1.1, 1.4.1, 1.4.0 (global constraint requires ==1.2.6.1) trying: yesod-1.2.6.1 trying: streaming-commons-0.1.12.1 (dependency of yesod-1.2.6.1) trying: network-2.4.2.3/installed-575... (dependency of streaming-commons-0.1.12.1) trying: parsec-3.1.5/installed-04a... (dependency of network-2.4.2.3/installed-575...) trying: mtl-2.1.3.1/installed-8bc... (dependency of parsec-3.1.5/installed-04a...) trying: shakespeare-2.0.5 (dependency of yesod-1.2.6.1) trying: exceptions-0.8.0.2 (dependency of shakespeare-2.0.5) trying: transformers-compat-0.4.0.4 (dependency of exceptions-0.8.0.2) trying: transformers-compat-0.4.0.4:-two rejecting: transformers-compat-0.4.0.4:-three (conflict: mtl => transformers==0.3.0.0/installed-16a..., transformers-compat-0.4.0.4:three => transformers>=0.4.1 && <0.5) rejecting: transformers-compat-0.4.0.4:+three (manual flag can only be changed explicitly) Backjump limit reached (change with --max-backjumps).
Note: when using a sandbox, all packages are required to have consistent dependencies. Try reinstalling/unregistering the offending packages or recreating the sandbox.
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 4:46 PM, Christopher Allen
wrote: If you won't use a sandbox, then lets nuke your user package-db and start from scratch:
rm -rf ~/.ghc cabal install yesod==1.2.6.1
On Thu, Jun 18, 2015 at 3:28 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
I haven't yet read how to use sandboxes, so, no, that I tried just like that cabal install... I did check first that cabal info yesod was saying I didn't have it install. But now that you mention it, I did may have had other packages lingering around from my last attempt of installing yesod.
Meanwhile I did run forcing the install of 1.4.0... Ah, it finished with cabal install --force-reinstalls yesod-1.4.0 and... it complains about the shakespeare.
"shakespeare-2.0.5 failed during the building phase. The exception was: ExitFailure 1"
Below the full output.
I'll give a try to the sandbox solution.
------------------------------------------------ msantos@MBP-2[16:09]:~/System/YESOD$cabal install --force-reinstalls yesod-1.4.0 Resolving dependencies... Warning: The following packages are likely to be broken by the reinstalls: pandoc-citeproc-0.7.1.1 pandoc-1.14.0.4 project-template-0.2.0 http-reverse-proxy-0.4.2 Continuing even though the plan contains dangerous reinstalls. Downloading monad-control-0.3.3.1... Configuring shakespeare-2.0.5... Configuring monad-control-0.3.3.1... Building monad-control-0.3.3.1... Building shakespeare-2.0.5... Installed monad-control-0.3.3.1 Configuring lifted-base-0.2.3.6... Building lifted-base-0.2.3.6... Configuring resource-pool-0.2.3.2... Installed lifted-base-0.2.3.6 Building resource-pool-0.2.3.2... Installed resource-pool-0.2.3.2 Configuring enclosed-exceptions-1.0.1.1... Building enclosed-exceptions-1.0.1.1... Configuring resourcet-1.1.5... Installed enclosed-exceptions-1.0.1.1 Building resourcet-1.1.5... Failed to install shakespeare-2.0.5 Build log ( /Users/msantos/.cabal/logs/shakespeare-2.0.5.log ): Configuring shakespeare-2.0.5... Building shakespeare-2.0.5... Preprocessing library shakespeare-2.0.5... [ 1 of 17] Compiling Text.MkSizeType ( Text/MkSizeType.hs, dist/build/Text/MkSizeType.o ) [ 2 of 17] Compiling Text.IndentToBrace ( Text/IndentToBrace.hs, dist/build/Text/IndentToBrace.o ) [ 3 of 17] Compiling Text.Shakespeare.Base ( Text/Shakespeare/Base.hs, dist/build/Text/Shakespeare/Base.o ) [ 4 of 17] Compiling Text.Hamlet.Parse ( Text/Hamlet/Parse.hs, dist/build/Text/Hamlet/Parse.o ) [ 5 of 17] Compiling Text.Hamlet ( Text/Hamlet.hs, dist/build/Text/Hamlet.o )
Text/Hamlet.hs:402:1: Warning: Defined but not used: ‘varName’
Text/Hamlet.hs:406:1: Warning: Defined but not used: ‘strToExp’
Text/Hamlet.hs:439:16: Warning: Defined but not used: ‘html’
Text/Hamlet.hs:440:14: Warning: Defined but not used: ‘url’
Text/Hamlet.hs:441:19: Warning: Defined but not used: ‘url’
Text/Hamlet.hs:442:16: Warning: Defined but not used: ‘url’
Text/Hamlet.hs:443:20: Warning: Defined but not used: ‘msg_url’
Text/Hamlet.hs:444:14: Warning: Defined but not used: ‘msg’
Text/Hamlet.hs:488:43: Warning: This binding for ‘c’ shadows the existing binding bound at Text/Hamlet.hs:484:13 [ 6 of 17] Compiling Text.Hamlet.RT ( Text/Hamlet/RT.hs, dist/build/Text/Hamlet/RT.o )
Text/Hamlet/RT.hs:78:13: Warning: Defined but not used: ‘x’
Text/Hamlet/RT.hs:78:26: Warning: Defined but not used: ‘deref’
Text/Hamlet/RT.hs:78:45: Warning: Defined but not used: ‘docs’
Text/Hamlet/RT.hs:85:13: Warning: Defined but not used: ‘x’
Text/Hamlet/RT.hs:85:25: Warning: Defined but not used: ‘deref’
Text/Hamlet/RT.hs:85:44: Warning: Defined but not used: ‘jdocs’
Text/Hamlet/RT.hs:85:50: Warning: Defined but not used: ‘ndocs’
Text/Hamlet/RT.hs:115:37: Warning: This binding for ‘x’ shadows the existing binding bound at Text/Hamlet/RT.hs:108:13 [ 7 of 17] Compiling Text.Shakespeare ( Text/Shakespeare.hs, dist/build/Text/Shakespeare.o ) [ 8 of 17] Compiling Text.Shakespeare.Text ( Text/Shakespeare/Text.hs, dist/build/Text/Shakespeare/Text.o ) [ 9 of 17] Compiling Text.Julius ( Text/Julius.hs, dist/build/Text/Julius.o )
Text/Julius.hs:90:63: Warning: In the use of ‘fromValue’ (imported from Data.Aeson.Encode): Deprecated: "Use 'encodeToTextBuilder' instead" [10 of 17] Compiling Text.Roy ( Text/Roy.hs, dist/build/Text/Roy.o ) [11 of 17] Compiling Text.Coffee ( Text/Coffee.hs, dist/build/Text/Coffee.o ) [12 of 17] Compiling Text.Css ( Text/Css.hs, dist/build/Text/Css.o )
Text/Css.hs:349:40: Warning: Defined but not used: ‘subblocks’
Text/Css.hs:367:5: Warning: Defined but not used: ‘subGo’ [13 of 17] Compiling Text.CssCommon ( Text/CssCommon.hs, dist/build/Text/CssCommon.o ) Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Loading package array-0.5.0.0 ... linking ... done. Loading package deepseq-1.3.0.2 ... linking ... done. Loading package filepath-1.3.0.2 ... linking ... done. Loading package old-locale-1.0.0.6 ... linking ... done. Loading package time-1.4.2 ... linking ... done. Loading package bytestring-0.10.4.0 ... linking ... done. Loading package unix-2.7.0.1 ... linking ... done. Loading package directory-1.2.1.0 ... linking ... done. Loading package process-1.2.0.0 ... linking ... done. Loading package transformers-0.3.0.0 ... linking ... done. Loading package mtl-2.1.3.1 ... linking ... done. Loading package text-1.1.0.0 ... linking ... done. Loading package parsec-3.1.5 ... <command line>: can't load .so/.DLL for: /Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib (dlopen(/Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib, 9): Library not loaded: @rpath/libHStext-1.1.0.0-ghc7.8.3.dylib Referenced from: /Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib Reason: image not found) Installed resourcet-1.1.5 Configuring wai-extra-3.0.7.1... Configuring conduit-1.2.4.2... Building conduit-1.2.4.2... Building wai-extra-3.0.7.1... Installed conduit-1.2.4.2 Configuring conduit-extra-1.1.9... Building conduit-extra-1.1.9... Configuring http-conduit-2.1.5... Installed wai-extra-3.0.7.1 Building http-conduit-2.1.5... Configuring yaml-0.8.11... Installed http-conduit-2.1.5 Building yaml-0.8.11... Installed conduit-extra-1.1.9 Configuring monad-logger-0.3.13.1... Building monad-logger-0.3.13.1... Configuring xml-conduit-1.3.0... Installed monad-logger-0.3.13.1 Building xml-conduit-1.3.0... Installed yaml-0.8.11 Configuring persistent-2.1.6... Building persistent-2.1.6... Installed xml-conduit-1.3.0 Configuring tagstream-conduit-0.5.5.3... Building tagstream-conduit-0.5.5.3... Installed tagstream-conduit-0.5.5.3 Configuring authenticate-1.3.2.11... Building authenticate-1.3.2.11... Installed authenticate-1.3.2.11 Installed persistent-2.1.6 Configuring persistent-template-2.1.3.3... Building persistent-template-2.1.3.3... Installed persistent-template-2.1.3.3 Updating documentation index /Users/msantos/Library/Haskell/share/doc/x86_64-osx-ghc-7.8.3/index.html cabal: Error: some packages failed to install: shakespeare-2.0.5 failed during the building phase. The exception was: ExitFailure 1 yesod-1.4.0 depends on shakespeare-2.0.5 which failed to install. yesod-auth-1.4.5 depends on shakespeare-2.0.5 which failed to install. yesod-core-1.4.9.1 depends on shakespeare-2.0.5 which failed to install. yesod-form-1.4.4.1 depends on shakespeare-2.0.5 which failed to install. yesod-persistent-1.4.0.2 depends on shakespeare-2.0.5 which failed to install.
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 4:16 PM, Christopher Allen
wrote: Some of that looks like churn from trying to install an older version of Yesod over a newer one. Are you using a sandbox? if so, did you wipe it out before attempting Yesod 1.2.6.1? What we'd be looking for is a package conflict that tells you which package of what version that is globally installed is causing the conflict.
Insta-Yesodian conflict implies you're reinstalling into a not-fresh packgage-db which means you either need to wipe your user package-db or use a sandbox. (I recommend the latter).
If you haven't done so, do that, then re-attempt that version of Yesod (1.2.6.1).
On Thu, Jun 18, 2015 at 2:57 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
Thanks! No problem. I gave a try to your suggestion. It doesn't look I'll get yesod installed without "paying" a bigger price than just "downgrading". :-/
Yesod 1.4.0 warns that forcing installing it will likely break pandoc, among other things. I can give it a try though, but I really use pandoc regularly. Plus, it's still not clear that the building process will not fail. And installing pandoc took me surprisingly a lot of time last time.
Forcing Yesod-1.2.6.1 won't allow cabal to satisfy the dependencies.
I guess I could keep trying other versions and see. But I think I'll try the 1.4.0 first. Will post here the results so that at least others may hopefully benefit from this.
----------------------------------------------------------------------------------------- msantos@MBP-2[15:42]:~/System$cabal install yesod-1.4.0 Resolving dependencies... In order, the following would be installed: monad-control-0.3.3.1 (latest: 1.0.0.4) (via: yesod-1.4.0 yesod-core-1.4.9.1 authenticate-1.3.2.11 xml-conduit-1.3.0 persistent-template-2.1.3.3 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-extra-1.1.9 resourcet-1.1.5 resource-pool-0.2.3.2 enclosed-exceptions-1.0.1.1 lifted-base-0.2.3.6) (new version) lifted-base-0.2.3.6 (via: yesod-auth-1.4.5 yesod-core-1.4.9.1 wai-extra-3.0.7.1 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-1.2.4.2 resourcet-1.1.5 enclosed-exceptions-1.0.1.1) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) enclosed-exceptions-1.0.1.1 (via: yaml-0.8.11) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) resource-pool-0.2.3.2 (via: yesod-persistent-1.4.0.2 persistent-2.1.6) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) resourcet-1.1.5 (via: yesod-auth-1.4.5 yesod-form-1.4.4.1 yesod-persistent-1.4.0.2 yesod-core-1.4.9.1 yaml-0.8.11 authenticate-1.3.2.11 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 wai-extra-3.0.7.1 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-extra-1.1.9 conduit-1.2.4.2) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) conduit-1.2.4.2 (via: yesod-auth-1.4.5 yesod-persistent-1.4.0.2 yesod-core-1.4.9.1 yaml-0.8.11 authenticate-1.3.2.11 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-extra-1.1.9) (reinstall) conduit-extra-1.1.9 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-core-1.4.9.1 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 monad-logger-0.3.13.1) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) http-conduit-2.1.5 (via: yesod-auth-1.4.5 authenticate-1.3.2.11) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) monad-logger-0.3.13.1 (via: yesod-1.4.0 yesod-core-1.4.9.1 persistent-template-2.1.3.3 persistent-2.1.6) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) persistent-2.1.6 (via: yesod-auth-1.4.5 yesod-form-1.4.4.1 yesod-persistent-1.4.0.2 persistent-template-2.1.3.3) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) persistent-template-2.1.3.3 (via: yesod-auth-1.4.5 yesod-persistent-1.4.0.2) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) shakespeare-2.0.5 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-form-1.4.4.1 yesod-core-1.4.9.1) (new package) wai-extra-3.0.7.1 (via: yesod-1.4.0 yesod-core-1.4.9.1) (reinstall) xml-conduit-1.3.0 (via: authenticate-1.3.2.11 tagstream-conduit-0.5.5.3) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) tagstream-conduit-0.5.5.3 (via: authenticate-1.3.2.11) (reinstall) authenticate-1.3.2.11 (via: yesod-auth-1.4.5) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) yaml-0.8.11 (via: yesod-1.4.0) (reinstall) yesod-core-1.4.9.1 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-form-1.4.4.1 yesod-persistent-1.4.0.2) (new package) yesod-persistent-1.4.0.2 (via: yesod-1.4.0 yesod-auth-1.4.5 yesod-form-1.4.4.1) (new package) yesod-form-1.4.4.1 (via: yesod-1.4.0 yesod-auth-1.4.5) (new package) yesod-auth-1.4.5 (via: yesod-1.4.0) (new package) yesod-1.4.0 (latest: 1.4.1.5) (new package) cabal: The following packages are likely to be broken by the reinstalls: pandoc-citeproc-0.7.1.1 pandoc-1.14.0.4 project-template-0.2.0 http-reverse-proxy-0.4.2 Use --force-reinstalls if you want to install anyway. msantos@MBP-2[15:42]:~/System$cabal install yesod-1.2.6.1 Resolving dependencies... cabal: Could not resolve dependencies: next goal: yesod (user goal) rejecting: yesod-1.4.1.5, 1.4.1.4, 1.4.1.3, 1.4.1.2, 1.4.1.1, 1.4.1, 1.4.0 (global constraint requires ==1.2.6.1) trying: yesod-1.2.6.1 trying: streaming-commons-0.1.12.1/installed-200... (dependency of yesod-1.2.6.1) trying: warp-3.0.13.1/installed-150... (dependency of yesod-1.2.6.1) next goal: yesod-form (dependency of yesod-1.2.6.1) rejecting: yesod-form-1.4.4.1, 1.4.4, 1.4.3.1, 1.4.3, 1.4.2.1, 1.4.2, 1.4.1.1, 1.4.1, 1.4.0.2, 1.4.0.1, 1.4.0 (conflict: yesod => yesod-form>=1.3 && <1.4) trying: yesod-form-1.3.16 next goal: persistent (dependency of yesod-form-1.3.16) rejecting: persistent-2.1.6/installed-4f9..., 2.1.6, 2.1.5, 2.1.4, 2.1.3, 2.1.2, 2.1.1.7, 2.1.1.6, 2.1.1.5, 2.1.1.4, 2.1.1.3, 2.1.1.2, 2.1.1.1, 2.1.1, 2.1.0.2, 2.1.0.1, 2.1 (conflict: yesod-form => persistent>=1.2 && <2.1) trying: persistent-1.3.3 trying: path-pieces-0.2.0/installed-533... (dependency of persistent-1.3.3) next goal: yesod-core (dependency of yesod-1.2.6.1) rejecting: yesod-core-1.4.9.1, 1.4.9, 1.4.8.3, 1.4.8.2, 1.4.8.1, 1.4.8, 1.4.7.3, 1.4.7.2, 1.4.7.1, 1.4.7, 1.4.6.2, 1.4.6.1, 1.4.6, 1.4.5, 1.4.4.5, 1.4.4.4, 1.4.4.3, 1.4.4.2, 1.4.4.1, 1.4.4, 1.4.3.1, 1.4.3, 1.4.2, 1.4.1.1, 1.4.1, 1.4.0.2, 1.4.0.1, 1.4.0 (conflict: yesod => yesod-core>=1.2.2 && <1.3) rejecting: yesod-core-1.2.20.1, 1.2.20, 1.2.19.2, 1.2.19.1, 1.2.19, 1.2.18, 1.2.17, 1.2.16.1, 1.2.16, 1.2.15.2, 1.2.15.1, 1.2.15, 1.2.14, 1.2.13.1, 1.2.13, 1.2.12, 1.2.11.1, 1.2.11, 1.2.10, 1.2.9.2, 1.2.9.1, 1.2.9, 1.2.8, 1.2.7, 1.2.6.7, 1.2.6.6, 1.2.6.5, 1.2.6.4, 1.2.6.3, 1.2.6.2, 1.2.6.1 (conflict: path-pieces==0.2.0/installed-533..., yesod-core => path-pieces>=0.1.2 && <0.2) rejecting: yesod-core-1.2.6 (conflict: streaming-commons => text==1.1.0.0/installed-9bd..., yesod-core => text>=0.7 && <0.12) rejecting: yesod-core-1.2.5, 1.2.4.5, 1.2.4.4, 1.2.4.3, 1.2.4.2, 1.2.4.1, 1.2.4, 1.2.3, 1.2.2 (conflict: warp => wai==3.0.2.3/installed-39c..., yesod-core => wai>=1.4 && <1.5) rejecting: yesod-core-1.2.1, 1.2.0.4, 1.2.0.3, 1.2.0.2, 1.2.0.1, 1.2.0, 1.1.8.3, 1.1.8.2, 1.1.8.1, 1.1.8, 1.1.7.2, 1.1.7.1, 1.1.7, 1.1.6.1, 1.1.6, 1.1.5, 1.1.4.2, 1.1.4.1, 1.1.4, 1.1.3.1, 1.1.3, 1.1.2.2, 1.1.2.1, 1.1.2, 1.1.1.2, 1.1.1.1, 1.1.1, 1.1.0.1, 1.1.0, 1.0.1.3, 1.0.1.2, 1.0.1.1, 1.0.1, 1.0.0.2, 1.0.0.1, 1.0.0, 0.10.3, 0.10.2.2, 0.10.2.1, 0.10.2, 0.10.1, 0.9.4.1, 0.9.4, 0.9.3.6, 0.9.3.5, 0.9.3.4, 0.9.3.3, 0.9.3.2, 0.9.3.1, 0.9.3, 0.9.2, 0.9.1.1, 0.9.1, 0.8.3.2, 0.8.3.1, 0.8.3, 0.8.2, 0.8.1, 0.8.0.1, 0.8.0, 0.7.0.2, 0.7.0.1, 0.7.0 (conflict: yesod => yesod-core>=1.2.2 && <1.3) Backjump limit reached (change with --max-backjumps).
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 3:32 PM, Christopher Allen
wrote: > Ah that's frustrating, that's my mistake – I'm sorry. I thought you > were talking about GHC for Mac OS X not being available for your OS version > either. > > Your best bet on HP is to specify an older version of Yesod that > will work with the dependencies that your version of HP comes with. > > On Thu, Jun 18, 2015 at 2:08 PM, Miguel A. Santos < > miguel.a.santos.l@gmail.com> wrote: > >> Indeed I saw that. That's what I meant with the bindist not being >> available for OSX 10.6.8; only for 10.7+ >> https://www.haskell.org/ghc/download_ghc_7_8_4#macosx_x86_64 >> My bad, I should have said it before. >> >> >> >> -- >> Public key ID: E8FE60D7 >> Public key server: see, e.g., hkp://keys.gnupg.net >> >> On Thu, Jun 18, 2015 at 2:36 PM, Christopher Allen < >> cma@bitemyapp.com> wrote: >> >>> Did you see that the Mac instructions said to follow the "other >>> *nix" instructions if you were using an older version of Mac OS X? >>> >>> Those link here: >>> https://www.haskell.org/ghc/download_ghc_7_8_4#binaries >>> >>> Get rid of all that (GHC, HP, Cabal), then install GHC using the >>> bindist for Mac OS X linked above. >>> >>> On Thu, Jun 18, 2015 at 1:14 PM, Miguel A. Santos < >>> miguel.a.santos.l@gmail.com> wrote: >>> >>>> That is obviously a typo: I meant I *did* do a fresh install of >>>> the Haskell Platform and cabal before >>>> trying -and failing- to install yesod. >>>> >>>> On Thu, Jun 18, 2015 at 1:38 PM, Miguel A. Santos < >>>> miguel.a.santos.l@gmail.com> wrote: >>>> >>>>> This corresponds to a fresh install of the HP, ghc, and cabal I >>>>> didn't before trying to install yesod. >>>>> >>>> >>>> >>>> -- >>>> Public key ID: E8FE60D7 >>>> Public key server: see, e.g., hkp://keys.gnupg.net >>>> >>>> _______________________________________________ >>>> Haskell-Cafe mailing list >>>> Haskell-Cafe@haskell.org >>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe >>>> >>>> >>> >>> >>> -- >>> Chris Allen >>> Currently working on http://haskellbook.com >>> >> >> > > > -- > Chris Allen > Currently working on http://haskellbook.com >
-- Chris Allen Currently working on http://haskellbook.com
-- Chris Allen Currently working on http://haskellbook.com
-- Chris Allen Currently working on http://haskellbook.com

One more detail about my try with rm ~/.ghc: I find it curious that I didn't get that directory rebuild again when trying to install yesod. Did I miss something? -- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net On Thu, Jun 18, 2015 at 6:18 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
Ok, removing ~/.ghc (actually just moving it to ~/.ghc-org) didn't work either. The detailed output is below but from a cursory view it seems not much better than within the sandbox try before.
I understand I'm staying in the "past" and with that comes problems like this one, but upgrading to Yellowstone is not an option for me.
I have some questions about your other options. In particular, I'm not sure what you mean by (capitals) GHC. I thought that's just the compiler. I don't understand your first sentence after "vanilla". What is what I got with HP if not GHC for MacOSX!?
About point 2., I'm building (already for hours, that's the 'other' process I'd running) ghc from the tarball ghc-7.8.4-src.tar.bz2 available at the bottom of that same link we mentioned before, namely, https://www.haskell.org/ghc/download_ghc_7_8_4#binaries Is this the same as what you mean by this 2nd option? Mind you I'm already using version 7.8.3. How will a new version of the compiler change what looks like a compatibility problem with a package? or you mean it is not that simple?
Option 3: It seems to me I may as well just remove everything, install HP again (already downloaded) and after that step finishes, trying installing right away yesod, before I try with any other packages. Seems a path based mostly on blind hope than logic to me :-p as the only big thing I installed between my fresh install of HP and my initial try of yesod was pandoc, which had some large dependencies to deal with. But it's a simple one, so I may check it definitely out of the equation.
Option 4: I guess this is something I can try right away without much effort. To be concrete you mean then cabal install --allow-newer yesod ?
Btw, thanks so much for your prompt help!
-------------------------------------------- msantos@MBP-2[17:09]:~/System/YESOD$mv ~/.ghc/ ~/.ghc-org msantos@MBP-2[17:30]:~$cabal install yesod==1.2.6.1 Warning: The package list for 'hackage.haskell.org' is 15.0 days old. Run 'cabal update' to get the latest list of available packages. Resolving dependencies... cabal: Could not resolve dependencies: next goal: yesod (user goal) rejecting: yesod-1.4.1.5, 1.4.1.4, 1.4.1.3, 1.4.1.2, 1.4.1.1, 1.4.1, 1.4.0 (global constraint requires ==1.2.6.1) trying: yesod-1.2.6.1 trying: streaming-commons-0.1.12.1 (dependency of yesod-1.2.6.1) trying: network-2.4.2.3/installed-575... (dependency of streaming-commons-0.1.12.1) trying: parsec-3.1.5/installed-04a... (dependency of network-2.4.2.3/installed-575...) trying: mtl-2.1.3.1/installed-8bc... (dependency of parsec-3.1.5/installed-04a...) trying: shakespeare-2.0.5 (dependency of yesod-1.2.6.1) trying: exceptions-0.8.0.2 (dependency of shakespeare-2.0.5) trying: transformers-compat-0.4.0.4 (dependency of exceptions-0.8.0.2) trying: transformers-compat-0.4.0.4:-two rejecting: transformers-compat-0.4.0.4:-three (conflict: mtl => transformers==0.3.0.0/installed-16a..., transformers-compat-0.4.0.4:three => transformers>=0.4.1 && <0.5) rejecting: transformers-compat-0.4.0.4:+three (manual flag can only be changed explicitly) Backjump limit reached (change with --max-backjumps).
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 5:15 PM, Christopher Allen
wrote: You don't need to rm -rf ~/.ghc if you're using a sandbox. The sandbox (usually) occludes the user package-db.
Well, the sandbox may not have fixed the incompatibility of HP and that particular version of Yesod, but we're better information from the dependency solver.
That said, this is going to simply require a lot of trial and error if you want to try this approach and me telling you increment/decrement versions isn't going to be any faster.
I'd say your best options are:
1. Upgrade your installation of Mac OS X so you can use the vanilla GHC bindist, or even better, GHC for Mac OS X
2. Use your copy of Haskell Platform to build GHC from source and use that instead of GHC (possibly a quagmire, might work out okay. Will take a long time to build.)
3. Unregister all the unnecessary packages from your global package-db. Listing here: https://www.haskell.org/platform/changelog.html (Additional Platform Libraries, do *not* uninstall any of the core libraries) If you make a mistake you may need to reinstall Platform.
4. Give passing --allow-newer to cabal install a shot.
This is rough. Not that many people on <10.7 OS X versions so there aren't enough squeaky wheels for this sort of thing.
Sorry I couldn't do more.
On Thu, Jun 18, 2015 at 3:54 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
Hmm.. wouldn't that mean, I later have to reinstall all my packages? :-/
Meanwhile, I did try the sandbox way. It didn't work either. Briefly I issued cabal sandbox init and then cabal install yesod-1.2.6.1 Details below.
The initial complain about not being able to resolve dependencies makes me think I may be missing more things about working with sandboxes. Just checked
https://www.haskell.org/cabal/users-guide/installing-packages.html#developin... and guessed the init would be enough.
-------------------------------------------------------- msantos@MBP-2[16:38]:~/System/YESOD/Sandbox$cabal sandbox init Writing a default package environment file to /Users/msantos/System/YESOD/Sandbox/cabal.sandbox.config Creating a new sandbox at /Users/msantos/System/YESOD/Sandbox/.cabal-sandbox msantos@MBP-2[16:41]:~/System/YESOD/Sandbox$cabal install yesod-1.2.6.1 Resolving dependencies... cabal: Could not resolve dependencies: next goal: yesod (user goal) rejecting: yesod-1.4.1.5, 1.4.1.4, 1.4.1.3, 1.4.1.2, 1.4.1.1, 1.4.1, 1.4.0 (global constraint requires ==1.2.6.1) trying: yesod-1.2.6.1 trying: streaming-commons-0.1.12.1 (dependency of yesod-1.2.6.1) trying: network-2.4.2.3/installed-575... (dependency of streaming-commons-0.1.12.1) trying: parsec-3.1.5/installed-04a... (dependency of network-2.4.2.3/installed-575...) trying: mtl-2.1.3.1/installed-8bc... (dependency of parsec-3.1.5/installed-04a...) trying: shakespeare-2.0.5 (dependency of yesod-1.2.6.1) trying: exceptions-0.8.0.2 (dependency of shakespeare-2.0.5) trying: transformers-compat-0.4.0.4 (dependency of exceptions-0.8.0.2) trying: transformers-compat-0.4.0.4:-two rejecting: transformers-compat-0.4.0.4:-three (conflict: mtl => transformers==0.3.0.0/installed-16a..., transformers-compat-0.4.0.4:three => transformers>=0.4.1 && <0.5) rejecting: transformers-compat-0.4.0.4:+three (manual flag can only be changed explicitly) Backjump limit reached (change with --max-backjumps).
Note: when using a sandbox, all packages are required to have consistent dependencies. Try reinstalling/unregistering the offending packages or recreating the sandbox.
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 4:46 PM, Christopher Allen
wrote: If you won't use a sandbox, then lets nuke your user package-db and start from scratch:
rm -rf ~/.ghc cabal install yesod==1.2.6.1
On Thu, Jun 18, 2015 at 3:28 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
I haven't yet read how to use sandboxes, so, no, that I tried just like that cabal install... I did check first that cabal info yesod was saying I didn't have it install. But now that you mention it, I did may have had other packages lingering around from my last attempt of installing yesod.
Meanwhile I did run forcing the install of 1.4.0... Ah, it finished with cabal install --force-reinstalls yesod-1.4.0 and... it complains about the shakespeare.
"shakespeare-2.0.5 failed during the building phase. The exception was: ExitFailure 1"
Below the full output.
I'll give a try to the sandbox solution.
------------------------------------------------ msantos@MBP-2[16:09]:~/System/YESOD$cabal install --force-reinstalls yesod-1.4.0 Resolving dependencies... Warning: The following packages are likely to be broken by the reinstalls: pandoc-citeproc-0.7.1.1 pandoc-1.14.0.4 project-template-0.2.0 http-reverse-proxy-0.4.2 Continuing even though the plan contains dangerous reinstalls. Downloading monad-control-0.3.3.1... Configuring shakespeare-2.0.5... Configuring monad-control-0.3.3.1... Building monad-control-0.3.3.1... Building shakespeare-2.0.5... Installed monad-control-0.3.3.1 Configuring lifted-base-0.2.3.6... Building lifted-base-0.2.3.6... Configuring resource-pool-0.2.3.2... Installed lifted-base-0.2.3.6 Building resource-pool-0.2.3.2... Installed resource-pool-0.2.3.2 Configuring enclosed-exceptions-1.0.1.1... Building enclosed-exceptions-1.0.1.1... Configuring resourcet-1.1.5... Installed enclosed-exceptions-1.0.1.1 Building resourcet-1.1.5... Failed to install shakespeare-2.0.5 Build log ( /Users/msantos/.cabal/logs/shakespeare-2.0.5.log ): Configuring shakespeare-2.0.5... Building shakespeare-2.0.5... Preprocessing library shakespeare-2.0.5... [ 1 of 17] Compiling Text.MkSizeType ( Text/MkSizeType.hs, dist/build/Text/MkSizeType.o ) [ 2 of 17] Compiling Text.IndentToBrace ( Text/IndentToBrace.hs, dist/build/Text/IndentToBrace.o ) [ 3 of 17] Compiling Text.Shakespeare.Base ( Text/Shakespeare/Base.hs, dist/build/Text/Shakespeare/Base.o ) [ 4 of 17] Compiling Text.Hamlet.Parse ( Text/Hamlet/Parse.hs, dist/build/Text/Hamlet/Parse.o ) [ 5 of 17] Compiling Text.Hamlet ( Text/Hamlet.hs, dist/build/Text/Hamlet.o )
Text/Hamlet.hs:402:1: Warning: Defined but not used: ‘varName’
Text/Hamlet.hs:406:1: Warning: Defined but not used: ‘strToExp’
Text/Hamlet.hs:439:16: Warning: Defined but not used: ‘html’
Text/Hamlet.hs:440:14: Warning: Defined but not used: ‘url’
Text/Hamlet.hs:441:19: Warning: Defined but not used: ‘url’
Text/Hamlet.hs:442:16: Warning: Defined but not used: ‘url’
Text/Hamlet.hs:443:20: Warning: Defined but not used: ‘msg_url’
Text/Hamlet.hs:444:14: Warning: Defined but not used: ‘msg’
Text/Hamlet.hs:488:43: Warning: This binding for ‘c’ shadows the existing binding bound at Text/Hamlet.hs:484:13 [ 6 of 17] Compiling Text.Hamlet.RT ( Text/Hamlet/RT.hs, dist/build/Text/Hamlet/RT.o )
Text/Hamlet/RT.hs:78:13: Warning: Defined but not used: ‘x’
Text/Hamlet/RT.hs:78:26: Warning: Defined but not used: ‘deref’
Text/Hamlet/RT.hs:78:45: Warning: Defined but not used: ‘docs’
Text/Hamlet/RT.hs:85:13: Warning: Defined but not used: ‘x’
Text/Hamlet/RT.hs:85:25: Warning: Defined but not used: ‘deref’
Text/Hamlet/RT.hs:85:44: Warning: Defined but not used: ‘jdocs’
Text/Hamlet/RT.hs:85:50: Warning: Defined but not used: ‘ndocs’
Text/Hamlet/RT.hs:115:37: Warning: This binding for ‘x’ shadows the existing binding bound at Text/Hamlet/RT.hs:108:13 [ 7 of 17] Compiling Text.Shakespeare ( Text/Shakespeare.hs, dist/build/Text/Shakespeare.o ) [ 8 of 17] Compiling Text.Shakespeare.Text ( Text/Shakespeare/Text.hs, dist/build/Text/Shakespeare/Text.o ) [ 9 of 17] Compiling Text.Julius ( Text/Julius.hs, dist/build/Text/Julius.o )
Text/Julius.hs:90:63: Warning: In the use of ‘fromValue’ (imported from Data.Aeson.Encode): Deprecated: "Use 'encodeToTextBuilder' instead" [10 of 17] Compiling Text.Roy ( Text/Roy.hs, dist/build/Text/Roy.o ) [11 of 17] Compiling Text.Coffee ( Text/Coffee.hs, dist/build/Text/Coffee.o ) [12 of 17] Compiling Text.Css ( Text/Css.hs, dist/build/Text/Css.o )
Text/Css.hs:349:40: Warning: Defined but not used: ‘subblocks’
Text/Css.hs:367:5: Warning: Defined but not used: ‘subGo’ [13 of 17] Compiling Text.CssCommon ( Text/CssCommon.hs, dist/build/Text/CssCommon.o ) Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Loading package array-0.5.0.0 ... linking ... done. Loading package deepseq-1.3.0.2 ... linking ... done. Loading package filepath-1.3.0.2 ... linking ... done. Loading package old-locale-1.0.0.6 ... linking ... done. Loading package time-1.4.2 ... linking ... done. Loading package bytestring-0.10.4.0 ... linking ... done. Loading package unix-2.7.0.1 ... linking ... done. Loading package directory-1.2.1.0 ... linking ... done. Loading package process-1.2.0.0 ... linking ... done. Loading package transformers-0.3.0.0 ... linking ... done. Loading package mtl-2.1.3.1 ... linking ... done. Loading package text-1.1.0.0 ... linking ... done. Loading package parsec-3.1.5 ... <command line>: can't load .so/.DLL for: /Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib (dlopen(/Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib, 9): Library not loaded: @rpath/libHStext-1.1.0.0-ghc7.8.3.dylib Referenced from: /Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib Reason: image not found) Installed resourcet-1.1.5 Configuring wai-extra-3.0.7.1... Configuring conduit-1.2.4.2... Building conduit-1.2.4.2... Building wai-extra-3.0.7.1... Installed conduit-1.2.4.2 Configuring conduit-extra-1.1.9... Building conduit-extra-1.1.9... Configuring http-conduit-2.1.5... Installed wai-extra-3.0.7.1 Building http-conduit-2.1.5... Configuring yaml-0.8.11... Installed http-conduit-2.1.5 Building yaml-0.8.11... Installed conduit-extra-1.1.9 Configuring monad-logger-0.3.13.1... Building monad-logger-0.3.13.1... Configuring xml-conduit-1.3.0... Installed monad-logger-0.3.13.1 Building xml-conduit-1.3.0... Installed yaml-0.8.11 Configuring persistent-2.1.6... Building persistent-2.1.6... Installed xml-conduit-1.3.0 Configuring tagstream-conduit-0.5.5.3... Building tagstream-conduit-0.5.5.3... Installed tagstream-conduit-0.5.5.3 Configuring authenticate-1.3.2.11... Building authenticate-1.3.2.11... Installed authenticate-1.3.2.11 Installed persistent-2.1.6 Configuring persistent-template-2.1.3.3... Building persistent-template-2.1.3.3... Installed persistent-template-2.1.3.3 Updating documentation index
/Users/msantos/Library/Haskell/share/doc/x86_64-osx-ghc-7.8.3/index.html cabal: Error: some packages failed to install: shakespeare-2.0.5 failed during the building phase. The exception was: ExitFailure 1 yesod-1.4.0 depends on shakespeare-2.0.5 which failed to install. yesod-auth-1.4.5 depends on shakespeare-2.0.5 which failed to install. yesod-core-1.4.9.1 depends on shakespeare-2.0.5 which failed to install. yesod-form-1.4.4.1 depends on shakespeare-2.0.5 which failed to install. yesod-persistent-1.4.0.2 depends on shakespeare-2.0.5 which failed to install.
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 4:16 PM, Christopher Allen
wrote: Some of that looks like churn from trying to install an older version of Yesod over a newer one. Are you using a sandbox? if so, did you wipe it out before attempting Yesod 1.2.6.1? What we'd be looking for is a package conflict that tells you which package of what version that is globally installed is causing the conflict.
Insta-Yesodian conflict implies you're reinstalling into a not-fresh packgage-db which means you either need to wipe your user package-db or use a sandbox. (I recommend the latter).
If you haven't done so, do that, then re-attempt that version of Yesod (1.2.6.1).
On Thu, Jun 18, 2015 at 2:57 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
> Thanks! No problem. I gave a try to your suggestion. It doesn't look > I'll get yesod installed without "paying" > a bigger price than just "downgrading". :-/ > > Yesod 1.4.0 warns that forcing installing it will likely break > pandoc, among other things. > I can give it a try though, but I really use pandoc regularly. Plus, > it's still not clear that the building process > will not fail. And installing pandoc took me surprisingly a lot of > time last time. > > Forcing Yesod-1.2.6.1 won't allow cabal to satisfy the dependencies. > > I guess I could keep trying other versions and see. But I think I'll > try the 1.4.0 first. Will post here > the results so that at least others may hopefully benefit from this. > > > ----------------------------------------------------------------------------------------- > msantos@MBP-2[15:42]:~/System$cabal install yesod-1.4.0 > Resolving dependencies... > In order, the following would be installed: > monad-control-0.3.3.1 (latest: 1.0.0.4) (via: yesod-1.4.0 > yesod-core-1.4.9.1 authenticate-1.3.2.11 xml-conduit-1.3.0 > persistent-template-2.1.3.3 persistent-2.1.6 monad-logger-0.3.13.1 > http-conduit-2.1.5 conduit-extra-1.1.9 resourcet-1.1.5 > resource-pool-0.2.3.2 enclosed-exceptions-1.0.1.1 lifted-base-0.2.3.6) (new > version) > lifted-base-0.2.3.6 (via: yesod-auth-1.4.5 yesod-core-1.4.9.1 > wai-extra-3.0.7.1 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 > conduit-1.2.4.2 resourcet-1.1.5 enclosed-exceptions-1.0.1.1) (reinstall) > (changes: monad-control-1.0.0.4 -> 0.3.3.1) > enclosed-exceptions-1.0.1.1 (via: yaml-0.8.11) (reinstall) (changes: > monad-control-1.0.0.4 -> 0.3.3.1) > resource-pool-0.2.3.2 (via: yesod-persistent-1.4.0.2 > persistent-2.1.6) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) > resourcet-1.1.5 (via: yesod-auth-1.4.5 yesod-form-1.4.4.1 > yesod-persistent-1.4.0.2 yesod-core-1.4.9.1 yaml-0.8.11 > authenticate-1.3.2.11 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 > wai-extra-3.0.7.1 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 > conduit-extra-1.1.9 conduit-1.2.4.2) (reinstall) (changes: > monad-control-1.0.0.4 -> 0.3.3.1) > conduit-1.2.4.2 (via: yesod-auth-1.4.5 yesod-persistent-1.4.0.2 > yesod-core-1.4.9.1 yaml-0.8.11 authenticate-1.3.2.11 > tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 persistent-2.1.6 > monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-extra-1.1.9) (reinstall) > conduit-extra-1.1.9 (via: yesod-1.4.0 yesod-auth-1.4.5 > yesod-core-1.4.9.1 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 > monad-logger-0.3.13.1) (reinstall) (changes: monad-control-1.0.0.4 -> > 0.3.3.1) > http-conduit-2.1.5 (via: yesod-auth-1.4.5 authenticate-1.3.2.11) > (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) > monad-logger-0.3.13.1 (via: yesod-1.4.0 yesod-core-1.4.9.1 > persistent-template-2.1.3.3 persistent-2.1.6) (reinstall) (changes: > monad-control-1.0.0.4 -> 0.3.3.1) > persistent-2.1.6 (via: yesod-auth-1.4.5 yesod-form-1.4.4.1 > yesod-persistent-1.4.0.2 persistent-template-2.1.3.3) (reinstall) (changes: > monad-control-1.0.0.4 -> 0.3.3.1) > persistent-template-2.1.3.3 (via: yesod-auth-1.4.5 > yesod-persistent-1.4.0.2) (reinstall) (changes: monad-control-1.0.0.4 -> > 0.3.3.1) > shakespeare-2.0.5 (via: yesod-1.4.0 yesod-auth-1.4.5 > yesod-form-1.4.4.1 yesod-core-1.4.9.1) (new package) > wai-extra-3.0.7.1 (via: yesod-1.4.0 yesod-core-1.4.9.1) (reinstall) > xml-conduit-1.3.0 (via: authenticate-1.3.2.11 > tagstream-conduit-0.5.5.3) (reinstall) (changes: monad-control-1.0.0.4 -> > 0.3.3.1) > tagstream-conduit-0.5.5.3 (via: authenticate-1.3.2.11) (reinstall) > authenticate-1.3.2.11 (via: yesod-auth-1.4.5) (reinstall) (changes: > monad-control-1.0.0.4 -> 0.3.3.1) > yaml-0.8.11 (via: yesod-1.4.0) (reinstall) > yesod-core-1.4.9.1 (via: yesod-1.4.0 yesod-auth-1.4.5 > yesod-form-1.4.4.1 yesod-persistent-1.4.0.2) (new package) > yesod-persistent-1.4.0.2 (via: yesod-1.4.0 yesod-auth-1.4.5 > yesod-form-1.4.4.1) (new package) > yesod-form-1.4.4.1 (via: yesod-1.4.0 yesod-auth-1.4.5) (new package) > yesod-auth-1.4.5 (via: yesod-1.4.0) (new package) > yesod-1.4.0 (latest: 1.4.1.5) (new package) > cabal: The following packages are likely to be broken by the > reinstalls: > pandoc-citeproc-0.7.1.1 > pandoc-1.14.0.4 > project-template-0.2.0 > http-reverse-proxy-0.4.2 > Use --force-reinstalls if you want to install anyway. > msantos@MBP-2[15:42]:~/System$cabal install yesod-1.2.6.1 > Resolving dependencies... > cabal: Could not resolve dependencies: > next goal: yesod (user goal) > rejecting: yesod-1.4.1.5, 1.4.1.4, 1.4.1.3, 1.4.1.2, 1.4.1.1, 1.4.1, > 1.4.0 > (global constraint requires ==1.2.6.1) > trying: yesod-1.2.6.1 > trying: streaming-commons-0.1.12.1/installed-200... (dependency of > yesod-1.2.6.1) > trying: warp-3.0.13.1/installed-150... (dependency of yesod-1.2.6.1) > next goal: yesod-form (dependency of yesod-1.2.6.1) > rejecting: yesod-form-1.4.4.1, 1.4.4, 1.4.3.1, 1.4.3, 1.4.2.1, > 1.4.2, 1.4.1.1, > 1.4.1, 1.4.0.2, 1.4.0.1, 1.4.0 (conflict: yesod => yesod-form>=1.3 > && <1.4) > trying: yesod-form-1.3.16 > next goal: persistent (dependency of yesod-form-1.3.16) > rejecting: persistent-2.1.6/installed-4f9..., 2.1.6, 2.1.5, 2.1.4, > 2.1.3, > 2.1.2, 2.1.1.7, 2.1.1.6, 2.1.1.5, 2.1.1.4, 2.1.1.3, 2.1.1.2, > 2.1.1.1, 2.1.1, > 2.1.0.2, 2.1.0.1, 2.1 (conflict: yesod-form => persistent>=1.2 && > <2.1) > trying: persistent-1.3.3 > trying: path-pieces-0.2.0/installed-533... (dependency of > persistent-1.3.3) > next goal: yesod-core (dependency of yesod-1.2.6.1) > rejecting: yesod-core-1.4.9.1, 1.4.9, 1.4.8.3, 1.4.8.2, 1.4.8.1, > 1.4.8, > 1.4.7.3, 1.4.7.2, 1.4.7.1, 1.4.7, 1.4.6.2, 1.4.6.1, 1.4.6, 1.4.5, > 1.4.4.5, > 1.4.4.4, 1.4.4.3, 1.4.4.2, 1.4.4.1, 1.4.4, 1.4.3.1, 1.4.3, 1.4.2, > 1.4.1.1, > 1.4.1, 1.4.0.2, 1.4.0.1, 1.4.0 (conflict: yesod => yesod-core>=1.2.2 > && <1.3) > rejecting: yesod-core-1.2.20.1, 1.2.20, 1.2.19.2, 1.2.19.1, 1.2.19, > 1.2.18, > 1.2.17, 1.2.16.1, 1.2.16, 1.2.15.2, 1.2.15.1, 1.2.15, 1.2.14, > 1.2.13.1, > 1.2.13, 1.2.12, 1.2.11.1, 1.2.11, 1.2.10, 1.2.9.2, 1.2.9.1, 1.2.9, > 1.2.8, > 1.2.7, 1.2.6.7, 1.2.6.6, 1.2.6.5, 1.2.6.4, 1.2.6.3, 1.2.6.2, 1.2.6.1 > (conflict: path-pieces==0.2.0/installed-533..., yesod-core => > path-pieces>=0.1.2 && <0.2) > rejecting: yesod-core-1.2.6 (conflict: streaming-commons => > text==1.1.0.0/installed-9bd..., yesod-core => text>=0.7 && <0.12) > rejecting: yesod-core-1.2.5, 1.2.4.5, 1.2.4.4, 1.2.4.3, 1.2.4.2, > 1.2.4.1, > 1.2.4, 1.2.3, 1.2.2 (conflict: warp => wai==3.0.2.3/installed-39c.. > ., > yesod-core => wai>=1.4 && <1.5) > rejecting: yesod-core-1.2.1, 1.2.0.4, 1.2.0.3, 1.2.0.2, 1.2.0.1, > 1.2.0, > 1.1.8.3, 1.1.8.2, 1.1.8.1, 1.1.8, 1.1.7.2, 1.1.7.1, 1.1.7, 1.1.6.1, > 1.1.6, > 1.1.5, 1.1.4.2, 1.1.4.1, 1.1.4, 1.1.3.1, 1.1.3, 1.1.2.2, 1.1.2.1, > 1.1.2, > 1.1.1.2, 1.1.1.1, 1.1.1, 1.1.0.1, 1.1.0, 1.0.1.3, 1.0.1.2, 1.0.1.1, > 1.0.1, > 1.0.0.2, 1.0.0.1, 1.0.0, 0.10.3, 0.10.2.2, 0.10.2.1, 0.10.2, 0.10.1, > 0.9.4.1, > 0.9.4, 0.9.3.6, 0.9.3.5, 0.9.3.4, 0.9.3.3, 0.9.3.2, 0.9.3.1, 0.9.3, > 0.9.2, > 0.9.1.1, 0.9.1, 0.8.3.2, 0.8.3.1, 0.8.3, 0.8.2, 0.8.1, 0.8.0.1, > 0.8.0, > 0.7.0.2, 0.7.0.1, 0.7.0 (conflict: yesod => yesod-core>=1.2.2 && > <1.3) > Backjump limit reached (change with --max-backjumps). > > -- > Public key ID: E8FE60D7 > Public key server: see, e.g., hkp://keys.gnupg.net > > On Thu, Jun 18, 2015 at 3:32 PM, Christopher Allen < > cma@bitemyapp.com> wrote: > >> Ah that's frustrating, that's my mistake – I'm sorry. I thought you >> were talking about GHC for Mac OS X not being available for your OS version >> either. >> >> Your best bet on HP is to specify an older version of Yesod that >> will work with the dependencies that your version of HP comes with. >> >> On Thu, Jun 18, 2015 at 2:08 PM, Miguel A. Santos < >> miguel.a.santos.l@gmail.com> wrote: >> >>> Indeed I saw that. That's what I meant with the bindist not being >>> available for OSX 10.6.8; only for 10.7+ >>> https://www.haskell.org/ghc/download_ghc_7_8_4#macosx_x86_64 >>> My bad, I should have said it before. >>> >>> >>> >>> -- >>> Public key ID: E8FE60D7 >>> Public key server: see, e.g., hkp://keys.gnupg.net >>> >>> On Thu, Jun 18, 2015 at 2:36 PM, Christopher Allen < >>> cma@bitemyapp.com> wrote: >>> >>>> Did you see that the Mac instructions said to follow the "other >>>> *nix" instructions if you were using an older version of Mac OS X? >>>> >>>> Those link here: >>>> https://www.haskell.org/ghc/download_ghc_7_8_4#binaries >>>> >>>> Get rid of all that (GHC, HP, Cabal), then install GHC using the >>>> bindist for Mac OS X linked above. >>>> >>>> On Thu, Jun 18, 2015 at 1:14 PM, Miguel A. Santos < >>>> miguel.a.santos.l@gmail.com> wrote: >>>> >>>>> That is obviously a typo: I meant I *did* do a fresh install of >>>>> the Haskell Platform and cabal before >>>>> trying -and failing- to install yesod. >>>>> >>>>> On Thu, Jun 18, 2015 at 1:38 PM, Miguel A. Santos < >>>>> miguel.a.santos.l@gmail.com> wrote: >>>>> >>>>>> This corresponds to a fresh install of the HP, ghc, and cabal I >>>>>> didn't before trying to install yesod. >>>>>> >>>>> >>>>> >>>>> -- >>>>> Public key ID: E8FE60D7 >>>>> Public key server: see, e.g., hkp://keys.gnupg.net >>>>> >>>>> _______________________________________________ >>>>> Haskell-Cafe mailing list >>>>> Haskell-Cafe@haskell.org >>>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe >>>>> >>>>> >>>> >>>> >>>> -- >>>> Chris Allen >>>> Currently working on http://haskellbook.com >>>> >>> >>> >> >> >> -- >> Chris Allen >> Currently working on http://haskellbook.com >> > >
-- Chris Allen Currently working on http://haskellbook.com
-- Chris Allen Currently working on http://haskellbook.com
-- Chris Allen Currently working on http://haskellbook.com

Hi, Miguel. Haskell Platform includes GHC itself and some set of packages, such as text, network, and etc. If I recall correctly thete was issues with Yesod and HP because some package versions and the best way to install Yesod were sandboxes, because sandbox have its own package database. Removing or just moving .ghc folder helped me in past several times, usually it was needed when different projects depends on different package versions, now I put every project inside sandbox to prevent this. As for pandoc, if you use only binary you can install it having no GHC at all (download package installer from website). If I were you I'll install GHC 7.8.* alone rather than Platform, caball-install 1.22.* and try to build everything againg using sandboxes. Also there is a Stackage and its tools (stackage-cli and recently released stack), they are very helpful in caball-hell issues. Also there is Halcyon but I have not tried it myself. Apologize for missing links, I'm mobile now. 3:23 до полудня, пт, 19.06.2015, Miguel A. Santos < miguel.a.santos.l@gmail.com>:
One more detail about my try with rm ~/.ghc: I find it curious that I didn't get that directory rebuild again when trying to install yesod. Did I miss something?
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 6:18 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
Ok, removing ~/.ghc (actually just moving it to ~/.ghc-org) didn't work either. The detailed output is below but from a cursory view it seems not much better than within the sandbox try before.
I understand I'm staying in the "past" and with that comes problems like this one, but upgrading to Yellowstone is not an option for me.
I have some questions about your other options. In particular, I'm not sure what you mean by (capitals) GHC. I thought that's just the compiler. I don't understand your first sentence after "vanilla". What is what I got with HP if not GHC for MacOSX!?
About point 2., I'm building (already for hours, that's the 'other' process I'd running) ghc from the tarball ghc-7.8.4-src.tar.bz2 available at the bottom of that same link we mentioned before, namely, https://www.haskell.org/ghc/download_ghc_7_8_4#binaries Is this the same as what you mean by this 2nd option? Mind you I'm already using version 7.8.3. How will a new version of the compiler change what looks like a compatibility problem with a package? or you mean it is not that simple?
Option 3: It seems to me I may as well just remove everything, install HP again (already downloaded) and after that step finishes, trying installing right away yesod, before I try with any other packages. Seems a path based mostly on blind hope than logic to me :-p as the only big thing I installed between my fresh install of HP and my initial try of yesod was pandoc, which had some large dependencies to deal with. But it's a simple one, so I may check it definitely out of the equation.
Option 4: I guess this is something I can try right away without much effort. To be concrete you mean then cabal install --allow-newer yesod ?
Btw, thanks so much for your prompt help!
-------------------------------------------- msantos@MBP-2[17:09]:~/System/YESOD$mv ~/.ghc/ ~/.ghc-org msantos@MBP-2[17:30]:~$cabal install yesod==1.2.6.1 Warning: The package list for 'hackage.haskell.org' is 15.0 days old. Run 'cabal update' to get the latest list of available packages. Resolving dependencies... cabal: Could not resolve dependencies: next goal: yesod (user goal) rejecting: yesod-1.4.1.5, 1.4.1.4, 1.4.1.3, 1.4.1.2, 1.4.1.1, 1.4.1, 1.4.0 (global constraint requires ==1.2.6.1) trying: yesod-1.2.6.1 trying: streaming-commons-0.1.12.1 (dependency of yesod-1.2.6.1) trying: network-2.4.2.3/installed-575... (dependency of streaming-commons-0.1.12.1) trying: parsec-3.1.5/installed-04a... (dependency of network-2.4.2.3/installed-575...) trying: mtl-2.1.3.1/installed-8bc... (dependency of parsec-3.1.5/installed-04a...) trying: shakespeare-2.0.5 (dependency of yesod-1.2.6.1) trying: exceptions-0.8.0.2 (dependency of shakespeare-2.0.5) trying: transformers-compat-0.4.0.4 (dependency of exceptions-0.8.0.2) trying: transformers-compat-0.4.0.4:-two rejecting: transformers-compat-0.4.0.4:-three (conflict: mtl => transformers==0.3.0.0/installed-16a..., transformers-compat-0.4.0.4:three => transformers>=0.4.1 && <0.5) rejecting: transformers-compat-0.4.0.4:+three (manual flag can only be changed explicitly) Backjump limit reached (change with --max-backjumps).
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 5:15 PM, Christopher Allen
wrote: You don't need to rm -rf ~/.ghc if you're using a sandbox. The sandbox (usually) occludes the user package-db.
Well, the sandbox may not have fixed the incompatibility of HP and that particular version of Yesod, but we're better information from the dependency solver.
That said, this is going to simply require a lot of trial and error if you want to try this approach and me telling you increment/decrement versions isn't going to be any faster.
I'd say your best options are:
1. Upgrade your installation of Mac OS X so you can use the vanilla GHC bindist, or even better, GHC for Mac OS X
2. Use your copy of Haskell Platform to build GHC from source and use that instead of GHC (possibly a quagmire, might work out okay. Will take a long time to build.)
3. Unregister all the unnecessary packages from your global package-db. Listing here: https://www.haskell.org/platform/changelog.html (Additional Platform Libraries, do *not* uninstall any of the core libraries) If you make a mistake you may need to reinstall Platform.
4. Give passing --allow-newer to cabal install a shot.
This is rough. Not that many people on <10.7 OS X versions so there aren't enough squeaky wheels for this sort of thing.
Sorry I couldn't do more.
On Thu, Jun 18, 2015 at 3:54 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
Hmm.. wouldn't that mean, I later have to reinstall all my packages? :-/
Meanwhile, I did try the sandbox way. It didn't work either. Briefly I issued cabal sandbox init and then cabal install yesod-1.2.6.1 Details below.
The initial complain about not being able to resolve dependencies makes me think I may be missing more things about working with sandboxes. Just checked
https://www.haskell.org/cabal/users-guide/installing-packages.html#developin... and guessed the init would be enough.
-------------------------------------------------------- msantos@MBP-2[16:38]:~/System/YESOD/Sandbox$cabal sandbox init Writing a default package environment file to /Users/msantos/System/YESOD/Sandbox/cabal.sandbox.config Creating a new sandbox at /Users/msantos/System/YESOD/Sandbox/.cabal-sandbox msantos@MBP-2[16:41]:~/System/YESOD/Sandbox$cabal install yesod-1.2.6.1 Resolving dependencies... cabal: Could not resolve dependencies: next goal: yesod (user goal) rejecting: yesod-1.4.1.5, 1.4.1.4, 1.4.1.3, 1.4.1.2, 1.4.1.1, 1.4.1, 1.4.0 (global constraint requires ==1.2.6.1) trying: yesod-1.2.6.1 trying: streaming-commons-0.1.12.1 (dependency of yesod-1.2.6.1) trying: network-2.4.2.3/installed-575... (dependency of streaming-commons-0.1.12.1) trying: parsec-3.1.5/installed-04a... (dependency of network-2.4.2.3/installed-575...) trying: mtl-2.1.3.1/installed-8bc... (dependency of parsec-3.1.5/installed-04a...) trying: shakespeare-2.0.5 (dependency of yesod-1.2.6.1) trying: exceptions-0.8.0.2 (dependency of shakespeare-2.0.5) trying: transformers-compat-0.4.0.4 (dependency of exceptions-0.8.0.2) trying: transformers-compat-0.4.0.4:-two rejecting: transformers-compat-0.4.0.4:-three (conflict: mtl => transformers==0.3.0.0/installed-16a..., transformers-compat-0.4.0.4:three => transformers>=0.4.1 && <0.5) rejecting: transformers-compat-0.4.0.4:+three (manual flag can only be changed explicitly) Backjump limit reached (change with --max-backjumps).
Note: when using a sandbox, all packages are required to have consistent dependencies. Try reinstalling/unregistering the offending packages or recreating the sandbox.
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 4:46 PM, Christopher Allen
wrote: If you won't use a sandbox, then lets nuke your user package-db and start from scratch:
rm -rf ~/.ghc cabal install yesod==1.2.6.1
On Thu, Jun 18, 2015 at 3:28 PM, Miguel A. Santos < miguel.a.santos.l@gmail.com> wrote:
I haven't yet read how to use sandboxes, so, no, that I tried just like that cabal install... I did check first that cabal info yesod was saying I didn't have it install. But now that you mention it, I did may have had other packages lingering around from my last attempt of installing yesod.
Meanwhile I did run forcing the install of 1.4.0... Ah, it finished with cabal install --force-reinstalls yesod-1.4.0 and... it complains about the shakespeare.
"shakespeare-2.0.5 failed during the building phase. The exception was: ExitFailure 1"
Below the full output.
I'll give a try to the sandbox solution.
------------------------------------------------ msantos@MBP-2[16:09]:~/System/YESOD$cabal install --force-reinstalls yesod-1.4.0 Resolving dependencies... Warning: The following packages are likely to be broken by the reinstalls: pandoc-citeproc-0.7.1.1 pandoc-1.14.0.4 project-template-0.2.0 http-reverse-proxy-0.4.2 Continuing even though the plan contains dangerous reinstalls. Downloading monad-control-0.3.3.1... Configuring shakespeare-2.0.5... Configuring monad-control-0.3.3.1... Building monad-control-0.3.3.1... Building shakespeare-2.0.5... Installed monad-control-0.3.3.1 Configuring lifted-base-0.2.3.6... Building lifted-base-0.2.3.6... Configuring resource-pool-0.2.3.2... Installed lifted-base-0.2.3.6 Building resource-pool-0.2.3.2... Installed resource-pool-0.2.3.2 Configuring enclosed-exceptions-1.0.1.1... Building enclosed-exceptions-1.0.1.1... Configuring resourcet-1.1.5... Installed enclosed-exceptions-1.0.1.1 Building resourcet-1.1.5... Failed to install shakespeare-2.0.5 Build log ( /Users/msantos/.cabal/logs/shakespeare-2.0.5.log ): Configuring shakespeare-2.0.5... Building shakespeare-2.0.5... Preprocessing library shakespeare-2.0.5... [ 1 of 17] Compiling Text.MkSizeType ( Text/MkSizeType.hs, dist/build/Text/MkSizeType.o ) [ 2 of 17] Compiling Text.IndentToBrace ( Text/IndentToBrace.hs, dist/build/Text/IndentToBrace.o ) [ 3 of 17] Compiling Text.Shakespeare.Base ( Text/Shakespeare/Base.hs, dist/build/Text/Shakespeare/Base.o ) [ 4 of 17] Compiling Text.Hamlet.Parse ( Text/Hamlet/Parse.hs, dist/build/Text/Hamlet/Parse.o ) [ 5 of 17] Compiling Text.Hamlet ( Text/Hamlet.hs, dist/build/Text/Hamlet.o )
Text/Hamlet.hs:402:1: Warning: Defined but not used: ‘varName’
Text/Hamlet.hs:406:1: Warning: Defined but not used: ‘strToExp’
Text/Hamlet.hs:439:16: Warning: Defined but not used: ‘html’
Text/Hamlet.hs:440:14: Warning: Defined but not used: ‘url’
Text/Hamlet.hs:441:19: Warning: Defined but not used: ‘url’
Text/Hamlet.hs:442:16: Warning: Defined but not used: ‘url’
Text/Hamlet.hs:443:20: Warning: Defined but not used: ‘msg_url’
Text/Hamlet.hs:444:14: Warning: Defined but not used: ‘msg’
Text/Hamlet.hs:488:43: Warning: This binding for ‘c’ shadows the existing binding bound at Text/Hamlet.hs:484:13 [ 6 of 17] Compiling Text.Hamlet.RT ( Text/Hamlet/RT.hs, dist/build/Text/Hamlet/RT.o )
Text/Hamlet/RT.hs:78:13: Warning: Defined but not used: ‘x’
Text/Hamlet/RT.hs:78:26: Warning: Defined but not used: ‘deref’
Text/Hamlet/RT.hs:78:45: Warning: Defined but not used: ‘docs’
Text/Hamlet/RT.hs:85:13: Warning: Defined but not used: ‘x’
Text/Hamlet/RT.hs:85:25: Warning: Defined but not used: ‘deref’
Text/Hamlet/RT.hs:85:44: Warning: Defined but not used: ‘jdocs’
Text/Hamlet/RT.hs:85:50: Warning: Defined but not used: ‘ndocs’
Text/Hamlet/RT.hs:115:37: Warning: This binding for ‘x’ shadows the existing binding bound at Text/Hamlet/RT.hs:108:13 [ 7 of 17] Compiling Text.Shakespeare ( Text/Shakespeare.hs, dist/build/Text/Shakespeare.o ) [ 8 of 17] Compiling Text.Shakespeare.Text ( Text/Shakespeare/Text.hs, dist/build/Text/Shakespeare/Text.o ) [ 9 of 17] Compiling Text.Julius ( Text/Julius.hs, dist/build/Text/Julius.o )
Text/Julius.hs:90:63: Warning: In the use of ‘fromValue’ (imported from Data.Aeson.Encode): Deprecated: "Use 'encodeToTextBuilder' instead" [10 of 17] Compiling Text.Roy ( Text/Roy.hs, dist/build/Text/Roy.o ) [11 of 17] Compiling Text.Coffee ( Text/Coffee.hs, dist/build/Text/Coffee.o ) [12 of 17] Compiling Text.Css ( Text/Css.hs, dist/build/Text/Css.o )
Text/Css.hs:349:40: Warning: Defined but not used: ‘subblocks’
Text/Css.hs:367:5: Warning: Defined but not used: ‘subGo’ [13 of 17] Compiling Text.CssCommon ( Text/CssCommon.hs, dist/build/Text/CssCommon.o ) Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Loading package array-0.5.0.0 ... linking ... done. Loading package deepseq-1.3.0.2 ... linking ... done. Loading package filepath-1.3.0.2 ... linking ... done. Loading package old-locale-1.0.0.6 ... linking ... done. Loading package time-1.4.2 ... linking ... done. Loading package bytestring-0.10.4.0 ... linking ... done. Loading package unix-2.7.0.1 ... linking ... done. Loading package directory-1.2.1.0 ... linking ... done. Loading package process-1.2.0.0 ... linking ... done. Loading package transformers-0.3.0.0 ... linking ... done. Loading package mtl-2.1.3.1 ... linking ... done. Loading package text-1.1.0.0 ... linking ... done. Loading package parsec-3.1.5 ... <command line>: can't load .so/.DLL for: /Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib (dlopen(/Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib, 9): Library not loaded: @rpath/libHStext-1.1.0.0-ghc7.8.3.dylib Referenced from: /Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib Reason: image not found) Installed resourcet-1.1.5 Configuring wai-extra-3.0.7.1... Configuring conduit-1.2.4.2... Building conduit-1.2.4.2... Building wai-extra-3.0.7.1... Installed conduit-1.2.4.2 Configuring conduit-extra-1.1.9... Building conduit-extra-1.1.9... Configuring http-conduit-2.1.5... Installed wai-extra-3.0.7.1 Building http-conduit-2.1.5... Configuring yaml-0.8.11... Installed http-conduit-2.1.5 Building yaml-0.8.11... Installed conduit-extra-1.1.9 Configuring monad-logger-0.3.13.1... Building monad-logger-0.3.13.1... Configuring xml-conduit-1.3.0... Installed monad-logger-0.3.13.1 Building xml-conduit-1.3.0... Installed yaml-0.8.11 Configuring persistent-2.1.6... Building persistent-2.1.6... Installed xml-conduit-1.3.0 Configuring tagstream-conduit-0.5.5.3... Building tagstream-conduit-0.5.5.3... Installed tagstream-conduit-0.5.5.3 Configuring authenticate-1.3.2.11... Building authenticate-1.3.2.11... Installed authenticate-1.3.2.11 Installed persistent-2.1.6 Configuring persistent-template-2.1.3.3... Building persistent-template-2.1.3.3... Installed persistent-template-2.1.3.3 Updating documentation index
/Users/msantos/Library/Haskell/share/doc/x86_64-osx-ghc-7.8.3/index.html cabal: Error: some packages failed to install: shakespeare-2.0.5 failed during the building phase. The exception was: ExitFailure 1 yesod-1.4.0 depends on shakespeare-2.0.5 which failed to install. yesod-auth-1.4.5 depends on shakespeare-2.0.5 which failed to install. yesod-core-1.4.9.1 depends on shakespeare-2.0.5 which failed to install. yesod-form-1.4.4.1 depends on shakespeare-2.0.5 which failed to install. yesod-persistent-1.4.0.2 depends on shakespeare-2.0.5 which failed to install.
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 4:16 PM, Christopher Allen
wrote: > Some of that looks like churn from trying to install an older > version of Yesod over a newer one. Are you using a sandbox? if so, did you > wipe it out before attempting Yesod 1.2.6.1? What we'd be looking for is a > package conflict that tells you which package of what version that is > globally installed is causing the conflict. > > Insta-Yesodian conflict implies you're reinstalling into a not-fresh > packgage-db which means you either need to wipe your user package-db or use > a sandbox. (I recommend the latter). > > If you haven't done so, do that, then re-attempt that version of > Yesod (1.2.6.1). > > > > On Thu, Jun 18, 2015 at 2:57 PM, Miguel A. Santos < > miguel.a.santos.l@gmail.com> wrote: > >> Thanks! No problem. I gave a try to your suggestion. It doesn't >> look I'll get yesod installed without "paying" >> a bigger price than just "downgrading". :-/ >> >> Yesod 1.4.0 warns that forcing installing it will likely break >> pandoc, among other things. >> I can give it a try though, but I really use pandoc regularly. >> Plus, it's still not clear that the building process >> will not fail. And installing pandoc took me surprisingly a lot of >> time last time. >> >> Forcing Yesod-1.2.6.1 won't allow cabal to satisfy the dependencies. >> >> I guess I could keep trying other versions and see. But I think >> I'll try the 1.4.0 first. Will post here >> the results so that at least others may hopefully benefit from this. >> >> >> ----------------------------------------------------------------------------------------- >> msantos@MBP-2[15:42]:~/System$cabal install yesod-1.4.0 >> Resolving dependencies... >> In order, the following would be installed: >> monad-control-0.3.3.1 (latest: 1.0.0.4) (via: yesod-1.4.0 >> yesod-core-1.4.9.1 authenticate-1.3.2.11 xml-conduit-1.3.0 >> persistent-template-2.1.3.3 persistent-2.1.6 monad-logger-0.3.13.1 >> http-conduit-2.1.5 conduit-extra-1.1.9 resourcet-1.1.5 >> resource-pool-0.2.3.2 enclosed-exceptions-1.0.1.1 lifted-base-0.2.3.6) (new >> version) >> lifted-base-0.2.3.6 (via: yesod-auth-1.4.5 yesod-core-1.4.9.1 >> wai-extra-3.0.7.1 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 >> conduit-1.2.4.2 resourcet-1.1.5 enclosed-exceptions-1.0.1.1) (reinstall) >> (changes: monad-control-1.0.0.4 -> 0.3.3.1) >> enclosed-exceptions-1.0.1.1 (via: yaml-0.8.11) (reinstall) >> (changes: monad-control-1.0.0.4 -> 0.3.3.1) >> resource-pool-0.2.3.2 (via: yesod-persistent-1.4.0.2 >> persistent-2.1.6) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) >> resourcet-1.1.5 (via: yesod-auth-1.4.5 yesod-form-1.4.4.1 >> yesod-persistent-1.4.0.2 yesod-core-1.4.9.1 yaml-0.8.11 >> authenticate-1.3.2.11 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 >> wai-extra-3.0.7.1 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 >> conduit-extra-1.1.9 conduit-1.2.4.2) (reinstall) (changes: >> monad-control-1.0.0.4 -> 0.3.3.1) >> conduit-1.2.4.2 (via: yesod-auth-1.4.5 yesod-persistent-1.4.0.2 >> yesod-core-1.4.9.1 yaml-0.8.11 authenticate-1.3.2.11 >> tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 persistent-2.1.6 >> monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-extra-1.1.9) (reinstall) >> conduit-extra-1.1.9 (via: yesod-1.4.0 yesod-auth-1.4.5 >> yesod-core-1.4.9.1 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 >> monad-logger-0.3.13.1) (reinstall) (changes: monad-control-1.0.0.4 -> >> 0.3.3.1) >> http-conduit-2.1.5 (via: yesod-auth-1.4.5 authenticate-1.3.2.11) >> (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) >> monad-logger-0.3.13.1 (via: yesod-1.4.0 yesod-core-1.4.9.1 >> persistent-template-2.1.3.3 persistent-2.1.6) (reinstall) (changes: >> monad-control-1.0.0.4 -> 0.3.3.1) >> persistent-2.1.6 (via: yesod-auth-1.4.5 yesod-form-1.4.4.1 >> yesod-persistent-1.4.0.2 persistent-template-2.1.3.3) (reinstall) (changes: >> monad-control-1.0.0.4 -> 0.3.3.1) >> persistent-template-2.1.3.3 (via: yesod-auth-1.4.5 >> yesod-persistent-1.4.0.2) (reinstall) (changes: monad-control-1.0.0.4 -> >> 0.3.3.1) >> shakespeare-2.0.5 (via: yesod-1.4.0 yesod-auth-1.4.5 >> yesod-form-1.4.4.1 yesod-core-1.4.9.1) (new package) >> wai-extra-3.0.7.1 (via: yesod-1.4.0 yesod-core-1.4.9.1) (reinstall) >> xml-conduit-1.3.0 (via: authenticate-1.3.2.11 >> tagstream-conduit-0.5.5.3) (reinstall) (changes: monad-control-1.0.0.4 -> >> 0.3.3.1) >> tagstream-conduit-0.5.5.3 (via: authenticate-1.3.2.11) (reinstall) >> authenticate-1.3.2.11 (via: yesod-auth-1.4.5) (reinstall) (changes: >> monad-control-1.0.0.4 -> 0.3.3.1) >> yaml-0.8.11 (via: yesod-1.4.0) (reinstall) >> yesod-core-1.4.9.1 (via: yesod-1.4.0 yesod-auth-1.4.5 >> yesod-form-1.4.4.1 yesod-persistent-1.4.0.2) (new package) >> yesod-persistent-1.4.0.2 (via: yesod-1.4.0 yesod-auth-1.4.5 >> yesod-form-1.4.4.1) (new package) >> yesod-form-1.4.4.1 (via: yesod-1.4.0 yesod-auth-1.4.5) (new package) >> yesod-auth-1.4.5 (via: yesod-1.4.0) (new package) >> yesod-1.4.0 (latest: 1.4.1.5) (new package) >> cabal: The following packages are likely to be broken by the >> reinstalls: >> pandoc-citeproc-0.7.1.1 >> pandoc-1.14.0.4 >> project-template-0.2.0 >> http-reverse-proxy-0.4.2 >> Use --force-reinstalls if you want to install anyway. >> msantos@MBP-2[15:42]:~/System$cabal install yesod-1.2.6.1 >> Resolving dependencies... >> cabal: Could not resolve dependencies: >> next goal: yesod (user goal) >> rejecting: yesod-1.4.1.5, 1.4.1.4, 1.4.1.3, 1.4.1.2, 1.4.1.1, >> 1.4.1, 1.4.0 >> (global constraint requires ==1.2.6.1) >> trying: yesod-1.2.6.1 >> trying: streaming-commons-0.1.12.1/installed-200... (dependency of >> yesod-1.2.6.1) >> trying: warp-3.0.13.1/installed-150... (dependency of yesod-1.2.6.1) >> next goal: yesod-form (dependency of yesod-1.2.6.1) >> rejecting: yesod-form-1.4.4.1, 1.4.4, 1.4.3.1, 1.4.3, 1.4.2.1, >> 1.4.2, 1.4.1.1, >> 1.4.1, 1.4.0.2, 1.4.0.1, 1.4.0 (conflict: yesod => yesod-form>=1.3 >> && <1.4) >> trying: yesod-form-1.3.16 >> next goal: persistent (dependency of yesod-form-1.3.16) >> rejecting: persistent-2.1.6/installed-4f9..., 2.1.6, 2.1.5, 2.1.4, >> 2.1.3, >> 2.1.2, 2.1.1.7, 2.1.1.6, 2.1.1.5, 2.1.1.4, 2.1.1.3, 2.1.1.2, >> 2.1.1.1, 2.1.1, >> 2.1.0.2, 2.1.0.1, 2.1 (conflict: yesod-form => persistent>=1.2 && >> <2.1) >> trying: persistent-1.3.3 >> trying: path-pieces-0.2.0/installed-533... (dependency of >> persistent-1.3.3) >> next goal: yesod-core (dependency of yesod-1.2.6.1) >> rejecting: yesod-core-1.4.9.1, 1.4.9, 1.4.8.3, 1.4.8.2, 1.4.8.1, >> 1.4.8, >> 1.4.7.3, 1.4.7.2, 1.4.7.1, 1.4.7, 1.4.6.2, 1.4.6.1, 1.4.6, 1.4.5, >> 1.4.4.5, >> 1.4.4.4, 1.4.4.3, 1.4.4.2, 1.4.4.1, 1.4.4, 1.4.3.1, 1.4.3, 1.4.2, >> 1.4.1.1, >> 1.4.1, 1.4.0.2, 1.4.0.1, 1.4.0 (conflict: yesod => >> yesod-core>=1.2.2 && <1.3) >> rejecting: yesod-core-1.2.20.1, 1.2.20, 1.2.19.2, 1.2.19.1, 1.2.19, >> 1.2.18, >> 1.2.17, 1.2.16.1, 1.2.16, 1.2.15.2, 1.2.15.1, 1.2.15, 1.2.14, >> 1.2.13.1, >> 1.2.13, 1.2.12, 1.2.11.1, 1.2.11, 1.2.10, 1.2.9.2, 1.2.9.1, 1.2.9, >> 1.2.8, >> 1.2.7, 1.2.6.7, 1.2.6.6, 1.2.6.5, 1.2.6.4, 1.2.6.3, 1.2.6.2, 1.2.6.1 >> (conflict: path-pieces==0.2.0/installed-533..., yesod-core => >> path-pieces>=0.1.2 && <0.2) >> rejecting: yesod-core-1.2.6 (conflict: streaming-commons => >> text==1.1.0.0/installed-9bd..., yesod-core => text>=0.7 && <0.12) >> rejecting: yesod-core-1.2.5, 1.2.4.5, 1.2.4.4, 1.2.4.3, 1.2.4.2, >> 1.2.4.1, >> 1.2.4, 1.2.3, 1.2.2 (conflict: warp => wai==3.0.2.3/installed-39c.. >> ., >> yesod-core => wai>=1.4 && <1.5) >> rejecting: yesod-core-1.2.1, 1.2.0.4, 1.2.0.3, 1.2.0.2, 1.2.0.1, >> 1.2.0, >> 1.1.8.3, 1.1.8.2, 1.1.8.1, 1.1.8, 1.1.7.2, 1.1.7.1, 1.1.7, 1.1.6.1, >> 1.1.6, >> 1.1.5, 1.1.4.2, 1.1.4.1, 1.1.4, 1.1.3.1, 1.1.3, 1.1.2.2, 1.1.2.1, >> 1.1.2, >> 1.1.1.2, 1.1.1.1, 1.1.1, 1.1.0.1, 1.1.0, 1.0.1.3, 1.0.1.2, 1.0.1.1, >> 1.0.1, >> 1.0.0.2, 1.0.0.1, 1.0.0, 0.10.3, 0.10.2.2, 0.10.2.1, 0.10.2, >> 0.10.1, 0.9.4.1, >> 0.9.4, 0.9.3.6, 0.9.3.5, 0.9.3.4, 0.9.3.3, 0.9.3.2, 0.9.3.1, 0.9.3, >> 0.9.2, >> 0.9.1.1, 0.9.1, 0.8.3.2, 0.8.3.1, 0.8.3, 0.8.2, 0.8.1, 0.8.0.1, >> 0.8.0, >> 0.7.0.2, 0.7.0.1, 0.7.0 (conflict: yesod => yesod-core>=1.2.2 && >> <1.3) >> Backjump limit reached (change with --max-backjumps). >> >> -- >> Public key ID: E8FE60D7 >> Public key server: see, e.g., hkp://keys.gnupg.net >> >> On Thu, Jun 18, 2015 at 3:32 PM, Christopher Allen < >> cma@bitemyapp.com> wrote: >> >>> Ah that's frustrating, that's my mistake – I'm sorry. I thought >>> you were talking about GHC for Mac OS X not being available for your OS >>> version either. >>> >>> Your best bet on HP is to specify an older version of Yesod that >>> will work with the dependencies that your version of HP comes with. >>> >>> On Thu, Jun 18, 2015 at 2:08 PM, Miguel A. Santos < >>> miguel.a.santos.l@gmail.com> wrote: >>> >>>> Indeed I saw that. That's what I meant with the bindist not being >>>> available for OSX 10.6.8; only for 10.7+ >>>> https://www.haskell.org/ghc/download_ghc_7_8_4#macosx_x86_64 >>>> My bad, I should have said it before. >>>> >>>> >>>> >>>> -- >>>> Public key ID: E8FE60D7 >>>> Public key server: see, e.g., hkp://keys.gnupg.net >>>> >>>> On Thu, Jun 18, 2015 at 2:36 PM, Christopher Allen < >>>> cma@bitemyapp.com> wrote: >>>> >>>>> Did you see that the Mac instructions said to follow the "other >>>>> *nix" instructions if you were using an older version of Mac OS X? >>>>> >>>>> Those link here: >>>>> https://www.haskell.org/ghc/download_ghc_7_8_4#binaries >>>>> >>>>> Get rid of all that (GHC, HP, Cabal), then install GHC using the >>>>> bindist for Mac OS X linked above. >>>>> >>>>> On Thu, Jun 18, 2015 at 1:14 PM, Miguel A. Santos < >>>>> miguel.a.santos.l@gmail.com> wrote: >>>>> >>>>>> That is obviously a typo: I meant I *did* do a fresh install of >>>>>> the Haskell Platform and cabal before >>>>>> trying -and failing- to install yesod. >>>>>> >>>>>> On Thu, Jun 18, 2015 at 1:38 PM, Miguel A. Santos < >>>>>> miguel.a.santos.l@gmail.com> wrote: >>>>>> >>>>>>> This corresponds to a fresh install of the HP, ghc, and cabal >>>>>>> I didn't before trying to install yesod. >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Public key ID: E8FE60D7 >>>>>> Public key server: see, e.g., hkp://keys.gnupg.net >>>>>> >>>>>> _______________________________________________ >>>>>> Haskell-Cafe mailing list >>>>>> Haskell-Cafe@haskell.org >>>>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Chris Allen >>>>> Currently working on http://haskellbook.com >>>>> >>>> >>>> >>> >>> >>> -- >>> Chris Allen >>> Currently working on http://haskellbook.com >>> >> >> > > > -- > Chris Allen > Currently working on http://haskellbook.com >
-- Chris Allen Currently working on http://haskellbook.com
-- Chris Allen Currently working on http://haskellbook.com
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe

Hi,
I think Stackage will solve these issues - indeed, I believe that
Stackage grew out of the difficulty of installing Yesod and its
dependencies straight from Hackage using cabal.
If you download https://www.stackage.org/lts/cabal.config next to your
own .cabal file then it will constrain cabal to only use a set of
packages which are known to be mutually compatible.
Hope that helps,
David
On 19 June 2015 at 08:37, Geraldus
Hi, Miguel. Haskell Platform includes GHC itself and some set of packages, such as text, network, and etc. If I recall correctly thete was issues with Yesod and HP because some package versions and the best way to install Yesod were sandboxes, because sandbox have its own package database. Removing or just moving .ghc folder helped me in past several times, usually it was needed when different projects depends on different package versions, now I put every project inside sandbox to prevent this. As for pandoc, if you use only binary you can install it having no GHC at all (download package installer from website). If I were you I'll install GHC 7.8.* alone rather than Platform, caball-install 1.22.* and try to build everything againg using sandboxes. Also there is a Stackage and its tools (stackage-cli and recently released stack), they are very helpful in caball-hell issues. Also there is Halcyon but I have not tried it myself. Apologize for missing links, I'm mobile now.
3:23 до полудня, пт, 19.06.2015, Miguel A. Santos
: One more detail about my try with rm ~/.ghc: I find it curious that I didn't get that directory rebuild again when trying to install yesod. Did I miss something?
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 6:18 PM, Miguel A. Santos
wrote: Ok, removing ~/.ghc (actually just moving it to ~/.ghc-org) didn't work either. The detailed output is below but from a cursory view it seems not much better than within the sandbox try before.
I understand I'm staying in the "past" and with that comes problems like this one, but upgrading to Yellowstone is not an option for me.
I have some questions about your other options. In particular, I'm not sure what you mean by (capitals) GHC. I thought that's just the compiler. I don't understand your first sentence after "vanilla". What is what I got with HP if not GHC for MacOSX!?
About point 2., I'm building (already for hours, that's the 'other' process I'd running) ghc from the tarball ghc-7.8.4-src.tar.bz2 available at the bottom of that same link we mentioned before, namely, https://www.haskell.org/ghc/download_ghc_7_8_4#binaries Is this the same as what you mean by this 2nd option? Mind you I'm already using version 7.8.3. How will a new version of the compiler change what looks like a compatibility problem with a package? or you mean it is not that simple?
Option 3: It seems to me I may as well just remove everything, install HP again (already downloaded) and after that step finishes, trying installing right away yesod, before I try with any other packages. Seems a path based mostly on blind hope than logic to me :-p as the only big thing I installed between my fresh install of HP and my initial try of yesod was pandoc, which had some large dependencies to deal with. But it's a simple one, so I may check it definitely out of the equation.
Option 4: I guess this is something I can try right away without much effort. To be concrete you mean then cabal install --allow-newer yesod ?
Btw, thanks so much for your prompt help!
-------------------------------------------- msantos@MBP-2[17:09]:~/System/YESOD$mv ~/.ghc/ ~/.ghc-org msantos@MBP-2[17:30]:~$cabal install yesod==1.2.6.1 Warning: The package list for 'hackage.haskell.org' is 15.0 days old. Run 'cabal update' to get the latest list of available packages. Resolving dependencies... cabal: Could not resolve dependencies: next goal: yesod (user goal) rejecting: yesod-1.4.1.5, 1.4.1.4, 1.4.1.3, 1.4.1.2, 1.4.1.1, 1.4.1, 1.4.0 (global constraint requires ==1.2.6.1) trying: yesod-1.2.6.1 trying: streaming-commons-0.1.12.1 (dependency of yesod-1.2.6.1) trying: network-2.4.2.3/installed-575... (dependency of streaming-commons-0.1.12.1) trying: parsec-3.1.5/installed-04a... (dependency of network-2.4.2.3/installed-575...) trying: mtl-2.1.3.1/installed-8bc... (dependency of parsec-3.1.5/installed-04a...) trying: shakespeare-2.0.5 (dependency of yesod-1.2.6.1) trying: exceptions-0.8.0.2 (dependency of shakespeare-2.0.5) trying: transformers-compat-0.4.0.4 (dependency of exceptions-0.8.0.2) trying: transformers-compat-0.4.0.4:-two rejecting: transformers-compat-0.4.0.4:-three (conflict: mtl => transformers==0.3.0.0/installed-16a..., transformers-compat-0.4.0.4:three => transformers>=0.4.1 && <0.5) rejecting: transformers-compat-0.4.0.4:+three (manual flag can only be changed explicitly) Backjump limit reached (change with --max-backjumps).
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 5:15 PM, Christopher Allen
wrote: You don't need to rm -rf ~/.ghc if you're using a sandbox. The sandbox (usually) occludes the user package-db.
Well, the sandbox may not have fixed the incompatibility of HP and that particular version of Yesod, but we're better information from the dependency solver.
That said, this is going to simply require a lot of trial and error if you want to try this approach and me telling you increment/decrement versions isn't going to be any faster.
I'd say your best options are:
1. Upgrade your installation of Mac OS X so you can use the vanilla GHC bindist, or even better, GHC for Mac OS X
2. Use your copy of Haskell Platform to build GHC from source and use that instead of GHC (possibly a quagmire, might work out okay. Will take a long time to build.)
3. Unregister all the unnecessary packages from your global package-db. Listing here: https://www.haskell.org/platform/changelog.html (Additional Platform Libraries, do *not* uninstall any of the core libraries) If you make a mistake you may need to reinstall Platform.
4. Give passing --allow-newer to cabal install a shot.
This is rough. Not that many people on <10.7 OS X versions so there aren't enough squeaky wheels for this sort of thing.
Sorry I couldn't do more.
On Thu, Jun 18, 2015 at 3:54 PM, Miguel A. Santos
wrote: Hmm.. wouldn't that mean, I later have to reinstall all my packages? :-/
Meanwhile, I did try the sandbox way. It didn't work either. Briefly I issued cabal sandbox init and then cabal install yesod-1.2.6.1 Details below.
The initial complain about not being able to resolve dependencies makes me think I may be missing more things about working with sandboxes. Just checked
https://www.haskell.org/cabal/users-guide/installing-packages.html#developin... and guessed the init would be enough.
-------------------------------------------------------- msantos@MBP-2[16:38]:~/System/YESOD/Sandbox$cabal sandbox init Writing a default package environment file to /Users/msantos/System/YESOD/Sandbox/cabal.sandbox.config Creating a new sandbox at /Users/msantos/System/YESOD/Sandbox/.cabal-sandbox msantos@MBP-2[16:41]:~/System/YESOD/Sandbox$cabal install yesod-1.2.6.1 Resolving dependencies... cabal: Could not resolve dependencies: next goal: yesod (user goal) rejecting: yesod-1.4.1.5, 1.4.1.4, 1.4.1.3, 1.4.1.2, 1.4.1.1, 1.4.1, 1.4.0 (global constraint requires ==1.2.6.1) trying: yesod-1.2.6.1 trying: streaming-commons-0.1.12.1 (dependency of yesod-1.2.6.1) trying: network-2.4.2.3/installed-575... (dependency of streaming-commons-0.1.12.1) trying: parsec-3.1.5/installed-04a... (dependency of network-2.4.2.3/installed-575...) trying: mtl-2.1.3.1/installed-8bc... (dependency of parsec-3.1.5/installed-04a...) trying: shakespeare-2.0.5 (dependency of yesod-1.2.6.1) trying: exceptions-0.8.0.2 (dependency of shakespeare-2.0.5) trying: transformers-compat-0.4.0.4 (dependency of exceptions-0.8.0.2) trying: transformers-compat-0.4.0.4:-two rejecting: transformers-compat-0.4.0.4:-three (conflict: mtl => transformers==0.3.0.0/installed-16a..., transformers-compat-0.4.0.4:three => transformers>=0.4.1 && <0.5) rejecting: transformers-compat-0.4.0.4:+three (manual flag can only be changed explicitly) Backjump limit reached (change with --max-backjumps).
Note: when using a sandbox, all packages are required to have consistent dependencies. Try reinstalling/unregistering the offending packages or recreating the sandbox.
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 4:46 PM, Christopher Allen
wrote: If you won't use a sandbox, then lets nuke your user package-db and start from scratch:
rm -rf ~/.ghc cabal install yesod==1.2.6.1
On Thu, Jun 18, 2015 at 3:28 PM, Miguel A. Santos
wrote: > > I haven't yet read how to use sandboxes, so, no, that I tried just > like that cabal install... > I did check first that cabal info yesod was saying I didn't have it > install. But now that you mention it, I did > may have had other packages lingering around from my last attempt of > installing yesod. > > Meanwhile I did run forcing the install of 1.4.0... > Ah, it finished with cabal install --force-reinstalls yesod-1.4.0 > and... > it complains about the shakespeare. > > "shakespeare-2.0.5 failed during the building phase. The exception > was: > ExitFailure 1" > > Below the full output. > > I'll give a try to the sandbox solution. > > ------------------------------------------------ > msantos@MBP-2[16:09]:~/System/YESOD$cabal install --force-reinstalls > yesod-1.4.0 > Resolving dependencies... > Warning: The following packages are likely to be broken by the > reinstalls: > pandoc-citeproc-0.7.1.1 > pandoc-1.14.0.4 > project-template-0.2.0 > http-reverse-proxy-0.4.2 > Continuing even though the plan contains dangerous reinstalls. > Downloading monad-control-0.3.3.1... > Configuring shakespeare-2.0.5... > Configuring monad-control-0.3.3.1... > Building monad-control-0.3.3.1... > Building shakespeare-2.0.5... > Installed monad-control-0.3.3.1 > Configuring lifted-base-0.2.3.6... > Building lifted-base-0.2.3.6... > Configuring resource-pool-0.2.3.2... > Installed lifted-base-0.2.3.6 > Building resource-pool-0.2.3.2... > Installed resource-pool-0.2.3.2 > Configuring enclosed-exceptions-1.0.1.1... > Building enclosed-exceptions-1.0.1.1... > Configuring resourcet-1.1.5... > Installed enclosed-exceptions-1.0.1.1 > Building resourcet-1.1.5... > Failed to install shakespeare-2.0.5 > Build log ( /Users/msantos/.cabal/logs/shakespeare-2.0.5.log ): > Configuring shakespeare-2.0.5... > Building shakespeare-2.0.5... > Preprocessing library shakespeare-2.0.5... > [ 1 of 17] Compiling Text.MkSizeType ( Text/MkSizeType.hs, > dist/build/Text/MkSizeType.o ) > [ 2 of 17] Compiling Text.IndentToBrace ( Text/IndentToBrace.hs, > dist/build/Text/IndentToBrace.o ) > [ 3 of 17] Compiling Text.Shakespeare.Base ( > Text/Shakespeare/Base.hs, dist/build/Text/Shakespeare/Base.o ) > [ 4 of 17] Compiling Text.Hamlet.Parse ( Text/Hamlet/Parse.hs, > dist/build/Text/Hamlet/Parse.o ) > [ 5 of 17] Compiling Text.Hamlet ( Text/Hamlet.hs, > dist/build/Text/Hamlet.o ) > > Text/Hamlet.hs:402:1: Warning: Defined but not used: ‘varName’ > > Text/Hamlet.hs:406:1: Warning: Defined but not used: ‘strToExp’ > > Text/Hamlet.hs:439:16: Warning: Defined but not used: ‘html’ > > Text/Hamlet.hs:440:14: Warning: Defined but not used: ‘url’ > > Text/Hamlet.hs:441:19: Warning: Defined but not used: ‘url’ > > Text/Hamlet.hs:442:16: Warning: Defined but not used: ‘url’ > > Text/Hamlet.hs:443:20: Warning: Defined but not used: ‘msg_url’ > > Text/Hamlet.hs:444:14: Warning: Defined but not used: ‘msg’ > > Text/Hamlet.hs:488:43: Warning: > This binding for ‘c’ shadows the existing binding > bound at Text/Hamlet.hs:484:13 > [ 6 of 17] Compiling Text.Hamlet.RT ( Text/Hamlet/RT.hs, > dist/build/Text/Hamlet/RT.o ) > > Text/Hamlet/RT.hs:78:13: Warning: Defined but not used: ‘x’ > > Text/Hamlet/RT.hs:78:26: Warning: Defined but not used: ‘deref’ > > Text/Hamlet/RT.hs:78:45: Warning: Defined but not used: ‘docs’ > > Text/Hamlet/RT.hs:85:13: Warning: Defined but not used: ‘x’ > > Text/Hamlet/RT.hs:85:25: Warning: Defined but not used: ‘deref’ > > Text/Hamlet/RT.hs:85:44: Warning: Defined but not used: ‘jdocs’ > > Text/Hamlet/RT.hs:85:50: Warning: Defined but not used: ‘ndocs’ > > Text/Hamlet/RT.hs:115:37: Warning: > This binding for ‘x’ shadows the existing binding > bound at Text/Hamlet/RT.hs:108:13 > [ 7 of 17] Compiling Text.Shakespeare ( Text/Shakespeare.hs, > dist/build/Text/Shakespeare.o ) > [ 8 of 17] Compiling Text.Shakespeare.Text ( > Text/Shakespeare/Text.hs, dist/build/Text/Shakespeare/Text.o ) > [ 9 of 17] Compiling Text.Julius ( Text/Julius.hs, > dist/build/Text/Julius.o ) > > Text/Julius.hs:90:63: Warning: > In the use of ‘fromValue’ (imported from Data.Aeson.Encode): > Deprecated: "Use 'encodeToTextBuilder' instead" > [10 of 17] Compiling Text.Roy ( Text/Roy.hs, > dist/build/Text/Roy.o ) > [11 of 17] Compiling Text.Coffee ( Text/Coffee.hs, > dist/build/Text/Coffee.o ) > [12 of 17] Compiling Text.Css ( Text/Css.hs, > dist/build/Text/Css.o ) > > Text/Css.hs:349:40: Warning: Defined but not used: ‘subblocks’ > > Text/Css.hs:367:5: Warning: Defined but not used: ‘subGo’ > [13 of 17] Compiling Text.CssCommon ( Text/CssCommon.hs, > dist/build/Text/CssCommon.o ) > Loading package ghc-prim ... linking ... done. > Loading package integer-gmp ... linking ... done. > Loading package base ... linking ... done. > Loading package array-0.5.0.0 ... linking ... done. > Loading package deepseq-1.3.0.2 ... linking ... done. > Loading package filepath-1.3.0.2 ... linking ... done. > Loading package old-locale-1.0.0.6 ... linking ... done. > Loading package time-1.4.2 ... linking ... done. > Loading package bytestring-0.10.4.0 ... linking ... done. > Loading package unix-2.7.0.1 ... linking ... done. > Loading package directory-1.2.1.0 ... linking ... done. > Loading package process-1.2.0.0 ... linking ... done. > Loading package transformers-0.3.0.0 ... linking ... done. > Loading package mtl-2.1.3.1 ... linking ... done. > Loading package text-1.1.0.0 ... linking ... done. > Loading package parsec-3.1.5 ... <command line>: can't load .so/.DLL > for: > /Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib > (dlopen(/Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib, > 9): Library not loaded: @rpath/libHStext-1.1.0.0-ghc7.8.3.dylib > Referenced from: > /Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib > Reason: image not found) > Installed resourcet-1.1.5 > Configuring wai-extra-3.0.7.1... > Configuring conduit-1.2.4.2... > Building conduit-1.2.4.2... > Building wai-extra-3.0.7.1... > Installed conduit-1.2.4.2 > Configuring conduit-extra-1.1.9... > Building conduit-extra-1.1.9... > Configuring http-conduit-2.1.5... > Installed wai-extra-3.0.7.1 > Building http-conduit-2.1.5... > Configuring yaml-0.8.11... > Installed http-conduit-2.1.5 > Building yaml-0.8.11... > Installed conduit-extra-1.1.9 > Configuring monad-logger-0.3.13.1... > Building monad-logger-0.3.13.1... > Configuring xml-conduit-1.3.0... > Installed monad-logger-0.3.13.1 > Building xml-conduit-1.3.0... > Installed yaml-0.8.11 > Configuring persistent-2.1.6... > Building persistent-2.1.6... > Installed xml-conduit-1.3.0 > Configuring tagstream-conduit-0.5.5.3... > Building tagstream-conduit-0.5.5.3... > Installed tagstream-conduit-0.5.5.3 > Configuring authenticate-1.3.2.11... > Building authenticate-1.3.2.11... > Installed authenticate-1.3.2.11 > Installed persistent-2.1.6 > Configuring persistent-template-2.1.3.3... > Building persistent-template-2.1.3.3... > Installed persistent-template-2.1.3.3 > Updating documentation index > > /Users/msantos/Library/Haskell/share/doc/x86_64-osx-ghc-7.8.3/index.html > cabal: Error: some packages failed to install: > shakespeare-2.0.5 failed during the building phase. The exception > was: > ExitFailure 1 > yesod-1.4.0 depends on shakespeare-2.0.5 which failed to install. > yesod-auth-1.4.5 depends on shakespeare-2.0.5 which failed to > install. > yesod-core-1.4.9.1 depends on shakespeare-2.0.5 which failed to > install. > yesod-form-1.4.4.1 depends on shakespeare-2.0.5 which failed to > install. > yesod-persistent-1.4.0.2 depends on shakespeare-2.0.5 which failed to > install. > > > -- > Public key ID: E8FE60D7 > Public key server: see, e.g., hkp://keys.gnupg.net > > On Thu, Jun 18, 2015 at 4:16 PM, Christopher Allen > wrote: >> >> Some of that looks like churn from trying to install an older >> version of Yesod over a newer one. Are you using a sandbox? if so, did you >> wipe it out before attempting Yesod 1.2.6.1? What we'd be looking for is a >> package conflict that tells you which package of what version that is >> globally installed is causing the conflict. >> >> Insta-Yesodian conflict implies you're reinstalling into a not-fresh >> packgage-db which means you either need to wipe your user package-db or use >> a sandbox. (I recommend the latter). >> >> If you haven't done so, do that, then re-attempt that version of >> Yesod (1.2.6.1). >> >> >> >> On Thu, Jun 18, 2015 at 2:57 PM, Miguel A. Santos >> wrote: >>> >>> Thanks! No problem. I gave a try to your suggestion. It doesn't >>> look I'll get yesod installed without "paying" >>> a bigger price than just "downgrading". :-/ >>> >>> Yesod 1.4.0 warns that forcing installing it will likely break >>> pandoc, among other things. >>> I can give it a try though, but I really use pandoc regularly. >>> Plus, it's still not clear that the building process >>> will not fail. And installing pandoc took me surprisingly a lot of >>> time last time. >>> >>> Forcing Yesod-1.2.6.1 won't allow cabal to satisfy the >>> dependencies. >>> >>> I guess I could keep trying other versions and see. But I think >>> I'll try the 1.4.0 first. Will post here >>> the results so that at least others may hopefully benefit from >>> this. >>> >>> >>> ----------------------------------------------------------------------------------------- >>> msantos@MBP-2[15:42]:~/System$cabal install yesod-1.4.0 >>> Resolving dependencies... >>> In order, the following would be installed: >>> monad-control-0.3.3.1 (latest: 1.0.0.4) (via: yesod-1.4.0 >>> yesod-core-1.4.9.1 authenticate-1.3.2.11 xml-conduit-1.3.0 >>> persistent-template-2.1.3.3 persistent-2.1.6 monad-logger-0.3.13.1 >>> http-conduit-2.1.5 conduit-extra-1.1.9 resourcet-1.1.5 resource-pool-0.2.3.2 >>> enclosed-exceptions-1.0.1.1 lifted-base-0.2.3.6) (new version) >>> lifted-base-0.2.3.6 (via: yesod-auth-1.4.5 yesod-core-1.4.9.1 >>> wai-extra-3.0.7.1 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 >>> conduit-1.2.4.2 resourcet-1.1.5 enclosed-exceptions-1.0.1.1) (reinstall) >>> (changes: monad-control-1.0.0.4 -> 0.3.3.1) >>> enclosed-exceptions-1.0.1.1 (via: yaml-0.8.11) (reinstall) >>> (changes: monad-control-1.0.0.4 -> 0.3.3.1) >>> resource-pool-0.2.3.2 (via: yesod-persistent-1.4.0.2 >>> persistent-2.1.6) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) >>> resourcet-1.1.5 (via: yesod-auth-1.4.5 yesod-form-1.4.4.1 >>> yesod-persistent-1.4.0.2 yesod-core-1.4.9.1 yaml-0.8.11 >>> authenticate-1.3.2.11 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 >>> wai-extra-3.0.7.1 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 >>> conduit-extra-1.1.9 conduit-1.2.4.2) (reinstall) (changes: >>> monad-control-1.0.0.4 -> 0.3.3.1) >>> conduit-1.2.4.2 (via: yesod-auth-1.4.5 yesod-persistent-1.4.0.2 >>> yesod-core-1.4.9.1 yaml-0.8.11 authenticate-1.3.2.11 >>> tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 persistent-2.1.6 >>> monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-extra-1.1.9) (reinstall) >>> conduit-extra-1.1.9 (via: yesod-1.4.0 yesod-auth-1.4.5 >>> yesod-core-1.4.9.1 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 >>> monad-logger-0.3.13.1) (reinstall) (changes: monad-control-1.0.0.4 -> >>> 0.3.3.1) >>> http-conduit-2.1.5 (via: yesod-auth-1.4.5 authenticate-1.3.2.11) >>> (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) >>> monad-logger-0.3.13.1 (via: yesod-1.4.0 yesod-core-1.4.9.1 >>> persistent-template-2.1.3.3 persistent-2.1.6) (reinstall) (changes: >>> monad-control-1.0.0.4 -> 0.3.3.1) >>> persistent-2.1.6 (via: yesod-auth-1.4.5 yesod-form-1.4.4.1 >>> yesod-persistent-1.4.0.2 persistent-template-2.1.3.3) (reinstall) (changes: >>> monad-control-1.0.0.4 -> 0.3.3.1) >>> persistent-template-2.1.3.3 (via: yesod-auth-1.4.5 >>> yesod-persistent-1.4.0.2) (reinstall) (changes: monad-control-1.0.0.4 -> >>> 0.3.3.1) >>> shakespeare-2.0.5 (via: yesod-1.4.0 yesod-auth-1.4.5 >>> yesod-form-1.4.4.1 yesod-core-1.4.9.1) (new package) >>> wai-extra-3.0.7.1 (via: yesod-1.4.0 yesod-core-1.4.9.1) (reinstall) >>> xml-conduit-1.3.0 (via: authenticate-1.3.2.11 >>> tagstream-conduit-0.5.5.3) (reinstall) (changes: monad-control-1.0.0.4 -> >>> 0.3.3.1) >>> tagstream-conduit-0.5.5.3 (via: authenticate-1.3.2.11) (reinstall) >>> authenticate-1.3.2.11 (via: yesod-auth-1.4.5) (reinstall) (changes: >>> monad-control-1.0.0.4 -> 0.3.3.1) >>> yaml-0.8.11 (via: yesod-1.4.0) (reinstall) >>> yesod-core-1.4.9.1 (via: yesod-1.4.0 yesod-auth-1.4.5 >>> yesod-form-1.4.4.1 yesod-persistent-1.4.0.2) (new package) >>> yesod-persistent-1.4.0.2 (via: yesod-1.4.0 yesod-auth-1.4.5 >>> yesod-form-1.4.4.1) (new package) >>> yesod-form-1.4.4.1 (via: yesod-1.4.0 yesod-auth-1.4.5) (new >>> package) >>> yesod-auth-1.4.5 (via: yesod-1.4.0) (new package) >>> yesod-1.4.0 (latest: 1.4.1.5) (new package) >>> cabal: The following packages are likely to be broken by the >>> reinstalls: >>> pandoc-citeproc-0.7.1.1 >>> pandoc-1.14.0.4 >>> project-template-0.2.0 >>> http-reverse-proxy-0.4.2 >>> Use --force-reinstalls if you want to install anyway. >>> msantos@MBP-2[15:42]:~/System$cabal install yesod-1.2.6.1 >>> Resolving dependencies... >>> cabal: Could not resolve dependencies: >>> next goal: yesod (user goal) >>> rejecting: yesod-1.4.1.5, 1.4.1.4, 1.4.1.3, 1.4.1.2, 1.4.1.1, >>> 1.4.1, 1.4.0 >>> (global constraint requires ==1.2.6.1) >>> trying: yesod-1.2.6.1 >>> trying: streaming-commons-0.1.12.1/installed-200... (dependency of >>> yesod-1.2.6.1) >>> trying: warp-3.0.13.1/installed-150... (dependency of >>> yesod-1.2.6.1) >>> next goal: yesod-form (dependency of yesod-1.2.6.1) >>> rejecting: yesod-form-1.4.4.1, 1.4.4, 1.4.3.1, 1.4.3, 1.4.2.1, >>> 1.4.2, 1.4.1.1, >>> 1.4.1, 1.4.0.2, 1.4.0.1, 1.4.0 (conflict: yesod => yesod-form>=1.3 >>> && <1.4) >>> trying: yesod-form-1.3.16 >>> next goal: persistent (dependency of yesod-form-1.3.16) >>> rejecting: persistent-2.1.6/installed-4f9..., 2.1.6, 2.1.5, 2.1.4, >>> 2.1.3, >>> 2.1.2, 2.1.1.7, 2.1.1.6, 2.1.1.5, 2.1.1.4, 2.1.1.3, 2.1.1.2, >>> 2.1.1.1, 2.1.1, >>> 2.1.0.2, 2.1.0.1, 2.1 (conflict: yesod-form => persistent>=1.2 && >>> <2.1) >>> trying: persistent-1.3.3 >>> trying: path-pieces-0.2.0/installed-533... (dependency of >>> persistent-1.3.3) >>> next goal: yesod-core (dependency of yesod-1.2.6.1) >>> rejecting: yesod-core-1.4.9.1, 1.4.9, 1.4.8.3, 1.4.8.2, 1.4.8.1, >>> 1.4.8, >>> 1.4.7.3, 1.4.7.2, 1.4.7.1, 1.4.7, 1.4.6.2, 1.4.6.1, 1.4.6, 1.4.5, >>> 1.4.4.5, >>> 1.4.4.4, 1.4.4.3, 1.4.4.2, 1.4.4.1, 1.4.4, 1.4.3.1, 1.4.3, 1.4.2, >>> 1.4.1.1, >>> 1.4.1, 1.4.0.2, 1.4.0.1, 1.4.0 (conflict: yesod => >>> yesod-core>=1.2.2 && <1.3) >>> rejecting: yesod-core-1.2.20.1, 1.2.20, 1.2.19.2, 1.2.19.1, 1.2.19, >>> 1.2.18, >>> 1.2.17, 1.2.16.1, 1.2.16, 1.2.15.2, 1.2.15.1, 1.2.15, 1.2.14, >>> 1.2.13.1, >>> 1.2.13, 1.2.12, 1.2.11.1, 1.2.11, 1.2.10, 1.2.9.2, 1.2.9.1, 1.2.9, >>> 1.2.8, >>> 1.2.7, 1.2.6.7, 1.2.6.6, 1.2.6.5, 1.2.6.4, 1.2.6.3, 1.2.6.2, >>> 1.2.6.1 >>> (conflict: path-pieces==0.2.0/installed-533..., yesod-core => >>> path-pieces>=0.1.2 && <0.2) >>> rejecting: yesod-core-1.2.6 (conflict: streaming-commons => >>> text==1.1.0.0/installed-9bd..., yesod-core => text>=0.7 && <0.12) >>> rejecting: yesod-core-1.2.5, 1.2.4.5, 1.2.4.4, 1.2.4.3, 1.2.4.2, >>> 1.2.4.1, >>> 1.2.4, 1.2.3, 1.2.2 (conflict: warp => >>> wai==3.0.2.3/installed-39c..., >>> yesod-core => wai>=1.4 && <1.5) >>> rejecting: yesod-core-1.2.1, 1.2.0.4, 1.2.0.3, 1.2.0.2, 1.2.0.1, >>> 1.2.0, >>> 1.1.8.3, 1.1.8.2, 1.1.8.1, 1.1.8, 1.1.7.2, 1.1.7.1, 1.1.7, 1.1.6.1, >>> 1.1.6, >>> 1.1.5, 1.1.4.2, 1.1.4.1, 1.1.4, 1.1.3.1, 1.1.3, 1.1.2.2, 1.1.2.1, >>> 1.1.2, >>> 1.1.1.2, 1.1.1.1, 1.1.1, 1.1.0.1, 1.1.0, 1.0.1.3, 1.0.1.2, 1.0.1.1, >>> 1.0.1, >>> 1.0.0.2, 1.0.0.1, 1.0.0, 0.10.3, 0.10.2.2, 0.10.2.1, 0.10.2, >>> 0.10.1, 0.9.4.1, >>> 0.9.4, 0.9.3.6, 0.9.3.5, 0.9.3.4, 0.9.3.3, 0.9.3.2, 0.9.3.1, 0.9.3, >>> 0.9.2, >>> 0.9.1.1, 0.9.1, 0.8.3.2, 0.8.3.1, 0.8.3, 0.8.2, 0.8.1, 0.8.0.1, >>> 0.8.0, >>> 0.7.0.2, 0.7.0.1, 0.7.0 (conflict: yesod => yesod-core>=1.2.2 && >>> <1.3) >>> Backjump limit reached (change with --max-backjumps). >>> >>> -- >>> Public key ID: E8FE60D7 >>> Public key server: see, e.g., hkp://keys.gnupg.net >>> >>> On Thu, Jun 18, 2015 at 3:32 PM, Christopher Allen >>> wrote: >>>> >>>> Ah that's frustrating, that's my mistake – I'm sorry. I thought >>>> you were talking about GHC for Mac OS X not being available for your OS >>>> version either. >>>> >>>> Your best bet on HP is to specify an older version of Yesod that >>>> will work with the dependencies that your version of HP comes with. >>>> >>>> On Thu, Jun 18, 2015 at 2:08 PM, Miguel A. Santos >>>> wrote: >>>>> >>>>> Indeed I saw that. That's what I meant with the bindist not being >>>>> available for OSX 10.6.8; only for 10.7+ >>>>> https://www.haskell.org/ghc/download_ghc_7_8_4#macosx_x86_64 >>>>> My bad, I should have said it before. >>>>> >>>>> >>>>> >>>>> -- >>>>> Public key ID: E8FE60D7 >>>>> Public key server: see, e.g., hkp://keys.gnupg.net >>>>> >>>>> On Thu, Jun 18, 2015 at 2:36 PM, Christopher Allen >>>>> wrote: >>>>>> >>>>>> Did you see that the Mac instructions said to follow the "other >>>>>> *nix" instructions if you were using an older version of Mac OS X? >>>>>> >>>>>> Those link here: >>>>>> https://www.haskell.org/ghc/download_ghc_7_8_4#binaries >>>>>> >>>>>> Get rid of all that (GHC, HP, Cabal), then install GHC using the >>>>>> bindist for Mac OS X linked above. >>>>>> >>>>>> On Thu, Jun 18, 2015 at 1:14 PM, Miguel A. Santos >>>>>> wrote: >>>>>>> >>>>>>> That is obviously a typo: I meant I *did* do a fresh install of >>>>>>> the Haskell Platform and cabal before >>>>>>> trying -and failing- to install yesod. >>>>>>> >>>>>>> On Thu, Jun 18, 2015 at 1:38 PM, Miguel A. Santos >>>>>>> wrote: >>>>>>>> >>>>>>>> This corresponds to a fresh install of the HP, ghc, and cabal >>>>>>>> I didn't before trying to install yesod. >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Public key ID: E8FE60D7 >>>>>>> Public key server: see, e.g., hkp://keys.gnupg.net >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Haskell-Cafe mailing list >>>>>>> Haskell-Cafe@haskell.org >>>>>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Chris Allen >>>>>> Currently working on http://haskellbook.com >>>>> >>>>> >>>> >>>> >>>> >>>> -- >>>> Chris Allen >>>> Currently working on http://haskellbook.com >>> >>> >> >> >> >> -- >> Chris Allen >> Currently working on http://haskellbook.com > > -- Chris Allen Currently working on http://haskellbook.com
-- Chris Allen Currently working on http://haskellbook.com
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe

Try stack first
https://www.fpcomplete.com/blog/2015/06/announcing-first-public-beta-stack
пт, 19 июня 2015 г. в 12:52, David Turner
Hi,
I think Stackage will solve these issues - indeed, I believe that Stackage grew out of the difficulty of installing Yesod and its dependencies straight from Hackage using cabal.
If you download https://www.stackage.org/lts/cabal.config next to your own .cabal file then it will constrain cabal to only use a set of packages which are known to be mutually compatible.
Hope that helps,
David
Hi, Miguel. Haskell Platform includes GHC itself and some set of
such as text, network, and etc. If I recall correctly thete was issues with Yesod and HP because some package versions and the best way to install Yesod were sandboxes, because sandbox have its own package database. Removing or just moving .ghc folder helped me in past several times, usually it was needed when different projects depends on different package versions, now I put every project inside sandbox to prevent this. As for pandoc, if you use only binary you can install it having no GHC at all (download package installer from website). If I were you I'll install GHC 7.8.* alone rather than Platform, caball-install 1.22.* and try to build everything againg using sandboxes. Also there is a Stackage and its tools (stackage-cli and recently released stack), they are very helpful in caball-hell issues. Also there is Halcyon but I have not tried it myself. Apologize for missing links, I'm mobile now.
3:23 до полудня, пт, 19.06.2015, Miguel A. Santos
: One more detail about my try with rm ~/.ghc: I find it curious that I didn't get that directory rebuild again when trying to install yesod. Did I miss something?
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 6:18 PM, Miguel A. Santos
wrote: Ok, removing ~/.ghc (actually just moving it to ~/.ghc-org) didn't work either. The detailed output is below but from a cursory view it seems not much better than within the
sandbox
try before.
I understand I'm staying in the "past" and with that comes problems
this one, but upgrading to Yellowstone is not an option for me.
I have some questions about your other options. In particular, I'm not sure what you mean by (capitals) GHC. I thought that's just the compiler. I don't understand your first sentence after "vanilla". What is what I got with HP if not GHC for MacOSX!?
About point 2., I'm building (already for hours, that's the 'other' process I'd running) ghc from the tarball ghc-7.8.4-src.tar.bz2 available at the bottom of that same link we mentioned before, namely, https://www.haskell.org/ghc/download_ghc_7_8_4#binaries Is this the same as what you mean by this 2nd option? Mind you I'm already using version 7.8.3. How will a new version of the compiler change what looks like a compatibility problem with a package? or you mean it is not that simple?
Option 3: It seems to me I may as well just remove everything, install HP again (already downloaded) and after that step finishes, trying installing right away yesod, before I try with any other packages. Seems a path based mostly on blind hope than logic to me :-p as the only big thing I installed between my fresh install of HP and my initial try of yesod was pandoc, which had some large dependencies to deal with. But it's a simple one, so I may check it definitely out of the equation.
Option 4: I guess this is something I can try right away without much effort. To be concrete you mean then cabal install --allow-newer yesod ?
Btw, thanks so much for your prompt help!
-------------------------------------------- msantos@MBP-2[17:09]:~/System/YESOD$mv ~/.ghc/ ~/.ghc-org msantos@MBP-2[17:30]:~$cabal install yesod==1.2.6.1 Warning: The package list for 'hackage.haskell.org' is 15.0 days old. Run 'cabal update' to get the latest list of available packages. Resolving dependencies... cabal: Could not resolve dependencies: next goal: yesod (user goal) rejecting: yesod-1.4.1.5, 1.4.1.4, 1.4.1.3, 1.4.1.2, 1.4.1.1, 1.4.1, 1.4.0 (global constraint requires ==1.2.6.1) trying: yesod-1.2.6.1 trying: streaming-commons-0.1.12.1 (dependency of yesod-1.2.6.1) trying: network-2.4.2.3/installed-575... (dependency of streaming-commons-0.1.12.1) trying: parsec-3.1.5/installed-04a... (dependency of network-2.4.2.3/installed-575...) trying: mtl-2.1.3.1/installed-8bc... (dependency of parsec-3.1.5/installed-04a...) trying: shakespeare-2.0.5 (dependency of yesod-1.2.6.1) trying: exceptions-0.8.0.2 (dependency of shakespeare-2.0.5) trying: transformers-compat-0.4.0.4 (dependency of exceptions-0.8.0.2) trying: transformers-compat-0.4.0.4:-two rejecting: transformers-compat-0.4.0.4:-three (conflict: mtl => transformers==0.3.0.0/installed-16a...,
=> transformers>=0.4.1 && <0.5) rejecting: transformers-compat-0.4.0.4:+three (manual flag can only be changed explicitly) Backjump limit reached (change with --max-backjumps).
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 5:15 PM, Christopher Allen
wrote: You don't need to rm -rf ~/.ghc if you're using a sandbox. The sandbox (usually) occludes the user package-db.
Well, the sandbox may not have fixed the incompatibility of HP and
particular version of Yesod, but we're better information from the dependency solver.
That said, this is going to simply require a lot of trial and error if you want to try this approach and me telling you increment/decrement versions isn't going to be any faster.
I'd say your best options are:
1. Upgrade your installation of Mac OS X so you can use the vanilla GHC bindist, or even better, GHC for Mac OS X
2. Use your copy of Haskell Platform to build GHC from source and use that instead of GHC (possibly a quagmire, might work out okay. Will take a long time to build.)
3. Unregister all the unnecessary packages from your global
Listing here: https://www.haskell.org/platform/changelog.html (Additional Platform Libraries, do *not* uninstall any of the core libraries) If you make a mistake you may need to reinstall Platform.
4. Give passing --allow-newer to cabal install a shot.
This is rough. Not that many people on <10.7 OS X versions so there aren't enough squeaky wheels for this sort of thing.
Sorry I couldn't do more.
On Thu, Jun 18, 2015 at 3:54 PM, Miguel A. Santos
wrote: Hmm.. wouldn't that mean, I later have to reinstall all my packages? :-/
Meanwhile, I did try the sandbox way. It didn't work either. Briefly
I
issued cabal sandbox init and then cabal install yesod-1.2.6.1 Details below.
The initial complain about not being able to resolve dependencies makes me think I may be missing more things about working with sandboxes. Just checked
https://www.haskell.org/cabal/users-guide/installing-packages.html#developin...
and guessed the init would be enough.
-------------------------------------------------------- msantos@MBP-2[16:38]:~/System/YESOD/Sandbox$cabal sandbox init Writing a default package environment file to /Users/msantos/System/YESOD/Sandbox/cabal.sandbox.config Creating a new sandbox at /Users/msantos/System/YESOD/Sandbox/.cabal-sandbox msantos@MBP-2[16:41]:~/System/YESOD/Sandbox$cabal install yesod-1.2.6.1 Resolving dependencies... cabal: Could not resolve dependencies: next goal: yesod (user goal) rejecting: yesod-1.4.1.5, 1.4.1.4, 1.4.1.3, 1.4.1.2, 1.4.1.1, 1.4.1, 1.4.0 (global constraint requires ==1.2.6.1) trying: yesod-1.2.6.1 trying: streaming-commons-0.1.12.1 (dependency of yesod-1.2.6.1) trying: network-2.4.2.3/installed-575... (dependency of streaming-commons-0.1.12.1) trying: parsec-3.1.5/installed-04a... (dependency of network-2.4.2.3/installed-575...) trying: mtl-2.1.3.1/installed-8bc... (dependency of parsec-3.1.5/installed-04a...) trying: shakespeare-2.0.5 (dependency of yesod-1.2.6.1) trying: exceptions-0.8.0.2 (dependency of shakespeare-2.0.5) trying: transformers-compat-0.4.0.4 (dependency of exceptions-0.8.0.2) trying: transformers-compat-0.4.0.4:-two rejecting: transformers-compat-0.4.0.4:-three (conflict: mtl => transformers==0.3.0.0/installed-16a..., transformers-compat-0.4.0.4:three => transformers>=0.4.1 && <0.5) rejecting: transformers-compat-0.4.0.4:+three (manual flag can only be changed explicitly) Backjump limit reached (change with --max-backjumps).
Note: when using a sandbox, all packages are required to have consistent dependencies. Try reinstalling/unregistering the offending packages or recreating the sandbox.
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 4:46 PM, Christopher Allen < cma@bitemyapp.com> wrote: > > If you won't use a sandbox, then lets nuke your user package-db and > start from scratch: > > rm -rf ~/.ghc > cabal install yesod==1.2.6.1 > > On Thu, Jun 18, 2015 at 3:28 PM, Miguel A. Santos >
wrote: >> >> I haven't yet read how to use sandboxes, so, no, that I tried just >> like that cabal install... >> I did check first that cabal info yesod was saying I didn't have it >> install. But now that you mention it, I did >> may have had other packages lingering around from my last attempt of >> installing yesod. >> >> Meanwhile I did run forcing the install of 1.4.0... >> Ah, it finished with cabal install --force-reinstalls yesod-1.4.0 >> and... >> it complains about the shakespeare. >> >> "shakespeare-2.0.5 failed during the building phase. The exception >> was: >> ExitFailure 1" >> >> Below the full output. >> >> I'll give a try to the sandbox solution. >> >> ------------------------------------------------ >> msantos@MBP-2[16:09]:~/System/YESOD$cabal install --force-reinstalls >> yesod-1.4.0 >> Resolving dependencies... >> Warning: The following packages are likely to be broken by the >> reinstalls: >> pandoc-citeproc-0.7.1.1 >> pandoc-1.14.0.4 >> project-template-0.2.0 >> http-reverse-proxy-0.4.2 >> Continuing even though the plan contains dangerous reinstalls. >> Downloading monad-control-0.3.3.1... >> Configuring shakespeare-2.0.5... >> Configuring monad-control-0.3.3.1... >> Building monad-control-0.3.3.1... >> Building shakespeare-2.0.5... >> Installed monad-control-0.3.3.1 >> Configuring lifted-base-0.2.3.6... >> Building lifted-base-0.2.3.6... >> Configuring resource-pool-0.2.3.2... >> Installed lifted-base-0.2.3.6 >> Building resource-pool-0.2.3.2... >> Installed resource-pool-0.2.3.2 >> Configuring enclosed-exceptions-1.0.1.1... >> Building enclosed-exceptions-1.0.1.1... >> Configuring resourcet-1.1.5... >> Installed enclosed-exceptions-1.0.1.1 >> Building resourcet-1.1.5... >> Failed to install shakespeare-2.0.5 >> Build log ( /Users/msantos/.cabal/logs/shakespeare-2.0.5.log ): >> Configuring shakespeare-2.0.5... >> Building shakespeare-2.0.5... >> Preprocessing library shakespeare-2.0.5... >> [ 1 of 17] Compiling Text.MkSizeType ( Text/MkSizeType.hs, >> dist/build/Text/MkSizeType.o ) >> [ 2 of 17] Compiling Text.IndentToBrace ( Text/IndentToBrace.hs, >> dist/build/Text/IndentToBrace.o ) >> [ 3 of 17] Compiling Text.Shakespeare.Base ( >> Text/Shakespeare/Base.hs, dist/build/Text/Shakespeare/Base.o ) >> [ 4 of 17] Compiling Text.Hamlet.Parse ( Text/Hamlet/Parse.hs, >> dist/build/Text/Hamlet/Parse.o ) >> [ 5 of 17] Compiling Text.Hamlet ( Text/Hamlet.hs, >> dist/build/Text/Hamlet.o ) >> >> Text/Hamlet.hs:402:1: Warning: Defined but not used: ‘varName’ >> >> Text/Hamlet.hs:406:1: Warning: Defined but not used: ‘strToExp’ >> >> Text/Hamlet.hs:439:16: Warning: Defined but not used: ‘html’ >> >> Text/Hamlet.hs:440:14: Warning: Defined but not used: ‘url’ >> >> Text/Hamlet.hs:441:19: Warning: Defined but not used: ‘url’ >> >> Text/Hamlet.hs:442:16: Warning: Defined but not used: ‘url’ >> >> Text/Hamlet.hs:443:20: Warning: Defined but not used: ‘msg_url’ >> >> Text/Hamlet.hs:444:14: Warning: Defined but not used: ‘msg’ >> >> Text/Hamlet.hs:488:43: Warning: >> This binding for ‘c’ shadows the existing binding >> bound at Text/Hamlet.hs:484:13 >> [ 6 of 17] Compiling Text.Hamlet.RT ( Text/Hamlet/RT.hs, >> dist/build/Text/Hamlet/RT.o ) >> >> Text/Hamlet/RT.hs:78:13: Warning: Defined but not used: ‘x’ >> >> Text/Hamlet/RT.hs:78:26: Warning: Defined but not used: ‘deref’ >> >> Text/Hamlet/RT.hs:78:45: Warning: Defined but not used: ‘docs’ >> >> Text/Hamlet/RT.hs:85:13: Warning: Defined but not used: ‘x’ >> >> Text/Hamlet/RT.hs:85:25: Warning: Defined but not used: ‘deref’ >> >> Text/Hamlet/RT.hs:85:44: Warning: Defined but not used: ‘jdocs’ >> >> Text/Hamlet/RT.hs:85:50: Warning: Defined but not used: ‘ndocs’ >> >> Text/Hamlet/RT.hs:115:37: Warning: >> This binding for ‘x’ shadows the existing binding >> bound at Text/Hamlet/RT.hs:108:13 >> [ 7 of 17] Compiling Text.Shakespeare ( Text/Shakespeare.hs, >> dist/build/Text/Shakespeare.o ) >> [ 8 of 17] Compiling Text.Shakespeare.Text ( >> Text/Shakespeare/Text.hs, dist/build/Text/Shakespeare/Text.o ) >> [ 9 of 17] Compiling Text.Julius ( Text/Julius.hs, >> dist/build/Text/Julius.o ) >> >> Text/Julius.hs:90:63: Warning: >> In the use of ‘fromValue’ (imported from Data.Aeson.Encode): >> Deprecated: "Use 'encodeToTextBuilder' instead" >> [10 of 17] Compiling Text.Roy ( Text/Roy.hs, >> dist/build/Text/Roy.o ) >> [11 of 17] Compiling Text.Coffee ( Text/Coffee.hs, >> dist/build/Text/Coffee.o ) >> [12 of 17] Compiling Text.Css ( Text/Css.hs, >> dist/build/Text/Css.o ) >> >> Text/Css.hs:349:40: Warning: Defined but not used: ‘subblocks’ >> >> Text/Css.hs:367:5: Warning: Defined but not used: ‘subGo’ >> [13 of 17] Compiling Text.CssCommon ( Text/CssCommon.hs, >> dist/build/Text/CssCommon.o ) >> Loading package ghc-prim ... linking ... done. >> Loading package integer-gmp ... linking ... done. >> Loading package base ... linking ... done. >> Loading package array-0.5.0.0 ... linking ... done. >> Loading package deepseq-1.3.0.2 ... linking ... done. >> Loading package filepath-1.3.0.2 ... linking ... done. >> Loading package old-locale-1.0.0.6 ... linking ... done. >> Loading package time-1.4.2 ... linking ... done. >> Loading package bytestring-0.10.4.0 ... linking ... done. >> Loading package unix-2.7.0.1 ... linking ... done. >> Loading package directory-1.2.1.0 ... linking ... done. >> Loading package process-1.2.0.0 ... linking ... done. >> Loading package transformers-0.3.0.0 ... linking ... done. >> Loading package mtl-2.1.3.1 ... linking ... done. >> Loading package text-1.1.0.0 ... linking ... done. >> Loading package parsec-3.1.5 ... <command line>: can't load .so/.DLL >> for: >> /Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib >> (dlopen(/Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib, >> 9): Library not loaded: @rpath/libHStext-1.1.0.0-ghc7.8.3.dylib >> Referenced from: >> /Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib >> Reason: image not found) >> Installed resourcet-1.1.5 >> Configuring wai-extra-3.0.7.1... >> Configuring conduit-1.2.4.2... >> Building conduit-1.2.4.2... >> Building wai-extra-3.0.7.1... >> Installed conduit-1.2.4.2 >> Configuring conduit-extra-1.1.9... >> Building conduit-extra-1.1.9... >> Configuring http-conduit-2.1.5... >> Installed wai-extra-3.0.7.1 >> Building http-conduit-2.1.5... >> Configuring yaml-0.8.11... >> Installed http-conduit-2.1.5 >> Building yaml-0.8.11... >> Installed conduit-extra-1.1.9 >> Configuring monad-logger-0.3.13.1... >> Building monad-logger-0.3.13.1... >> Configuring xml-conduit-1.3.0... >> Installed monad-logger-0.3.13.1 >> Building xml-conduit-1.3.0... >> Installed yaml-0.8.11 >> Configuring persistent-2.1.6... >> Building persistent-2.1.6... >> Installed xml-conduit-1.3.0 >> Configuring tagstream-conduit-0.5.5.3... >> Building tagstream-conduit-0.5.5.3... >> Installed tagstream-conduit-0.5.5.3 >> Configuring authenticate-1.3.2.11... >> Building authenticate-1.3.2.11... >> Installed authenticate-1.3.2.11 >> Installed persistent-2.1.6 >> Configuring persistent-template-2.1.3.3... >> Building persistent-template-2.1.3.3... >> Installed persistent-template-2.1.3.3 >> Updating documentation index >> >> /Users/msantos/Library/Haskell/share/doc/x86_64-osx-ghc-7.8.3/index.html >> cabal: Error: some packages failed to install: >> shakespeare-2.0.5 failed during the building phase. The exception >> was: >> ExitFailure 1 >> yesod-1.4.0 depends on shakespeare-2.0.5 which failed to install. >> yesod-auth-1.4.5 depends on shakespeare-2.0.5 which failed to >> install. >> yesod-core-1.4.9.1 depends on shakespeare-2.0.5 which failed to >> install. >> yesod-form-1.4.4.1 depends on shakespeare-2.0.5 which failed to >> install. >> yesod-persistent-1.4.0.2 depends on shakespeare-2.0.5 which failed to >> install. >> >> >> -- >> Public key ID: E8FE60D7 >> Public key server: see, e.g., hkp://keys.gnupg.net >> >> On Thu, Jun 18, 2015 at 4:16 PM, Christopher Allen >> wrote: >>> >>> Some of that looks like churn from trying to install an older >>> version of Yesod over a newer one. Are you using a sandbox? if so, did you >>> wipe it out before attempting Yesod 1.2.6.1? What we'd be looking for is a >>> package conflict that tells you which package of what version >>> globally installed is causing the conflict. >>> >>> Insta-Yesodian conflict implies you're reinstalling into a not-fresh >>> packgage-db which means you either need to wipe your user
On 19 June 2015 at 08:37, Geraldus
wrote: packages, like transformers-compat-0.4.0.4:three that package-db. that is package-db or use >>> a sandbox. (I recommend the latter). >>> >>> If you haven't done so, do that, then re-attempt that version of >>> Yesod (1.2.6.1). >>> >>> >>> >>> On Thu, Jun 18, 2015 at 2:57 PM, Miguel A. Santos >>>
wrote: >>>> >>>> Thanks! No problem. I gave a try to your suggestion. It doesn't >>>> look I'll get yesod installed without "paying" >>>> a bigger price than just "downgrading". :-/ >>>> >>>> Yesod 1.4.0 warns that forcing installing it will likely break >>>> pandoc, among other things. >>>> I can give it a try though, but I really use pandoc regularly. >>>> Plus, it's still not clear that the building process >>>> will not fail. And installing pandoc took me surprisingly a lot of >>>> time last time. >>>> >>>> Forcing Yesod-1.2.6.1 won't allow cabal to satisfy the >>>> dependencies. >>>> >>>> I guess I could keep trying other versions and see. But I think >>>> I'll try the 1.4.0 first. Will post here >>>> the results so that at least others may hopefully benefit from >>>> this. >>>> >>>> >>>>
>>>> msantos@MBP-2[15:42]:~/System$cabal install yesod-1.4.0 >>>> Resolving dependencies... >>>> In order, the following would be installed: >>>> monad-control-0.3.3.1 (latest: 1.0.0.4) (via: yesod-1.4.0 >>>> yesod-core-1.4.9.1 authenticate-1.3.2.11 xml-conduit-1.3.0 >>>> persistent-template-2.1.3.3 persistent-2.1.6 monad-logger-0.3.13.1 >>>> http-conduit-2.1.5 conduit-extra-1.1.9 resourcet-1.1.5 resource-pool-0.2.3.2 >>>> enclosed-exceptions-1.0.1.1 lifted-base-0.2.3.6) (new version) >>>> lifted-base-0.2.3.6 (via: yesod-auth-1.4.5 yesod-core-1.4.9.1 >>>> wai-extra-3.0.7.1 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 >>>> conduit-1.2.4.2 resourcet-1.1.5 enclosed-exceptions-1.0.1.1) (reinstall) >>>> (changes: monad-control-1.0.0.4 -> 0.3.3.1) >>>> enclosed-exceptions-1.0.1.1 (via: yaml-0.8.11) (reinstall) >>>> (changes: monad-control-1.0.0.4 -> 0.3.3.1) >>>> resource-pool-0.2.3.2 (via: yesod-persistent-1.4.0.2 >>>> persistent-2.1.6) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) >>>> resourcet-1.1.5 (via: yesod-auth-1.4.5 yesod-form-1.4.4.1 >>>> yesod-persistent-1.4.0.2 yesod-core-1.4.9.1 yaml-0.8.11 >>>> authenticate-1.3.2.11 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 >>>> wai-extra-3.0.7.1 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 >>>> conduit-extra-1.1.9 conduit-1.2.4.2) (reinstall) (changes: >>>> monad-control-1.0.0.4 -> 0.3.3.1) >>>> conduit-1.2.4.2 (via: yesod-auth-1.4.5 yesod-persistent-1.4.0.2 >>>> yesod-core-1.4.9.1 yaml-0.8.11 authenticate-1.3.2.11 >>>> tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 persistent-2.1.6 >>>> monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-extra-1.1.9) (reinstall) >>>> conduit-extra-1.1.9 (via: yesod-1.4.0 yesod-auth-1.4.5 >>>> yesod-core-1.4.9.1 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 >>>> monad-logger-0.3.13.1) (reinstall) (changes: monad-control-1.0.0.4 -> >>>> 0.3.3.1) >>>> http-conduit-2.1.5 (via: yesod-auth-1.4.5 authenticate-1.3.2.11) >>>> (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) >>>> monad-logger-0.3.13.1 (via: yesod-1.4.0 yesod-core-1.4.9.1 >>>> persistent-template-2.1.3.3 persistent-2.1.6) (reinstall) (changes: >>>> monad-control-1.0.0.4 -> 0.3.3.1) >>>> persistent-2.1.6 (via: yesod-auth-1.4.5 yesod-form-1.4.4.1 >>>> yesod-persistent-1.4.0.2 persistent-template-2.1.3.3) (reinstall) (changes: >>>> monad-control-1.0.0.4 -> 0.3.3.1) >>>> persistent-template-2.1.3.3 (via: yesod-auth-1.4.5 >>>> yesod-persistent-1.4.0.2) (reinstall) (changes: monad-control-1.0.0.4 -> >>>> 0.3.3.1) >>>> shakespeare-2.0.5 (via: yesod-1.4.0 yesod-auth-1.4.5 >>>> yesod-form-1.4.4.1 yesod-core-1.4.9.1) (new package) >>>> wai-extra-3.0.7.1 (via: yesod-1.4.0 yesod-core-1.4.9.1) (reinstall) >>>> xml-conduit-1.3.0 (via: authenticate-1.3.2.11 >>>> tagstream-conduit-0.5.5.3) (reinstall) (changes: monad-control-1.0.0.4 -> >>>> 0.3.3.1) >>>> tagstream-conduit-0.5.5.3 (via: authenticate-1.3.2.11) (reinstall) >>>> authenticate-1.3.2.11 (via: yesod-auth-1.4.5) (reinstall) (changes: >>>> monad-control-1.0.0.4 -> 0.3.3.1) >>>> yaml-0.8.11 (via: yesod-1.4.0) (reinstall) >>>> yesod-core-1.4.9.1 (via: yesod-1.4.0 yesod-auth-1.4.5 >>>> yesod-form-1.4.4.1 yesod-persistent-1.4.0.2) (new package) >>>> yesod-persistent-1.4.0.2 (via: yesod-1.4.0 yesod-auth-1.4.5 >>>> yesod-form-1.4.4.1) (new package) >>>> yesod-form-1.4.4.1 (via: yesod-1.4.0 yesod-auth-1.4.5) (new >>>> package) >>>> yesod-auth-1.4.5 (via: yesod-1.4.0) (new package) >>>> yesod-1.4.0 (latest: 1.4.1.5) (new package) >>>> cabal: The following packages are likely to be broken by the >>>> reinstalls: >>>> pandoc-citeproc-0.7.1.1 >>>> pandoc-1.14.0.4 >>>> project-template-0.2.0 >>>> http-reverse-proxy-0.4.2 >>>> Use --force-reinstalls if you want to install anyway. >>>> msantos@MBP-2[15:42]:~/System$cabal install yesod-1.2.6.1 >>>> Resolving dependencies... >>>> cabal: Could not resolve dependencies: >>>> next goal: yesod (user goal) >>>> rejecting: yesod-1.4.1.5, 1.4.1.4, 1.4.1.3, 1.4.1.2, 1.4.1.1, >>>> 1.4.1, 1.4.0 >>>> (global constraint requires ==1.2.6.1) >>>> trying: yesod-1.2.6.1 >>>> trying: streaming-commons-0.1.12.1/installed-200... (dependency of >>>> yesod-1.2.6.1) >>>> trying: warp-3.0.13.1/installed-150... (dependency of >>>> yesod-1.2.6.1) >>>> next goal: yesod-form (dependency of yesod-1.2.6.1) >>>> rejecting: yesod-form-1.4.4.1, 1.4.4, 1.4.3.1, 1.4.3, 1.4.2.1, >>>> 1.4.2, 1.4.1.1, >>>> 1.4.1, 1.4.0.2, 1.4.0.1, 1.4.0 (conflict: yesod => yesod-form>=1.3 >>>> && <1.4) >>>> trying: yesod-form-1.3.16 >>>> next goal: persistent (dependency of yesod-form-1.3.16) >>>> rejecting: persistent-2.1.6/installed-4f9..., 2.1.6, 2.1.5, 2.1.4, >>>> 2.1.3, >>>> 2.1.2, 2.1.1.7, 2.1.1.6, 2.1.1.5, 2.1.1.4, 2.1.1.3, 2.1.1.2, >>>> 2.1.1.1, 2.1.1, >>>> 2.1.0.2, 2.1.0.1, 2.1 (conflict: yesod-form => persistent>=1.2 && >>>> <2.1) >>>> trying: persistent-1.3.3 >>>> trying: path-pieces-0.2.0/installed-533... (dependency of >>>> persistent-1.3.3) >>>> next goal: yesod-core (dependency of yesod-1.2.6.1) >>>> rejecting: yesod-core-1.4.9.1, 1.4.9, 1.4.8.3, 1.4.8.2, 1.4.8.1, >>>> 1.4.8, >>>> 1.4.7.3, 1.4.7.2, 1.4.7.1, 1.4.7, 1.4.6.2, 1.4.6.1, 1.4.6, 1.4.5, >>>> 1.4.4.5, >>>> 1.4.4.4, 1.4.4.3, 1.4.4.2, 1.4.4.1, 1.4.4, 1.4.3.1, 1.4.3, 1.4.2, >>>> 1.4.1.1, >>>> 1.4.1, 1.4.0.2, 1.4.0.1, 1.4.0 (conflict: yesod => >>>> yesod-core>=1.2.2 && <1.3) >>>> rejecting: yesod-core-1.2.20.1, 1.2.20, 1.2.19.2, 1.2.19.1, 1.2.19, >>>> 1.2.18, >>>> 1.2.17, 1.2.16.1, 1.2.16, 1.2.15.2, 1.2.15.1, 1.2.15, 1.2.14, >>>> 1.2.13.1, >>>> 1.2.13, 1.2.12, 1.2.11.1, 1.2.11, 1.2.10, 1.2.9.2, 1.2.9.1, 1.2.9, >>>> 1.2.8, >>>> 1.2.7, 1.2.6.7, 1.2.6.6, 1.2.6.5, 1.2.6.4, 1.2.6.3, 1.2.6.2, >>>> 1.2.6.1 >>>> (conflict: path-pieces==0.2.0/installed-533..., yesod-core => >>>> path-pieces>=0.1.2 && <0.2) >>>> rejecting: yesod-core-1.2.6 (conflict: streaming-commons => >>>> text==1.1.0.0/installed-9bd..., yesod-core => text>=0.7 && <0.12) >>>> rejecting: yesod-core-1.2.5, 1.2.4.5, 1.2.4.4, 1.2.4.3, 1.2.4.2, >>>> 1.2.4.1, >>>> 1.2.4, 1.2.3, 1.2.2 (conflict: warp => >>>> wai==3.0.2.3/installed-39c..., >>>> yesod-core => wai>=1.4 && <1.5) >>>> rejecting: yesod-core-1.2.1, 1.2.0.4, 1.2.0.3, 1.2.0.2, 1.2.0.1, >>>> 1.2.0, >>>> 1.1.8.3, 1.1.8.2, 1.1.8.1, 1.1.8, 1.1.7.2, 1.1.7.1, 1.1.7, 1.1.6.1, >>>> 1.1.6, >>>> 1.1.5, 1.1.4.2, 1.1.4.1, 1.1.4, 1.1.3.1, 1.1.3, 1.1.2.2, 1.1.2.1, >>>> 1.1.2, >>>> 1.1.1.2, 1.1.1.1, 1.1.1, 1.1.0.1, 1.1.0, 1.0.1.3, 1.0.1.2, 1.0.1.1, >>>> 1.0.1, >>>> 1.0.0.2, 1.0.0.1, 1.0.0, 0.10.3, 0.10.2.2, 0.10.2.1, 0.10.2, >>>> 0.10.1, 0.9.4.1, >>>> 0.9.4, 0.9.3.6, 0.9.3.5, 0.9.3.4, 0.9.3.3, 0.9.3.2, 0.9.3.1, 0.9.3, >>>> 0.9.2, >>>> 0.9.1.1, 0.9.1, 0.8.3.2, 0.8.3.1, 0.8.3, 0.8.2, 0.8.1, 0.8.0.1, >>>> 0.8.0, >>>> 0.7.0.2, 0.7.0.1, 0.7.0 (conflict: yesod => yesod-core>=1.2.2 && >>>> <1.3) >>>> Backjump limit reached (change with --max-backjumps). >>>> >>>> -- >>>> Public key ID: E8FE60D7 >>>> Public key server: see, e.g., hkp://keys.gnupg.net >>>> >>>> On Thu, Jun 18, 2015 at 3:32 PM, Christopher Allen >>>>
wrote: >>>>> >>>>> Ah that's frustrating, that's my mistake – I'm sorry. I thought >>>>> you were talking about GHC for Mac OS X not being available for your OS >>>>> version either. >>>>> >>>>> Your best bet on HP is to specify an older version of Yesod that >>>>> will work with the dependencies that your version of HP comes with. >>>>> >>>>> On Thu, Jun 18, 2015 at 2:08 PM, Miguel A. Santos >>>>> wrote: >>>>>> >>>>>> Indeed I saw that. That's what I meant with the bindist not being >>>>>> available for OSX 10.6.8; only for 10.7+ >>>>>> https://www.haskell.org/ghc/download_ghc_7_8_4#macosx_x86_64 >>>>>> My bad, I should have said it before. >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Public key ID: E8FE60D7 >>>>>> Public key server: see, e.g., hkp://keys.gnupg.net >>>>>> >>>>>> On Thu, Jun 18, 2015 at 2:36 PM, Christopher Allen >>>>>> wrote: >>>>>>> >>>>>>> Did you see that the Mac instructions said to follow the "other >>>>>>> *nix" instructions if you were using an older version of Mac OS X? >>>>>>> >>>>>>> Those link here: >>>>>>> https://www.haskell.org/ghc/download_ghc_7_8_4#binaries >>>>>>> >>>>>>> Get rid of all that (GHC, HP, Cabal), then install GHC using the >>>>>>> bindist for Mac OS X linked above. >>>>>>> >>>>>>> On Thu, Jun 18, 2015 at 1:14 PM, Miguel A. Santos >>>>>>> wrote: >>>>>>>> >>>>>>>> That is obviously a typo: I meant I *did* do a fresh install of >>>>>>>> the Haskell Platform and cabal before >>>>>>>> trying -and failing- to install yesod. >>>>>>>> >>>>>>>> On Thu, Jun 18, 2015 at 1:38 PM, Miguel A. Santos >>>>>>>> wrote: >>>>>>>>> >>>>>>>>> This corresponds to a fresh install of the HP, ghc, and cabal >>>>>>>>> I didn't before trying to install yesod. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Public key ID: E8FE60D7 >>>>>>>> Public key server: see, e.g., hkp://keys.gnupg.net >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Haskell-Cafe mailing list >>>>>>>> Haskell-Cafe@haskell.org >>>>>>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Chris Allen >>>>>>> Currently working on http://haskellbook.com >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Chris Allen >>>>> Currently working on http://haskellbook.com >>>> >>>> >>> >>> >>> >>> -- >>> Chris Allen >>> Currently working on http://haskellbook.com >> >> > > > > -- > Chris Allen > Currently working on http://haskellbook.com -- Chris Allen Currently working on http://haskellbook.com
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe

Christopher, David, Geraldus,
first thanks a lot for your help. Feels easier to dedicate so much time
troubleshooting this.
I will try then Stack and Stackage then.
A few more questions though to make sure I understand things right.
Yesterday
1) I did
mv ~/.ghc ~/.,ghc-org
cabal install yesod
It didn't work -that's ok- but it didn't recreate ~/.ghc anew. Is that
because nothing new (yesod in this case) got installed? or did I miss
something?
2)In order to work with/in a sandbox it's enough to do
mkdir ~/mySandboxDir
cd ~/mySandboxDir
cabal sandbox newPackage
right?
3)In order to remove all of my HP stuff last time I manually looked
for all Haskell stuff in my system and rm-ed it. If you know of any
uninstall script that would be nice! ;-)
Finally, a thought to share. The site www.haskell.org seems the canonical
place to start playing with Haskell, that is,
they explicitly recommend HP as the way to go for older macs. Also, yesod
site doesn't mention that HP might be the worse place to start with for
installing yesod. I think the community there should get to a consensus and
make it clearer. That'd especially help newcomers to Haskell -and we can
only benefit from that.
Again thanks all. I'll post back my results with stack or stackage so the
list has a record of my endeavour with haskell+yesod.
MA
--
Public key ID: E8FE60D7
Public key server: see, e.g., hkp://keys.gnupg.net
On Fri, Jun 19, 2015 at 4:10 AM, Geraldus
Try stack first https://www.fpcomplete.com/blog/2015/06/announcing-first-public-beta-stack
пт, 19 июня 2015 г. в 12:52, David Turner
: Hi,
I think Stackage will solve these issues - indeed, I believe that Stackage grew out of the difficulty of installing Yesod and its dependencies straight from Hackage using cabal.
If you download https://www.stackage.org/lts/cabal.config next to your own .cabal file then it will constrain cabal to only use a set of packages which are known to be mutually compatible.
Hope that helps,
David
Hi, Miguel. Haskell Platform includes GHC itself and some set of
such as text, network, and etc. If I recall correctly thete was issues with Yesod and HP because some package versions and the best way to install Yesod were sandboxes, because sandbox have its own package database. Removing or just moving .ghc folder helped me in past several times, usually it was needed when different projects depends on different package versions, now I put every project inside sandbox to prevent this. As for pandoc, if you use only binary you can install it having no GHC at all (download package installer from website). If I were you I'll install GHC 7.8.* alone rather than Platform, caball-install 1.22.* and try to build everything againg using sandboxes. Also there is a Stackage and its tools (stackage-cli and recently released stack), they are very helpful in caball-hell issues. Also there is Halcyon but I have not tried it myself. Apologize for missing links, I'm mobile now.
3:23 до полудня, пт, 19.06.2015, Miguel A. Santos
: One more detail about my try with rm ~/.ghc: I find it curious that I didn't get that directory rebuild again when trying to install yesod. Did I miss something?
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 6:18 PM, Miguel A. Santos
wrote: Ok, removing ~/.ghc (actually just moving it to ~/.ghc-org) didn't
work
either. The detailed output is below but from a cursory view it seems not much better than within the sandbox try before.
I understand I'm staying in the "past" and with that comes problems
this one, but upgrading to Yellowstone is not an option for me.
I have some questions about your other options. In particular, I'm not sure what you mean by (capitals) GHC. I thought that's just the compiler. I don't understand your first sentence after "vanilla". What is what I got with HP if not GHC for MacOSX!?
About point 2., I'm building (already for hours, that's the 'other' process I'd running) ghc from the tarball ghc-7.8.4-src.tar.bz2 available at the bottom of that same link we mentioned before, namely, https://www.haskell.org/ghc/download_ghc_7_8_4#binaries Is this the same as what you mean by this 2nd option? Mind you I'm already using version 7.8.3. How will a new version of the compiler change what looks like a compatibility problem with a package? or you mean it is not that simple?
Option 3: It seems to me I may as well just remove everything, install HP again (already downloaded) and after that step finishes, trying installing right away yesod, before I try with any other packages. Seems a path based mostly on blind hope than logic to me :-p as the only big thing I installed between my fresh install of HP and my initial try of yesod was pandoc, which had some large dependencies to deal with. But it's a simple one, so I may check it definitely out of the equation.
Option 4: I guess this is something I can try right away without much effort. To be concrete you mean then cabal install --allow-newer yesod ?
Btw, thanks so much for your prompt help!
-------------------------------------------- msantos@MBP-2[17:09]:~/System/YESOD$mv ~/.ghc/ ~/.ghc-org msantos@MBP-2[17:30]:~$cabal install yesod==1.2.6.1 Warning: The package list for 'hackage.haskell.org' is 15.0 days old. Run 'cabal update' to get the latest list of available packages. Resolving dependencies... cabal: Could not resolve dependencies: next goal: yesod (user goal) rejecting: yesod-1.4.1.5, 1.4.1.4, 1.4.1.3, 1.4.1.2, 1.4.1.1, 1.4.1, 1.4.0 (global constraint requires ==1.2.6.1) trying: yesod-1.2.6.1 trying: streaming-commons-0.1.12.1 (dependency of yesod-1.2.6.1) trying: network-2.4.2.3/installed-575... (dependency of streaming-commons-0.1.12.1) trying: parsec-3.1.5/installed-04a... (dependency of network-2.4.2.3/installed-575...) trying: mtl-2.1.3.1/installed-8bc... (dependency of parsec-3.1.5/installed-04a...) trying: shakespeare-2.0.5 (dependency of yesod-1.2.6.1) trying: exceptions-0.8.0.2 (dependency of shakespeare-2.0.5) trying: transformers-compat-0.4.0.4 (dependency of exceptions-0.8.0.2) trying: transformers-compat-0.4.0.4:-two rejecting: transformers-compat-0.4.0.4:-three (conflict: mtl => transformers==0.3.0.0/installed-16a...,
=> transformers>=0.4.1 && <0.5) rejecting: transformers-compat-0.4.0.4:+three (manual flag can only be changed explicitly) Backjump limit reached (change with --max-backjumps).
-- Public key ID: E8FE60D7 Public key server: see, e.g., hkp://keys.gnupg.net
On Thu, Jun 18, 2015 at 5:15 PM, Christopher Allen
wrote:
You don't need to rm -rf ~/.ghc if you're using a sandbox. The
sandbox
(usually) occludes the user package-db.
Well, the sandbox may not have fixed the incompatibility of HP and
particular version of Yesod, but we're better information from the dependency solver.
That said, this is going to simply require a lot of trial and error if you want to try this approach and me telling you increment/decrement versions isn't going to be any faster.
I'd say your best options are:
1. Upgrade your installation of Mac OS X so you can use the vanilla GHC bindist, or even better, GHC for Mac OS X
2. Use your copy of Haskell Platform to build GHC from source and use that instead of GHC (possibly a quagmire, might work out okay. Will take a long time to build.)
3. Unregister all the unnecessary packages from your global
Listing here: https://www.haskell.org/platform/changelog.html (Additional Platform Libraries, do *not* uninstall any of the core libraries) If you make a mistake you may need to reinstall Platform.
4. Give passing --allow-newer to cabal install a shot.
This is rough. Not that many people on <10.7 OS X versions so there aren't enough squeaky wheels for this sort of thing.
Sorry I couldn't do more.
On Thu, Jun 18, 2015 at 3:54 PM, Miguel A. Santos
wrote: > > Hmm.. wouldn't that mean, I later have to reinstall all my packages? > :-/ > > Meanwhile, I did try the sandbox way. It didn't work either. Briefly I > issued > cabal sandbox init > and then > cabal install yesod-1.2.6.1 > Details below. > > The initial complain about not being able to resolve dependencies makes > me think > I may be missing more things about working with sandboxes. Just checked > > https://www.haskell.org/cabal/users-guide/installing-packages.html#developin... > and guessed the init would be enough. > > -------------------------------------------------------- > msantos@MBP-2[16:38]:~/System/YESOD/Sandbox$cabal sandbox init > Writing a default package environment file to > /Users/msantos/System/YESOD/Sandbox/cabal.sandbox.config > Creating a new sandbox at > /Users/msantos/System/YESOD/Sandbox/.cabal-sandbox > msantos@MBP-2[16:41]:~/System/YESOD/Sandbox$cabal install yesod-1.2.6.1 > Resolving dependencies... > cabal: Could not resolve dependencies: > next goal: yesod (user goal) > rejecting: yesod-1.4.1.5, 1.4.1.4, 1.4.1.3, 1.4.1.2, 1.4.1.1, 1.4.1, > 1.4.0 > (global constraint requires ==1.2.6.1) > trying: yesod-1.2.6.1 > trying: streaming-commons-0.1.12.1 (dependency of yesod-1.2.6.1) > trying: network-2.4.2.3/installed-575... (dependency of > streaming-commons-0.1.12.1) > trying: parsec-3.1.5/installed-04a... (dependency of > network-2.4.2.3/installed-575...) > trying: mtl-2.1.3.1/installed-8bc... (dependency of > parsec-3.1.5/installed-04a...) > trying: shakespeare-2.0.5 (dependency of yesod-1.2.6.1) > trying: exceptions-0.8.0.2 (dependency of shakespeare-2.0.5) > trying: transformers-compat-0.4.0.4 (dependency of exceptions-0.8.0.2) > trying: transformers-compat-0.4.0.4:-two > rejecting: transformers-compat-0.4.0.4:-three (conflict: mtl => > transformers==0.3.0.0/installed-16a..., > transformers-compat-0.4.0.4:three => > transformers>=0.4.1 && <0.5) > rejecting: transformers-compat-0.4.0.4:+three (manual flag can only be > changed > explicitly) > Backjump limit reached (change with --max-backjumps). > > Note: when using a sandbox, all packages are required to have > consistent > dependencies. Try reinstalling/unregistering the offending packages or > recreating the sandbox. > > -- > Public key ID: E8FE60D7 > Public key server: see, e.g., hkp://keys.gnupg.net > > On Thu, Jun 18, 2015 at 4:46 PM, Christopher Allen < cma@bitemyapp.com> > wrote: >> >> If you won't use a sandbox, then lets nuke your user package-db and >> start from scratch: >> >> rm -rf ~/.ghc >> cabal install yesod==1.2.6.1 >> >> On Thu, Jun 18, 2015 at 3:28 PM, Miguel A. Santos >> wrote: >>> >>> I haven't yet read how to use sandboxes, so, no, that I tried just >>> like that cabal install... >>> I did check first that cabal info yesod was saying I didn't have it >>> install. But now that you mention it, I did >>> may have had other packages lingering around from my last attempt of >>> installing yesod. >>> >>> Meanwhile I did run forcing the install of 1.4.0... >>> Ah, it finished with cabal install --force-reinstalls yesod-1.4.0 >>> and... >>> it complains about the shakespeare. >>> >>> "shakespeare-2.0.5 failed during the building phase. The exception >>> was: >>> ExitFailure 1" >>> >>> Below the full output. >>> >>> I'll give a try to the sandbox solution. >>> >>> ------------------------------------------------ >>> msantos@MBP-2[16:09]:~/System/YESOD$cabal install --force-reinstalls >>> yesod-1.4.0 >>> Resolving dependencies... >>> Warning: The following packages are likely to be broken by the >>> reinstalls: >>> pandoc-citeproc-0.7.1.1 >>> pandoc-1.14.0.4 >>> project-template-0.2.0 >>> http-reverse-proxy-0.4.2 >>> Continuing even though the plan contains dangerous reinstalls. >>> Downloading monad-control-0.3.3.1... >>> Configuring shakespeare-2.0.5... >>> Configuring monad-control-0.3.3.1... >>> Building monad-control-0.3.3.1... >>> Building shakespeare-2.0.5... >>> Installed monad-control-0.3.3.1 >>> Configuring lifted-base-0.2.3.6... >>> Building lifted-base-0.2.3.6... >>> Configuring resource-pool-0.2.3.2... >>> Installed lifted-base-0.2.3.6 >>> Building resource-pool-0.2.3.2... >>> Installed resource-pool-0.2.3.2 >>> Configuring enclosed-exceptions-1.0.1.1... >>> Building enclosed-exceptions-1.0.1.1... >>> Configuring resourcet-1.1.5... >>> Installed enclosed-exceptions-1.0.1.1 >>> Building resourcet-1.1.5... >>> Failed to install shakespeare-2.0.5 >>> Build log ( /Users/msantos/.cabal/logs/shakespeare-2.0.5.log ): >>> Configuring shakespeare-2.0.5... >>> Building shakespeare-2.0.5... >>> Preprocessing library shakespeare-2.0.5... >>> [ 1 of 17] Compiling Text.MkSizeType ( Text/MkSizeType.hs, >>> dist/build/Text/MkSizeType.o ) >>> [ 2 of 17] Compiling Text.IndentToBrace ( Text/IndentToBrace.hs, >>> dist/build/Text/IndentToBrace.o ) >>> [ 3 of 17] Compiling Text.Shakespeare.Base ( >>> Text/Shakespeare/Base.hs, dist/build/Text/Shakespeare/Base.o ) >>> [ 4 of 17] Compiling Text.Hamlet.Parse ( Text/Hamlet/Parse.hs, >>> dist/build/Text/Hamlet/Parse.o ) >>> [ 5 of 17] Compiling Text.Hamlet ( Text/Hamlet.hs, >>> dist/build/Text/Hamlet.o ) >>> >>> Text/Hamlet.hs:402:1: Warning: Defined but not used: ‘varName’ >>> >>> Text/Hamlet.hs:406:1: Warning: Defined but not used: ‘strToExp’ >>> >>> Text/Hamlet.hs:439:16: Warning: Defined but not used: ‘html’ >>> >>> Text/Hamlet.hs:440:14: Warning: Defined but not used: ‘url’ >>> >>> Text/Hamlet.hs:441:19: Warning: Defined but not used: ‘url’ >>> >>> Text/Hamlet.hs:442:16: Warning: Defined but not used: ‘url’ >>> >>> Text/Hamlet.hs:443:20: Warning: Defined but not used: ‘msg_url’ >>> >>> Text/Hamlet.hs:444:14: Warning: Defined but not used: ‘msg’ >>> >>> Text/Hamlet.hs:488:43: Warning: >>> This binding for ‘c’ shadows the existing binding >>> bound at Text/Hamlet.hs:484:13 >>> [ 6 of 17] Compiling Text.Hamlet.RT ( Text/Hamlet/RT.hs, >>> dist/build/Text/Hamlet/RT.o ) >>> >>> Text/Hamlet/RT.hs:78:13: Warning: Defined but not used: ‘x’ >>> >>> Text/Hamlet/RT.hs:78:26: Warning: Defined but not used: ‘deref’ >>> >>> Text/Hamlet/RT.hs:78:45: Warning: Defined but not used: ‘docs’ >>> >>> Text/Hamlet/RT.hs:85:13: Warning: Defined but not used: ‘x’ >>> >>> Text/Hamlet/RT.hs:85:25: Warning: Defined but not used: ‘deref’ >>> >>> Text/Hamlet/RT.hs:85:44: Warning: Defined but not used: ‘jdocs’ >>> >>> Text/Hamlet/RT.hs:85:50: Warning: Defined but not used: ‘ndocs’ >>> >>> Text/Hamlet/RT.hs:115:37: Warning: >>> This binding for ‘x’ shadows the existing binding >>> bound at Text/Hamlet/RT.hs:108:13 >>> [ 7 of 17] Compiling Text.Shakespeare ( Text/Shakespeare.hs, >>> dist/build/Text/Shakespeare.o ) >>> [ 8 of 17] Compiling Text.Shakespeare.Text ( >>> Text/Shakespeare/Text.hs, dist/build/Text/Shakespeare/Text.o ) >>> [ 9 of 17] Compiling Text.Julius ( Text/Julius.hs, >>> dist/build/Text/Julius.o ) >>> >>> Text/Julius.hs:90:63: Warning: >>> In the use of ‘fromValue’ (imported from Data.Aeson.Encode): >>> Deprecated: "Use 'encodeToTextBuilder' instead" >>> [10 of 17] Compiling Text.Roy ( Text/Roy.hs, >>> dist/build/Text/Roy.o ) >>> [11 of 17] Compiling Text.Coffee ( Text/Coffee.hs, >>> dist/build/Text/Coffee.o ) >>> [12 of 17] Compiling Text.Css ( Text/Css.hs, >>> dist/build/Text/Css.o ) >>> >>> Text/Css.hs:349:40: Warning: Defined but not used: ‘subblocks’ >>> >>> Text/Css.hs:367:5: Warning: Defined but not used: ‘subGo’ >>> [13 of 17] Compiling Text.CssCommon ( Text/CssCommon.hs, >>> dist/build/Text/CssCommon.o ) >>> Loading package ghc-prim ... linking ... done. >>> Loading package integer-gmp ... linking ... done. >>> Loading package base ... linking ... done. >>> Loading package array-0.5.0.0 ... linking ... done. >>> Loading package deepseq-1.3.0.2 ... linking ... done. >>> Loading package filepath-1.3.0.2 ... linking ... done. >>> Loading package old-locale-1.0.0.6 ... linking ... done. >>> Loading package time-1.4.2 ... linking ... done. >>> Loading package bytestring-0.10.4.0 ... linking ... done. >>> Loading package unix-2.7.0.1 ... linking ... done. >>> Loading package directory-1.2.1.0 ... linking ... done. >>> Loading package process-1.2.0.0 ... linking ... done. >>> Loading package transformers-0.3.0.0 ... linking ... done. >>> Loading package mtl-2.1.3.1 ... linking ... done. >>> Loading package text-1.1.0.0 ... linking ... done. >>> Loading package parsec-3.1.5 ... <command line>: can't load .so/.DLL >>> for: >>> /Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib >>> (dlopen(/Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib, >>> 9): Library not loaded: @rpath/libHStext-1.1.0.0-ghc7.8.3.dylib >>> Referenced from: >>> /Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib >>> Reason: image not found) >>> Installed resourcet-1.1.5 >>> Configuring wai-extra-3.0.7.1... >>> Configuring conduit-1.2.4.2... >>> Building conduit-1.2.4.2... >>> Building wai-extra-3.0.7.1... >>> Installed conduit-1.2.4.2 >>> Configuring conduit-extra-1.1.9... >>> Building conduit-extra-1.1.9... >>> Configuring http-conduit-2.1.5... >>> Installed wai-extra-3.0.7.1 >>> Building http-conduit-2.1.5... >>> Configuring yaml-0.8.11... >>> Installed http-conduit-2.1.5 >>> Building yaml-0.8.11... >>> Installed conduit-extra-1.1.9 >>> Configuring monad-logger-0.3.13.1... >>> Building monad-logger-0.3.13.1... >>> Configuring xml-conduit-1.3.0... >>> Installed monad-logger-0.3.13.1 >>> Building xml-conduit-1.3.0... >>> Installed yaml-0.8.11 >>> Configuring persistent-2.1.6... >>> Building persistent-2.1.6... >>> Installed xml-conduit-1.3.0 >>> Configuring tagstream-conduit-0.5.5.3... >>> Building tagstream-conduit-0.5.5.3... >>> Installed tagstream-conduit-0.5.5.3 >>> Configuring authenticate-1.3.2.11... >>> Building authenticate-1.3.2.11... >>> Installed authenticate-1.3.2.11 >>> Installed persistent-2.1.6 >>> Configuring persistent-template-2.1.3.3... >>> Building persistent-template-2.1.3.3... >>> Installed persistent-template-2.1.3.3 >>> Updating documentation index >>> >>> /Users/msantos/Library/Haskell/share/doc/x86_64-osx-ghc-7.8.3/index.html >>> cabal: Error: some packages failed to install: >>> shakespeare-2.0.5 failed during the building phase. The exception >>> was: >>> ExitFailure 1 >>> yesod-1.4.0 depends on shakespeare-2.0.5 which failed to install. >>> yesod-auth-1.4.5 depends on shakespeare-2.0.5 which failed to >>> install. >>> yesod-core-1.4.9.1 depends on shakespeare-2.0.5 which failed to >>> install. >>> yesod-form-1.4.4.1 depends on shakespeare-2.0.5 which failed to >>> install. >>> yesod-persistent-1.4.0.2 depends on shakespeare-2.0.5 which failed to >>> install. >>> >>> >>> -- >>> Public key ID: E8FE60D7 >>> Public key server: see, e.g., hkp://keys.gnupg.net >>> >>> On Thu, Jun 18, 2015 at 4:16 PM, Christopher Allen >>> wrote: >>>> >>>> Some of that looks like churn from trying to install an older >>>> version of Yesod over a newer one. Are you using a sandbox? if so, did you >>>> wipe it out before attempting Yesod 1.2.6.1? What we'd be looking for is a >>>> package conflict that tells you which package of what version >>>> globally installed is causing the conflict. >>>> >>>> Insta-Yesodian conflict implies you're reinstalling into a not-fresh >>>> packgage-db which means you either need to wipe your user
On 19 June 2015 at 08:37, Geraldus
wrote: packages, like transformers-compat-0.4.0.4:three that package-db. that is package-db or use >>>> a sandbox. (I recommend the latter). >>>> >>>> If you haven't done so, do that, then re-attempt that version of >>>> Yesod (1.2.6.1). >>>> >>>> >>>> >>>> On Thu, Jun 18, 2015 at 2:57 PM, Miguel A. Santos >>>>
wrote: >>>>> >>>>> Thanks! No problem. I gave a try to your suggestion. It doesn't >>>>> look I'll get yesod installed without "paying" >>>>> a bigger price than just "downgrading". :-/ >>>>> >>>>> Yesod 1.4.0 warns that forcing installing it will likely break >>>>> pandoc, among other things. >>>>> I can give it a try though, but I really use pandoc regularly. >>>>> Plus, it's still not clear that the building process >>>>> will not fail. And installing pandoc took me surprisingly a lot of >>>>> time last time. >>>>> >>>>> Forcing Yesod-1.2.6.1 won't allow cabal to satisfy the >>>>> dependencies. >>>>> >>>>> I guess I could keep trying other versions and see. But I think >>>>> I'll try the 1.4.0 first. Will post here >>>>> the results so that at least others may hopefully benefit from >>>>> this. >>>>> >>>>> >>>>>
>>>>> msantos@MBP-2[15:42]:~/System$cabal install yesod-1.4.0 >>>>> Resolving dependencies... >>>>> In order, the following would be installed: >>>>> monad-control-0.3.3.1 (latest: 1.0.0.4) (via: yesod-1.4.0 >>>>> yesod-core-1.4.9.1 authenticate-1.3.2.11 xml-conduit-1.3.0 >>>>> persistent-template-2.1.3.3 persistent-2.1.6 monad-logger-0.3.13.1 >>>>> http-conduit-2.1.5 conduit-extra-1.1.9 resourcet-1.1.5 resource-pool-0.2.3.2 >>>>> enclosed-exceptions-1.0.1.1 lifted-base-0.2.3.6) (new version) >>>>> lifted-base-0.2.3.6 (via: yesod-auth-1.4.5 yesod-core-1.4.9.1 >>>>> wai-extra-3.0.7.1 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 >>>>> conduit-1.2.4.2 resourcet-1.1.5 enclosed-exceptions-1.0.1.1) (reinstall) >>>>> (changes: monad-control-1.0.0.4 -> 0.3.3.1) >>>>> enclosed-exceptions-1.0.1.1 (via: yaml-0.8.11) (reinstall) >>>>> (changes: monad-control-1.0.0.4 -> 0.3.3.1) >>>>> resource-pool-0.2.3.2 (via: yesod-persistent-1.4.0.2 >>>>> persistent-2.1.6) (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) >>>>> resourcet-1.1.5 (via: yesod-auth-1.4.5 yesod-form-1.4.4.1 >>>>> yesod-persistent-1.4.0.2 yesod-core-1.4.9.1 yaml-0.8.11 >>>>> authenticate-1.3.2.11 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 >>>>> wai-extra-3.0.7.1 persistent-2.1.6 monad-logger-0.3.13.1 http-conduit-2.1.5 >>>>> conduit-extra-1.1.9 conduit-1.2.4.2) (reinstall) (changes: >>>>> monad-control-1.0.0.4 -> 0.3.3.1) >>>>> conduit-1.2.4.2 (via: yesod-auth-1.4.5 yesod-persistent-1.4.0.2 >>>>> yesod-core-1.4.9.1 yaml-0.8.11 authenticate-1.3.2.11 >>>>> tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 persistent-2.1.6 >>>>> monad-logger-0.3.13.1 http-conduit-2.1.5 conduit-extra-1.1.9) (reinstall) >>>>> conduit-extra-1.1.9 (via: yesod-1.4.0 yesod-auth-1.4.5 >>>>> yesod-core-1.4.9.1 tagstream-conduit-0.5.5.3 xml-conduit-1.3.0 >>>>> monad-logger-0.3.13.1) (reinstall) (changes: monad-control-1.0.0.4 -> >>>>> 0.3.3.1) >>>>> http-conduit-2.1.5 (via: yesod-auth-1.4.5 authenticate-1.3.2.11) >>>>> (reinstall) (changes: monad-control-1.0.0.4 -> 0.3.3.1) >>>>> monad-logger-0.3.13.1 (via: yesod-1.4.0 yesod-core-1.4.9.1 >>>>> persistent-template-2.1.3.3 persistent-2.1.6) (reinstall) (changes: >>>>> monad-control-1.0.0.4 -> 0.3.3.1) >>>>> persistent-2.1.6 (via: yesod-auth-1.4.5 yesod-form-1.4.4.1 >>>>> yesod-persistent-1.4.0.2 persistent-template-2.1.3.3) (reinstall) (changes: >>>>> monad-control-1.0.0.4 -> 0.3.3.1) >>>>> persistent-template-2.1.3.3 (via: yesod-auth-1.4.5 >>>>> yesod-persistent-1.4.0.2) (reinstall) (changes: monad-control-1.0.0.4 -> >>>>> 0.3.3.1) >>>>> shakespeare-2.0.5 (via: yesod-1.4.0 yesod-auth-1.4.5 >>>>> yesod-form-1.4.4.1 yesod-core-1.4.9.1) (new package) >>>>> wai-extra-3.0.7.1 (via: yesod-1.4.0 yesod-core-1.4.9.1) (reinstall) >>>>> xml-conduit-1.3.0 (via: authenticate-1.3.2.11 >>>>> tagstream-conduit-0.5.5.3) (reinstall) (changes: monad-control-1.0.0.4 -> >>>>> 0.3.3.1) >>>>> tagstream-conduit-0.5.5.3 (via: authenticate-1.3.2.11) (reinstall) >>>>> authenticate-1.3.2.11 (via: yesod-auth-1.4.5) (reinstall) (changes: >>>>> monad-control-1.0.0.4 -> 0.3.3.1) >>>>> yaml-0.8.11 (via: yesod-1.4.0) (reinstall) >>>>> yesod-core-1.4.9.1 (via: yesod-1.4.0 yesod-auth-1.4.5 >>>>> yesod-form-1.4.4.1 yesod-persistent-1.4.0.2) (new package) >>>>> yesod-persistent-1.4.0.2 (via: yesod-1.4.0 yesod-auth-1.4.5 >>>>> yesod-form-1.4.4.1) (new package) >>>>> yesod-form-1.4.4.1 (via: yesod-1.4.0 yesod-auth-1.4.5) (new >>>>> package) >>>>> yesod-auth-1.4.5 (via: yesod-1.4.0) (new package) >>>>> yesod-1.4.0 (latest: 1.4.1.5) (new package) >>>>> cabal: The following packages are likely to be broken by the >>>>> reinstalls: >>>>> pandoc-citeproc-0.7.1.1 >>>>> pandoc-1.14.0.4 >>>>> project-template-0.2.0 >>>>> http-reverse-proxy-0.4.2 >>>>> Use --force-reinstalls if you want to install anyway. >>>>> msantos@MBP-2[15:42]:~/System$cabal install yesod-1.2.6.1 >>>>> Resolving dependencies... >>>>> cabal: Could not resolve dependencies: >>>>> next goal: yesod (user goal) >>>>> rejecting: yesod-1.4.1.5, 1.4.1.4, 1.4.1.3, 1.4.1.2, 1.4.1.1, >>>>> 1.4.1, 1.4.0 >>>>> (global constraint requires ==1.2.6.1) >>>>> trying: yesod-1.2.6.1 >>>>> trying: streaming-commons-0.1.12.1/installed-200... (dependency of >>>>> yesod-1.2.6.1) >>>>> trying: warp-3.0.13.1/installed-150... (dependency of >>>>> yesod-1.2.6.1) >>>>> next goal: yesod-form (dependency of yesod-1.2.6.1) >>>>> rejecting: yesod-form-1.4.4.1, 1.4.4, 1.4.3.1, 1.4.3, 1.4.2.1, >>>>> 1.4.2, 1.4.1.1, >>>>> 1.4.1, 1.4.0.2, 1.4.0.1, 1.4.0 (conflict: yesod => yesod-form>=1.3 >>>>> && <1.4) >>>>> trying: yesod-form-1.3.16 >>>>> next goal: persistent (dependency of yesod-form-1.3.16) >>>>> rejecting: persistent-2.1.6/installed-4f9..., 2.1.6, 2.1.5, 2.1.4, >>>>> 2.1.3, >>>>> 2.1.2, 2.1.1.7, 2.1.1.6, 2.1.1.5, 2.1.1.4, 2.1.1.3, 2.1.1.2, >>>>> 2.1.1.1, 2.1.1, >>>>> 2.1.0.2, 2.1.0.1, 2.1 (conflict: yesod-form => persistent>=1.2 && >>>>> <2.1) >>>>> trying: persistent-1.3.3 >>>>> trying: path-pieces-0.2.0/installed-533... (dependency of >>>>> persistent-1.3.3) >>>>> next goal: yesod-core (dependency of yesod-1.2.6.1) >>>>> rejecting: yesod-core-1.4.9.1, 1.4.9, 1.4.8.3, 1.4.8.2, 1.4.8.1, >>>>> 1.4.8, >>>>> 1.4.7.3, 1.4.7.2, 1.4.7.1, 1.4.7, 1.4.6.2, 1.4.6.1, 1.4.6, 1.4.5, >>>>> 1.4.4.5, >>>>> 1.4.4.4, 1.4.4.3, 1.4.4.2, 1.4.4.1, 1.4.4, 1.4.3.1, 1.4.3, 1.4.2, >>>>> 1.4.1.1, >>>>> 1.4.1, 1.4.0.2, 1.4.0.1, 1.4.0 (conflict: yesod => >>>>> yesod-core>=1.2.2 && <1.3) >>>>> rejecting: yesod-core-1.2.20.1, 1.2.20, 1.2.19.2, 1.2.19.1, 1.2.19, >>>>> 1.2.18, >>>>> 1.2.17, 1.2.16.1, 1.2.16, 1.2.15.2, 1.2.15.1, 1.2.15, 1.2.14, >>>>> 1.2.13.1, >>>>> 1.2.13, 1.2.12, 1.2.11.1, 1.2.11, 1.2.10, 1.2.9.2, 1.2.9.1, 1.2.9, >>>>> 1.2.8, >>>>> 1.2.7, 1.2.6.7, 1.2.6.6, 1.2.6.5, 1.2.6.4, 1.2.6.3, 1.2.6.2, >>>>> 1.2.6.1 >>>>> (conflict: path-pieces==0.2.0/installed-533..., yesod-core => >>>>> path-pieces>=0.1.2 && <0.2) >>>>> rejecting: yesod-core-1.2.6 (conflict: streaming-commons => >>>>> text==1.1.0.0/installed-9bd..., yesod-core => text>=0.7 && <0.12) >>>>> rejecting: yesod-core-1.2.5, 1.2.4.5, 1.2.4.4, 1.2.4.3, 1.2.4.2, >>>>> 1.2.4.1, >>>>> 1.2.4, 1.2.3, 1.2.2 (conflict: warp => >>>>> wai==3.0.2.3/installed-39c..., >>>>> yesod-core => wai>=1.4 && <1.5) >>>>> rejecting: yesod-core-1.2.1, 1.2.0.4, 1.2.0.3, 1.2.0.2, 1.2.0.1, >>>>> 1.2.0, >>>>> 1.1.8.3, 1.1.8.2, 1.1.8.1, 1.1.8, 1.1.7.2, 1.1.7.1, 1.1.7, 1.1.6.1, >>>>> 1.1.6, >>>>> 1.1.5, 1.1.4.2, 1.1.4.1, 1.1.4, 1.1.3.1, 1.1.3, 1.1.2.2, 1.1.2.1, >>>>> 1.1.2, >>>>> 1.1.1.2, 1.1.1.1, 1.1.1, 1.1.0.1, 1.1.0, 1.0.1.3, 1.0.1.2, 1.0.1.1, >>>>> 1.0.1, >>>>> 1.0.0.2, 1.0.0.1, 1.0.0, 0.10.3, 0.10.2.2, 0.10.2.1, 0.10.2, >>>>> 0.10.1, 0.9.4.1, >>>>> 0.9.4, 0.9.3.6, 0.9.3.5, 0.9.3.4, 0.9.3.3, 0.9.3.2, 0.9.3.1, 0.9.3, >>>>> 0.9.2, >>>>> 0.9.1.1, 0.9.1, 0.8.3.2, 0.8.3.1, 0.8.3, 0.8.2, 0.8.1, 0.8.0.1, >>>>> 0.8.0, >>>>> 0.7.0.2, 0.7.0.1, 0.7.0 (conflict: yesod => yesod-core>=1.2.2 && >>>>> <1.3) >>>>> Backjump limit reached (change with --max-backjumps). >>>>> >>>>> -- >>>>> Public key ID: E8FE60D7 >>>>> Public key server: see, e.g., hkp://keys.gnupg.net >>>>> >>>>> On Thu, Jun 18, 2015 at 3:32 PM, Christopher Allen >>>>>
wrote: >>>>>> >>>>>> Ah that's frustrating, that's my mistake – I'm sorry. I thought >>>>>> you were talking about GHC for Mac OS X not being available for your OS >>>>>> version either. >>>>>> >>>>>> Your best bet on HP is to specify an older version of Yesod that >>>>>> will work with the dependencies that your version of HP comes with. >>>>>> >>>>>> On Thu, Jun 18, 2015 at 2:08 PM, Miguel A. Santos >>>>>> wrote: >>>>>>> >>>>>>> Indeed I saw that. That's what I meant with the bindist not being >>>>>>> available for OSX 10.6.8; only for 10.7+ >>>>>>> https://www.haskell.org/ghc/download_ghc_7_8_4#macosx_x86_64 >>>>>>> My bad, I should have said it before. >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Public key ID: E8FE60D7 >>>>>>> Public key server: see, e.g., hkp://keys.gnupg.net >>>>>>> >>>>>>> On Thu, Jun 18, 2015 at 2:36 PM, Christopher Allen >>>>>>> wrote: >>>>>>>> >>>>>>>> Did you see that the Mac instructions said to follow the "other >>>>>>>> *nix" instructions if you were using an older version of Mac OS X? >>>>>>>> >>>>>>>> Those link here: >>>>>>>> https://www.haskell.org/ghc/download_ghc_7_8_4#binaries >>>>>>>> >>>>>>>> Get rid of all that (GHC, HP, Cabal), then install GHC using the >>>>>>>> bindist for Mac OS X linked above. >>>>>>>> >>>>>>>> On Thu, Jun 18, 2015 at 1:14 PM, Miguel A. Santos >>>>>>>> wrote: >>>>>>>>> >>>>>>>>> That is obviously a typo: I meant I *did* do a fresh install of >>>>>>>>> the Haskell Platform and cabal before >>>>>>>>> trying -and failing- to install yesod. >>>>>>>>> >>>>>>>>> On Thu, Jun 18, 2015 at 1:38 PM, Miguel A. Santos >>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>> This corresponds to a fresh install of the HP, ghc, and cabal >>>>>>>>>> I didn't before trying to install yesod. >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Public key ID: E8FE60D7 >>>>>>>>> Public key server: see, e.g., hkp://keys.gnupg.net >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> Haskell-Cafe mailing list >>>>>>>>> Haskell-Cafe@haskell.org >>>>>>>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Chris Allen >>>>>>>> Currently working on http://haskellbook.com >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Chris Allen >>>>>> Currently working on http://haskellbook.com >>>>> >>>>> >>>> >>>> >>>> >>>> -- >>>> Chris Allen >>>> Currently working on http://haskellbook.com >>> >>> >> >> >> >> -- >> Chris Allen >> Currently working on http://haskellbook.com > > -- Chris Allen Currently working on http://haskellbook.com
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe

From Haskell Wiki https://wiki.haskell.org/Mac_OS_X Mac OS X page: To uninstall ghc call: *sudo uninstall-hs*
In order to work with/in a sandbox it's enough to do
mkdir ~/MyProject cd ~/MyProject cabal init cabal sandbox init

HP 2014.2.0.0 for Mac OS X is built with a bindist of GHC 7.8.3 that *is* compiled with support for 10.6. To remove HP from a system, you can use the handy unisntall-hs command - that does a better job than just poking around by hand. There does appear to be a problem with Template Haskell, and loading some packages that depend on yet other packages to be loaded... For some reason dynamic loading in this case doesn't resolve. Fortunately there is a workaround: When you see a message like: Loading package parsec-3.1.5 ... <command line>: can't load .so/.DLL for: /Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/ libHSparsec-3.1.5-ghc7.8.3.dylib (dlopen(/Library/Haskell/ghc- 7.8.3-x86_64/lib/parsec-3.1.5/libHSparsec-3.1.5-ghc7.8.3.dylib, 9): *Library not loaded: @rpath/libHStext-1.1.0.0-ghc7.**8.3.dylib* Referenced from: /Library/Haskell/ghc-7.8.3-x86_64/lib/parsec-3.1.5/ libHSparsec-3.1.5-ghc7.8.3.dylib Reason: image not found) Look at the part in red. It indicates that *text *can't be loaded. You need to add it's libdir to an export like so (you are adding the location of the libHStext... file, which is always in a similarly named directory under /Library/Haskell/ghc-7.8.3-x86_64/lib): export DYLD_FALLBACK_LIBRARY_PATH=/Library/Haskell/ghc- 7.8.3-x86_64/lib/text-1.1.0.0:$DYLD_FALLBACK_LIBRARY_PATH Rebuild, and you may see another to add, and you'll have to do this again. To build shaekespeare-2.0.4.1 on a stock HP 2014.2.0.0 install, I needed to add the following libs to that path primitive, hashable, mtl, and text. I don't yet know if this is a bug in the way the HP libs were built, the way GHC was built, or just a fundamental problem of GHC 7.8.3 (and later) and OS X 10.6. - Mark

For the record: The problem doesn't occur on OS X 10.10. I haven't done the "binary search through OS X releases" dance to find where the problem stops being a problem..

Hi,
sorry for the late reply. I got Yesod installed and running on my OSX
10.6.8!
Before I comment how I did it, let me start again by thanking you all for
that quick & generous help.
I haven't had the time to try all those different suggestions you all
provided although I'd like to do so
and post the results here if time permits. It seems to me it could be worth
to have a record of it as others
may follow a different choice of these approaches when it comes to
installing&using Haskell -although that's more of wild
guess of mine than an educated one.
I tried again the minimal disruptive approach, that is, keep my HP
installation and try sandboxing yesod.
The quickstart from the yesod site
http://www.yesodweb.com/page/quickstart
wouldn't work as I said at the beginning of this thread because the
shakespeare package didn't get built.
That's because those steps suggest installing yesod-bin globally and only
afterwards start the sandbox.
Reversing those steps does the work.
More concretely, what I did was
mkdir yesod
cd yesod
wget --no-check-certificate https://www.stackage.org/lts/cabal.config
cabal update
cabal install alex happy (actually I had these already installed)
cabal sandbox init
cabal install network (see below why)
cabal install primitive-0.6 (idem)
cabal install yesod-bin
And at this point shakespeare built fine and yesod got installed. I went
then further and did
export PATH=./.cabal-sandbox/bin/:$PATH
in order to get yesod running.
yesod init --bare
cabal install -j --enable-tests --max-backjumps=-1 --reorder-goal (probably
not necessary; followed blindly init's suggestion)
cabal install --run-tests
yesod devel
That lead to a minor configuring of FirstWebServer-0.0.0..., which
triggered a recompile of a few libraries and a rebuild of the application
and finally a working Welcome Yesod page at localhost:3000
Trying cabal install yesod-bin right after the sandbox init failed with
file not found .cabal-sandbox/logs/network-2.6.2.0.log
This required thus to install network. Still yesod-bin install failed again
this time complaining about not finding file
.cabal-sandbox/logs/primitive-0.6.log, which in turn required the install
of primitive-0.6. After that yesod-bin installs
without problems.
I did do an additional step before the final cabal install yesod-bin, just
out of despair of the time devoted to it. That step was
a
chmod +w .cabal-sandbox/
However, I don't think this is relevant at all. But just in case...
Lastly, let me add another suggestion I got from Rahul Muttineni in a
private email. As I believe in giving credit where credit is due, I'll
paste his answer below for others -and me, in the future- to see. After all
I haven't heard of the Nix package manager before.
Again, thanks all!.
Regards,
MA
On Fri, Jun 19, 2015 at 11:43 AM, R. Muttineni wrote
Hello Miguel,
I saw that you had trouble installing yesod on your Mac OS on the
haskell-cafe mailing list. I receive the list in digest format, so it's
rather cumbersome for me to respond to your thread as it has an extremely
long length. For now, I'll respond to you personally.
I suggest you try the Nix package manager. I'm currently running both
yesod and pandoc on the most recent GHC (7.10.1) with no problems. You can
find a tutorial here http://corajr.com/posts/2014/12/22/nix-osx-haskell/.
It's very easy. Just write (or generate with cabal2nix) the default.nix
file and use the nix command line tools and you're on your way. The
packages are built from source so expect it take lots of time. Pandoc will
take many hours, but yesod should finish in a couple.
If this helped you, please repost this on the mailing list. Don't worry
about quoting me, just provide the link for others to see.
If you face any issues, feel free to ask me, or you can post it on the
nixpkgs github repository and they'll help you out. If you are going to be
developing a lot in Haskell, I suggest you invest time in getting to know
Nix as it guaranteed to cure cabal hell. Stackage works too, but it doesn't
offer you the flexibility of rebuilding the packages for
profiling/debugging effortlessly as well as using different versions of the
compiler for different packages like it does with Nix. Moreover, nixpkgs
currently supports a majority of Hackage, so you don't have to worry about
losing out.
Best Regards,
Rahul Muttineni
--
Public key ID: E8FE60D7
Public key server: see, e.g., hkp://keys.gnupg.net
On Fri, Jun 19, 2015 at 10:57 AM, Mark Lentczner
For the record: The problem doesn't occur on OS X 10.10.
I haven't done the "binary search through OS X releases" dance to find where the problem stops being a problem..
participants (5)
-
Christopher Allen
-
David Turner
-
Geraldus
-
Mark Lentczner
-
Miguel A. Santos