jgm / gitit

A wiki using HAppS, pandoc, and git
GNU General Public License v2.0
2.15k stars 225 forks source link

Installing through cabal fails (because of conflicting dependencies requirements?) #619

Closed Bercio closed 6 years ago

Bercio commented 6 years ago

I'll shorten the error message to what I think are the relevant parts:

Resolving dependencies...
cabal: Could not resolve dependencies:
next goal: http-conduit (dependency of gitit-0.12.2.1)
rejecting: http-conduit-2.3.2, http-conduit-2.3.1, http-conduit-2.3.0
(conflict: gitit => http-conduit>=2.1.4 && <2.3)
trying: http-conduit-2.2.4
trying: conduit-extra-1.3.0 (dependency of http-conduit-2.2.4)
next goal: conduit (dependency of http-conduit-2.2.4)
rejecting: conduit-1.3.0.3, conduit-1.3.0.2, conduit-1.3.0.1, conduit-1.3.0
(conflict: http-conduit => conduit>=0.5.5 && <1.3)
rejecting: conduit-1.2.13.1, conduit-1.2.13, conduit-1.2.12.1, conduit-1.2.12,
[...]
(conflict: conduit-extra => conduit>=1.3 && <1.4)
[...]
Backjump limit reached (currently 2000, change with --max-backjumps or try to
run with --reorder-goals).

installing with --reorder-goals gives me the following error

src/Text/Pandoc/Readers/Odt/ContentReader.hs:526:66: error:
    • Could not deduce (Data.Semigroup.Semigroup m)
        arising from a use of ‘<>’
      from the context: Monoid e
        bound by the type signature for:
                   matchingElement :: Monoid e =>
                                      Namespace
                                      -> ElementName -> OdtReaderSafe e e -> ElementMatcher e
        at src/Text/Pandoc/Readers/Odt/ContentReader.hs:(519,1)-(522,35)
      or from: (ArrowChoice a, Monoid m)
        bound by the type signature for:
                   asResultAccumulator :: (ArrowChoice a, Monoid m) =>
                                          a m m -> a m (Fallible m)
        at src/Text/Pandoc/Readers/Odt/ContentReader.hs:525:4-80
      Possible fix:
        add (Data.Semigroup.Semigroup m) to the context of
          the type signature for:
            asResultAccumulator :: (ArrowChoice a, Monoid m) =>
                                   a m m -> a m (Fallible m)
    • In the second argument of ‘(>>%)’, namely ‘(<>)’
      In the second argument of ‘($)’, namely
        ‘keepingTheValue a >>% (<>)’
      In the expression: liftAsSuccess $ keepingTheValue a >>% (<>)
cabal: Leaving directory '/tmp/cabal-tmp-12737/pandoc-1.19.2.1'
cabal: Error: some packages failed to install:
gitit-0.12.2.1 depends on pandoc-1.19.2.1 which failed to install.
pandoc-1.19.2.1 failed during the building phase. The exception was:
ExitFailure 1
jgm commented 6 years ago

Are you trying to build the released version from Hackage, or the dev version?

You should be able to build the dev version, at least, with cabal new-build.