DanielG / ghc-syb

Scrap Your Boilerplate instances for GHC's data types
8 stars 10 forks source link

PostTcType no longer present in GHC > 7.8.x #8

Closed alanz closed 9 years ago

alanz commented 9 years ago

I have left the various staged functions in for GHC > 7.8.x, so that it does not break backward compatibility.

nominolo commented 9 years ago

Could you please rebase this onto current master (rather than just the merge)?

alanz commented 9 years ago

Done

nominolo commented 9 years ago

How do you test this against GHC head? I get:

:; cabal install --with-ghc=/Users/nominolo/code/other/ghc-head/inplace/bin/ghc-stage2 --disable-library-profiling -j1
Resolving dependencies...
Configuring ghc-syb-utils-0.2.2...
Building ghc-syb-utils-0.2.2...
Preprocessing library ghc-syb-utils-0.2.2...

on the commandline: Warning:
    -package-name is deprecated: Use -this-package-key instead
ghc-stage2: ghc no longer supports single-file style package databases (dist/dist-sandbox-20b01e58/package.conf.inplace) use 'ghc-pkg init' to create the database with the correct format.
alanz commented 9 years ago

You need to install the cabal from ghc source libraries, using GHC 7.8.3, via a sandbox.

Then copy the binary to where it belongs. It is a bit of a pain, but you only need to do it once

On Tue, Nov 11, 2014 at 8:46 PM, Thomas Schilling notifications@github.com wrote:

How do you test this against GHC head? I get:

:; cabal install --with-ghc=/Users/nominolo/code/other/ghc-head/inplace/bin/ghc-stage2 --disable-library-profiling -j1 Resolving dependencies... Configuring ghc-syb-utils-0.2.2... Building ghc-syb-utils-0.2.2... Preprocessing library ghc-syb-utils-0.2.2...

on the commandline: Warning: -package-name is deprecated: Use -this-package-key instead ghc-stage2: ghc no longer supports single-file style package databases (dist/dist-sandbox-20b01e58/package.conf.inplace) use 'ghc-pkg init' to create the database with the correct format.

— Reply to this email directly or view it on GitHub https://github.com/nominolo/ghc-syb/pull/8#issuecomment-62595702.

alanz commented 9 years ago

From here https://github.com/ghc/ghc/tree/master/libraries

On Tue, Nov 11, 2014 at 8:48 PM, Alan & Kim Zimmerman alan.zimm@gmail.com wrote:

You need to install the cabal from ghc source libraries, using GHC 7.8.3, via a sandbox.

Then copy the binary to where it belongs. It is a bit of a pain, but you only need to do it once

On Tue, Nov 11, 2014 at 8:46 PM, Thomas Schilling < notifications@github.com> wrote:

How do you test this against GHC head? I get:

:; cabal install --with-ghc=/Users/nominolo/code/other/ghc-head/inplace/bin/ghc-stage2 --disable-library-profiling -j1 Resolving dependencies... Configuring ghc-syb-utils-0.2.2... Building ghc-syb-utils-0.2.2... Preprocessing library ghc-syb-utils-0.2.2...

on the commandline: Warning: -package-name is deprecated: Use -this-package-key instead ghc-stage2: ghc no longer supports single-file style package databases (dist/dist-sandbox-20b01e58/package.conf.inplace) use 'ghc-pkg init' to create the database with the correct format.

— Reply to this email directly or view it on GitHub https://github.com/nominolo/ghc-syb/pull/8#issuecomment-62595702.

alanz commented 9 years ago

Here is another example of installing a current cabal

https://github.com/hvr/packunused/blob/master/.travis.yml

alanz commented 9 years ago

Now that cabal 1.22 is out, will you be able to evaluate this?

nominolo commented 9 years ago

Thanks, I'll look at this tomorrow.

nominolo commented 9 years ago

Done. Released as 0.2.3

alanz commented 9 years ago

Thanks

On Thu, Jan 15, 2015 at 2:13 AM, Thomas Schilling notifications@github.com wrote:

Closed #8 https://github.com/nominolo/ghc-syb/pull/8.

— Reply to this email directly or view it on GitHub https://github.com/nominolo/ghc-syb/pull/8#event-219131276.