[Haskell-beginners] How to install new GHC ?
Baa
aquagnu at gmail.com
Tue Dec 12 14:48:31 UTC 2017
@Francesco: seems that code which I tried to test with new compiler is
out-of-date for it's Template Haskell "API".
@David: I planned to check existing code with new compiler (to be sure
that my code is OK), but seems that it needs to re-wrire the code, so
I will comment problematic test, GHC bug happens only is the test and
not in usual application code.
@all: Thanks a lot for all tips and help!!
PS. IMHO seems that Template Haskell gives more problems then solves
them :)
===
Best regards, Paul
> If your original goal was to test for a ghc panic in newer ghc, my
> final suggestion would be to get a minimal example that panics
> without all these extra dependencies. If you happen to find that the
> bug exists in newer ghc, you'd have to do that anyways to submit a
> useful bug report.
>
> On Tue, Dec 12, 2017 at 9:06 AM, Baa <aquagnu at gmail.com> wrote:
>
> > I done it, but got the same error. My project uses several my
> > packages (libraries), they are called 'my-*'. I changed in
> > their .cabal-files versions range of "base" too, but error is the
> > same. Build-depends stanza of executable looks like:
> >
> > build-depends: base >= 4.9 && < 4.11
> > , text
> > , my-common-utils
> > , my-atlassian-utils
> > , my-jenkins-utils
> > , my-git-utils
> > , aeson
> > , network-uri
> > , network-info
> > , text-show
> > , hslogger
> > , bytestring
> > , transformers
> > , aeson-pretty
> > , time
> > , email-validate
> > , streaming
> > , containers
> > , sqlite-simple
> > , directory
> > , tuple
> > , async
> > , mime-mail
> > , HaskellNet
> > , HaskellNet-SSL
> > , mustache
> > , path
> > , exceptions
> > , mono-traversable
> > , data-default-class
> > , path-io
> > , split
> > , microlens
> > , microlens-th
> > , regex-pcre
> > , pcre-utils
> > , unordered-containers
> > , formatting
> >
> >
> > > On Tue, Dec 12, 2017 at 03:38:30PM +0200, Baa wrote:
> > > > 1. GHC 8.2.2 is here:
> > > > ~/.stack/programs/x86_64-linux/ghc-tinfo6-8.2.2/bin
> > > > 2. done
> > > > 3. yes, it's 8.2.2
> > > > 4. `cabal new-build` said to me call `cabal update`, I done it,
> > > > then run it again and got:
> > > > $ cabal new-build
> > > > Resolving dependencies...
> > > > cabal: Could not resolve dependencies:
> > > > trying: XXX-0.5.0.0 (user goal)
> > > > next goal: YYY-utils (dependency of XXX-0.5.0.0)
> > > > Dependency tree exhaustively searched.
> > >
> > > Good, we're almost there!
> > >
> > > I strongly suspect it is a base constraint. Go in your
> > > something.cabal file, build-depends section(s) and modify it from:
> > >
> > > base >= 4.somenumber && < 4.10
> > >
> > > to
> > >
> > > base >= 4.somenumber && < 4.11
> > >
> > > And try cabal new-build again. If that fails, please include the
> > > content of your `build-depends:` portion in your message
> > > -F
> > > _______________________________________________
> > > Beginners mailing list
> > > Beginners at haskell.org
> > > http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
> >
> > _______________________________________________
> > Beginners mailing list
> > Beginners at haskell.org
> > http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
> >
More information about the Beginners
mailing list