You are not logged in.
Pacman complains that Haskell libraries require ghc=7.10.2-1
The first thing I did is check what's currently installed:
$sudo pacman -Qi ghc
Name           : ghc
Version        : 7.10.2-1
Packager       : ArchHaskell <arch-haskell@haskell.org>Looks like I have the right version installed. When I try to install some related packages, however:
$sudo pacman -Sy haskell-ghc-paths haskell-haddock-api haskell-haddock-library haddock
:: Synchronizing package databases...
 xorg116 is up to date
 core is up to date
 haskell-core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 archlinuxfr is up to date
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: haskell-ghc-paths: requires ghc=7.10.2-1
:: haskell-haddock-library: requires ghc=7.10.2-1This seems completely nonsensical to me. Any ideas?
Offline

It's likely that one of your many official repos has updated ghc, but the new version cannot be installed because packages that depend on it have not been updated. As the main repos only have ghc 7.10.1, clearly that is the source of the problem.
Checking that haskell repo reveals that they have two different versions of haskell-ghc-paths in the repo at the same time, that is likely related. Report the error to them. Actually, it looks like they have multiple versions of most packages.
EDIT: scratch that, the biggest problem is that you are doing partial upgrades. This is not supported.
Last edited by Trilby (2015-08-01 17:25:37)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I don't understand. I already have ghc 7.10.2-1 installed, which is exactly the dependency noted by the error message.
Last edited by royallthefourth (2015-08-01 17:25:03)
Offline
ghc 7.10.1 is in the repos https://www.archlinux.org/packages/?name=ghc so probably some packages want to use this version, thus you get an error.
Offline
The same happens to me.
:: haddock: requires ghc=7.10.1
:: haskell-haddock-api: requires ghc=7.10.1Last edited by кто-то (2015-08-02 13:28:17)
Offline

This is not a programming & scripting issue. Moving to N.C.
If anyone with this problem wants to post something useful, the un-trimmed output of the following would help:
pacman -Qi ghc"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Name           : ghc
Version        : 7.10.1-1
Description    : The Glasgow Haskell Compiler
Architecture   : x86_64
URL            : http://www.haskell.org/ghc/
Licenses       : custom
Groups         : None
Provides       : haskell-array=0.5.1.0  haskell-base=4.8.0.0  haskell-binary=0.7.3.0
                 haskell-bin-package-db=0.0.0.0  haskell-bytestring=0.10.6.0
                 haskell-containers=0.5.6.2  haskell-deepseq=1.4.1.1
                 haskell-directory=1.2.2.0  haskell-filepath=1.4.0.0
                 haskell-ghc-prim=0.4.0.0  haskell-haskeline=0.7.2.1  haskell-hoopl=3.10.0.2
                 haskell-hpc=0.6.0.2  haskell-integer-gmp=1.0.0.0  haskell-pretty=1.1.2.0
                 haskell-process=1.2.3.0  haskell-template-haskell=2.10.0.0
                 haskell-terminfo=0.4.0.1  haskell-time=1.5.0.1
                 haskell-transformers=0.4.2.0  haskell-unix=2.7.1.0  haskell-xhtml=3000.2.1
                 haskell-cabal=1.22.2.0
Depends On     : perl  gmp  gcc  libffi
Optional Deps  : None
Required By    : haddock  haskell-ghc-paths  haskell-haddock-api  haskell-haddock-library
Optional For   : None
Conflicts With : None
Replaces       : haskell-array  haskell-base  haskell-binary  haskell-bin-package-db
                 haskell-bytestring  haskell-containers  haskell-deepseq  haskell-directory
                 haskell-filepath  haskell-ghc-prim  haskell-haskeline  haskell-hoopl
                 haskell-hpc  haskell-integer-gmp  haskell-pretty  haskell-process
                 haskell-template-haskell  haskell-terminfo  haskell-time
                 haskell-transformers  haskell-unix  haskell-xhtml  haskell-cabal
Installed Size : 899.94 MiB
Packager       : Thomas Dziedzic <gostrc@gmail.com>
Build Date     : Sun 29 Mar 2015 04:30:48 AM BRT
Install Date   : Fri 05 Jun 2015 08:33:55 PM BRT
Install Reason : Explicitly installed
Install Script : Yes
Validated By   : SignatureOffline

There's the problem:
$ pacman -Si haddock
...
Depends On     : ghc=7.10.1  haskell-ghc-paths  haskell-haddock-api
..."UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
There's the problem:
$ pacman -Si haddock ... Depends On : ghc=7.10.1 haskell-ghc-paths haskell-haddock-api ...
Is there a solution other than waiting for new versions?
Offline

Remove haddon, Build your own haddock, request that the unofficial repo add haddock, or stop using the onofficial repo.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline