* Mikhail Glushenkov [2012-11-09 19:36:58+0100]
> Hi,
>
> On Fri, Nov 9, 2012 at 6:25 PM, Roman Cheplyaka wrote:
> >
> > searching for ld in path.
> > found ld at /usr/bin/ld
> >
> > ("/home/feuerbach/bin/gen-iface",["-c","/tmp/17368.c","-o","/tmp/17368.o"])
> > ("/usr/bin/ld",["-x","-r
Hi,
On Fri, Nov 9, 2012 at 6:25 PM, Roman Cheplyaka wrote:
>
> searching for ld in path.
> found ld at /usr/bin/ld
> ("/home/feuerbach/bin/gen-iface",["-c","/tmp/17368.c","-o","/tmp/17368.o"])
> ("/usr/bin/ld",["-x","-r","/tmp/17368.o","-o","/tmp/17369.o"])
> /usr/bin/ld returned ExitFa
* Mikhail Glushenkov [2012-11-09 18:08:58+0100]
> > Also, is there a way to write a program that would be equivalent to
> > "cabal configure && cabal build" without relying on cabal-install or ghc
> > being installed, just by using the Cabal library? I realise that it
> > would only work for build
Hi Roman,
On Fri, Nov 9, 2012 at 9:10 AM, Roman Cheplyaka wrote:
> Thanks for the suggestion.
>
> Is the "protocol" between Cabal and ghc described anywhere, or do I need
> to read the sources for that?
No, I don't think that it's documented separately. The code is not
very complicated, though -
* Mikhail Glushenkov [2012-11-09 08:57:30+0100]
> I think that the path of least resistance is to make your analysis
> tool command-line compatible with ghc. Then you can use it like this:
>
> $ cabal configure --with-compiler=/path/to/my-ghc
> $ cabal build
I tried this, and one problem I ran i
Thanks for the suggestion.
Is the "protocol" between Cabal and ghc described anywhere, or do I need
to read the sources for that?
Also, is there a way to write a program that would be equivalent to
"cabal configure && cabal build" without relying on cabal-install or ghc
being installed, just by u
Hi,
On Fri, Nov 9, 2012 at 8:06 AM, Roman Cheplyaka wrote:
> Hi,
>
> Suppose I have some kind of analysis tool that I want to run on a Cabal
> project.
>
> The analysis tool only deals with Haskell files, so I need Cabal to
> generate Haskell files from CPP-enabled Haskell files, .hsc files, alex
Hi,
Suppose I have some kind of analysis tool that I want to run on a Cabal
project.
The analysis tool only deals with Haskell files, so I need Cabal to
generate Haskell files from CPP-enabled Haskell files, .hsc files, alex
and happy files etc.
I see two possible ways to do that: use Cabal as a