mutually recursive modules and template haskell

View: New views
3 Messages — Rating Filter:   Alert me  

mutually recursive modules and template haskell

by Alfonso Acosta :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I recently reopened an old bug related to TH and mutually recursive
modules. http://hackage.haskell.org/trac/ghc/ticket/1012

Sorry to repost about the bug in this list but the is being a major
blocker for me.

It seems that "ghc --make" could do better when figuring out the build
dependencies when mutually recursive modules and TH are used in the
same set of modules.

Could someone please confirm if I really ran into a bug?

A workaround for me would providing an specific compilation order
(sorry if this is offtopic). I'm using cabal, I tried using Setup
makefile to avoid the bug but it didn't work for me (the makefile
approach doesn't seem to regard the modules included in
"other-modules"). Any pointer would be welcome.

Cheers,

Fons
_______________________________________________
template-haskell mailing list
template-haskell@...
http://www.haskell.org/mailman/listinfo/template-haskell

Re: mutually recursive modules and template haskell

by Alfonso Acosta :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Just in case it helps, it seems that compiling with Cabal's make
backend fails too.

See http://hackage.haskell.org/trac/ghc/ticket/2014

On Dec 31, 2007 6:33 PM, Alfonso Acosta <alfonso.acosta@...> wrote:

> Hi,
>
> I recently reopened an old bug related to TH and mutually recursive
> modules. http://hackage.haskell.org/trac/ghc/ticket/1012
>
> Sorry to repost about the bug in this list but the is being a major
> blocker for me.
>
> It seems that "ghc --make" could do better when figuring out the build
> dependencies when mutually recursive modules and TH are used in the
> same set of modules.
>
> Could someone please confirm if I really ran into a bug?
>
> A workaround for me would providing an specific compilation order
> (sorry if this is offtopic). I'm using cabal, I tried using Setup
> makefile to avoid the bug but it didn't work for me (the makefile
> approach doesn't seem to regard the modules included in
> "other-modules"). Any pointer would be welcome.
>
> Cheers,
>
> Fons
>
_______________________________________________
template-haskell mailing list
template-haskell@...
http://www.haskell.org/mailman/listinfo/template-haskell

RE: mutually recursive modules and template haskell

by Simon Peyton-Jones :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think it's only a bug in documentation.  I've explained in the Trac ticket, and improved the docs. I hope that'll get you un-blocked.
        http://hackage.haskell.org/trac/ghc/ticket/1012


Simon

| -----Original Message-----
| From: template-haskell-bounces@... [mailto:template-haskell-bounces@...] On Behalf Of Alfonso
| Acosta
| Sent: 31 December 2007 17:34
| To: template-haskell@...
| Subject: [Template-haskell] mutually recursive modules and template haskell
|
| Hi,
|
| I recently reopened an old bug related to TH and mutually recursive
| modules. http://hackage.haskell.org/trac/ghc/ticket/1012
|
| Sorry to repost about the bug in this list but the is being a major
| blocker for me.
|
| It seems that "ghc --make" could do better when figuring out the build
| dependencies when mutually recursive modules and TH are used in the
| same set of modules.
|
| Could someone please confirm if I really ran into a bug?
|
| A workaround for me would providing an specific compilation order
| (sorry if this is offtopic). I'm using cabal, I tried using Setup
| makefile to avoid the bug but it didn't work for me (the makefile
| approach doesn't seem to regard the modules included in
| "other-modules"). Any pointer would be welcome.
|
| Cheers,
|
| Fons
| _______________________________________________
| template-haskell mailing list
| template-haskell@...
| http://www.haskell.org/mailman/listinfo/template-haskell
_______________________________________________
template-haskell mailing list
template-haskell@...
http://www.haskell.org/mailman/listinfo/template-haskell
LightInTheBox - Buy quality products at wholesale price