Re: [Haskell-cafe] a couple of cabal related questions

2010-10-13 Thread Neil Mitchell
I do this using a .ghci file. For Hoogle I have a file called Paths.hs with the module name Paths_hoogle and stub exports. I then have my .ghci file as: :load Main.hs Paths.hs Now Paths.hs will never interfere, or be picked up in ghc --make, because it has the wrong name - but is used in ghci.

Re: [Haskell-cafe] a couple of cabal related questions

2010-10-13 Thread Ivan Lazar Miljenovic
On 14 October 2010 05:58, Neil Mitchell ndmitch...@gmail.com wrote: I do this using a .ghci file. For Hoogle I have a file called Paths.hs with the module name Paths_hoogle and stub exports. I then have my .ghci file as: :load Main.hs Paths.hs Now Paths.hs will never interfere, or be picked

[Haskell-cafe] a couple of cabal related questions

2010-10-12 Thread Dmitry V'yal
Hello, recently I've cabalized my program and it brought some problems. First of all, I made use of 'import Paths_package name' functionality to get the path of installed data files. It works great, but now I can no longer run my program in ghci because this module is auto-generated by

Re: [Haskell-cafe] a couple of cabal related questions

2010-10-12 Thread Magnus Therning
On Tue, Oct 12, 2010 at 10:20, Dmitry V'yal akam...@gmail.com wrote: Hello, recently I've cabalized my program and it brought some problems. First of all, I made use of 'import Paths_package name' functionality to get the path of installed data files. It works great, but now I can no longer

Re: [Haskell-cafe] a couple of cabal related questions

2010-10-12 Thread Dmitry V'yal
On 12.10.2010 13:45, Magnus Therning wrote: On Tue, Oct 12, 2010 at 10:20, Dmitry V'yalakam...@gmail.com wrote: Hello, recently I've cabalized my program and it brought some problems. First of all, I made use of 'import Paths_package name' functionality to get the path of installed data

Re: [Haskell-cafe] a couple of cabal related questions

2010-10-12 Thread Magnus Therning
On Tue, Oct 12, 2010 at 15:34, Dmitry V'yal akam...@gmail.com wrote: On 12.10.2010 13:45, Magnus Therning wrote: On Tue, Oct 12, 2010 at 10:20, Dmitry V'yalakam...@gmail.com  wrote: Hello, recently I've cabalized my program and it brought some problems. First of all, I made use of 'import

Re: [Haskell-cafe] a couple of cabal related questions

2010-10-12 Thread Ivan Lazar Miljenovic
On 13 October 2010 02:00, Magnus Therning mag...@therning.org wrote: On Tue, Oct 12, 2010 at 15:34, Dmitry V'yal akam...@gmail.com wrote: By the way, the 'version' variable doesn't mentioned in Cabal user guide, or at least I missed it. Is it documented somewhere? I don't know, I think I

Re: [Haskell-cafe] a couple of cabal related questions

2010-10-12 Thread Antoine Latter
On Tue, Oct 12, 2010 at 10:41 PM, Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: On 13 October 2010 02:00, Magnus Therning mag...@therning.org wrote: On Tue, Oct 12, 2010 at 15:34, Dmitry V'yal akam...@gmail.com wrote: By the way, the 'version' variable doesn't mentioned in Cabal user