[Haskell-cafe] Custom Setup.hs and Paths module

Erik de Castro Lopo mle+hs at mega-nerd.com
Wed Jul 3 22:24:41 CEST 2013


Daniel Díaz Casanueva wrote:

> Hello Erik.
> 
> Yes, that solution may work, but seems ad-hoc to me. I would like to see a
> way to actually import the Paths module. In the meanwhile, I will be using
> your idea. Thank you for the response.
> 
> Anybody knows how to hack the Setup.hs so I can use the real Paths module?

I'm almost certain it can't be done.

The problem is that the Paths module is generated by the 'cabal configure'
process and the configure process needs to run Setup.hs which needs the
Paths module etc etc.

That's what you might call a circular dependency :-).

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/



More information about the Haskell-Cafe mailing list