GHC 6.12

0 views
Skip to first unread message

Antoine Latter

unread,
Nov 10, 2009, 11:38:14 PM11/10/09
to ha...@googlegroups.com
Folks,

Attached is a patch against happstack HEAD to compile against GHC
6.12. Most of it is just chasing down types until it builds. I have
also tested the patch against GHC 6.10, but it could surely use more.

A few areas to note:

- I don't have any projects using ixset, but I've included it for
completeness. It compiles, but I'm not certain the 'infer ixset' stuff
will work properly against type vars of higher kinds with kind
annotations.

- You'll need syb-with-class from darcs head if you want to test with GHC 6.12

- You'll need a version of GHC 6.12 newer that RC1 to test against 6.12

Also - is this the right place to send patches?

Take care,
Antoine

ghc_612.dpatch

stepcut

unread,
Nov 11, 2009, 8:02:07 AM11/11/09
to HAppS
On Nov 10, 10:38 pm, Antoine Latter <aslat...@gmail.com> wrote:
> Folks,
>
> Attached is a patch against happstack HEAD to compile against GHC
> 6.12. Most of it is just chasing down types until it builds. I have
> also tested the patch against GHC 6.10, but it could surely use more.

Excellent. I'll check that it also builds against 6.8 and then apply
it! Thanks!

And, yes, this is the right place to send patches.

- jeremy

stepcut

unread,
Nov 14, 2009, 11:50:55 AM11/14/09
to HAppS
Hello,

I applied this patch. But, we are having trouble getting happstack
dependencies to compile under 6.12. Did you encounter this error?


I encountered a problem with the compilation of happstack there: the
package strict-concurrency doesn't compile:
Building and installing all cabal packages
Resolving dependencies...
Configuring strict-concurrency-0.2.1...
Preprocessing library strict-concurrency-0.2.1...
Building strict-concurrency-0.2.1...
[1 of 2] Compiling Control.Concurrent.MVar.Strict (
Control/Concurrent/MVar/Strict.hs,
dist/build/Control/Concurrent/MVar/Strict.o )

Control/Concurrent/MVar/Strict.hs:39:18:
Module `GHC.Conc' does not export `MVar'

Control/Concurrent/MVar/Strict.hs:39:24:
Module `GHC.Conc' does not export `newEmptyMVar'

Control/Concurrent/MVar/Strict.hs:39:38:
Module `GHC.Conc' does not export `takeMVar'

Control/Concurrent/MVar/Strict.hs:40:18:
Module `GHC.Conc' does not export `tryTakeMVar'

Control/Concurrent/MVar/Strict.hs:40:31:
Module `GHC.Conc' does not export `isEmptyMVar'

Control/Concurrent/MVar/Strict.hs:40:44:
Module `GHC.Conc' does not export `addMVarFinalizer'
cabal: Error: some packages failed to install:
happstack-util-0.4 depends on strict-concurrency-0.2.1 which failed to
install.
strict-concurrency-0.2.1 failed during the building phase. The
exception
was:
ExitFailure 1

thanks!
- jeremy

Antoine Latter

unread,
Nov 14, 2009, 1:01:06 PM11/14/09
to ha...@googlegroups.com, Don Stewart
On Sat, Nov 14, 2009 at 10:50 AM, stepcut <jer...@n-heptane.com> wrote:
> Hello,
>
> I applied this patch. But, we are having trouble getting happstack
> dependencies to compile under 6.12. Did you encounter this error?
>
>
> I encountered a problem with the compilation of happstack there: the
> package strict-concurrency doesn't compile:
> Building and installing all cabal packages
> Resolving dependencies...
> Configuring strict-concurrency-0.2.1...
> Preprocessing library strict-concurrency-0.2.1...
> Building strict-concurrency-0.2.1...
> [1 of 2] Compiling Control.Concurrent.MVar.Strict (
> Control/Concurrent/MVar/Strict.hs,
> dist/build/Control/Concurrent/MVar/Strict.o )
>
> Control/Concurrent/MVar/Strict.hs:39:18:
>   Module `GHC.Conc' does not export `MVar'
>
<SNIP>

Attached is a patch against the strict-concurrency darcs repo which
fixes this. Also CC'ing the maintainer. I haven't tried this against
GHC 6.8, but the old library documentation for base seems to indicate
that this should work quite a bit further back than that.

Antoine
sc_ghc_612.dpatch

stepcut

unread,
Nov 14, 2009, 1:28:06 PM11/14/09
to HAppS
Thanks!

- jeremy
>  sc_ghc_612.dpatch
> 2KViewDownload

Don Stewart

unread,
Nov 14, 2009, 5:58:08 PM11/14/09
to Antoine Latter, ha...@googlegroups.com

stepcut

unread,
Nov 14, 2009, 11:48:49 PM11/14/09
to HAppS
Thank your dons and Antoine Latter!

Now we just need to get sendfile working on 6.8 and 6.12 and we are
looking really good!

- jeremy
Reply all
Reply to author
Forward
0 new messages