<div dir="ltr">I think cabal reported errors regarding the header files where in fact the problem was that it could not find a c compiler. I tried to install QuickCheck and the primitives package required by QuickCheck failed to install with errors related to header files. After installing gcc, primitives and QuickCheck installed without errors.<div><br>On Tuesday, May 26, 2015 at 11:18:30 AM UTC+1, Anakreontas wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr">... continued from previous message<div>.. even with command cabal install --extra-include-dirs=include cabal still reports an error.</div><div>The header file is useful for older ghc versions that the one I have so removing the dependency on the header resolved the problem.</div></div><div><br><div class="gmail_quote">On Tue, May 26, 2015 at 11:16 AM, Anakreontas Mentis <span dir="ltr"><<a href="mailto:anakreonmejdi@gmail.com" target="_blank" rel="nofollow" onmousedown="this.href='mailto:anakreonmejdi@gmail.com';return true;" onclick="this.href='mailto:anakreonmejdi@gmail.com';return true;">anakreonmejdi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I installed the MinGHC distribution but it did not solve the problem.<div><br></div><div>To install ghc-mod I had to:</div><div>1) cabal install ghc-mod</div><div>to install what cabal can build without errors.</div><div>2) Modify the cabal file of ansiterminal according to Roman's advice. It installed successfully.</div><div>3) Modify the cabal file of lifted-base where I removed the Include-dirs and Includes directives and all references to inlinable.h from the source files.</div><div>cabal reports that it can not find the header file or it is damaged.</div><div>The file exists in the include directory but even with </div></div><div><div><div><br><div class="gmail_quote">On Fri, May 22, 2015 at 7:58 PM, Michal Antkiewicz <span dir="ltr"><<a href="mailto:mantkiew@gsd.uwaterloo.ca" target="_blank" rel="nofollow" onmousedown="this.href='mailto:mantkiew@gsd.uwaterloo.ca';return true;" onclick="this.href='mailto:mantkiew@gsd.uwaterloo.ca';return true;">mantkiew@gsd.uwaterloo.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>There used to be a big warning "don't download just the ghc. Use the platform. " before. <br><br>Nowadays, it's best to get MinGHC from <br></div><br><a href="https://www.haskell.org/downloads/windows" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fwww.haskell.org%2Fdownloads%2Fwindows\46sa\75D\46sntz\0751\46usg\75AFQjCNGuABn04nuA0if5ViaRDRu6SuEgxQ';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fwww.haskell.org%2Fdownloads%2Fwindows\46sa\75D\46sntz\0751\46usg\75AFQjCNGuABn04nuA0if5ViaRDRu6SuEgxQ';return true;">https://www.haskell.org/<wbr>downloads/windows</a><br><br></div>this distribution is best, it'll allow you build the network package and other things like the ansi-terminal, etc. <br><br>Get the 32bit installer. <br></div><div><br clear="all"><div><div><div dir="ltr"><div>Michał <br></div></div></div></div>
<br><div class="gmail_quote">On Fri, May 22, 2015 at 2:10 PM, <span dir="ltr"><<a href="mailto:anakreonmejdi@gmail.com" target="_blank" rel="nofollow" onmousedown="this.href='mailto:anakreonmejdi@gmail.com';return true;" onclick="this.href='mailto:anakreonmejdi@gmail.com';return true;">anakreonmejdi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello.<br>
I don't know the MinGHC release. To install ghc I downloaded a windows<br>
install program from <a href="https://www.haskell.org/ghc/" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fwww.haskell.org%2Fghc%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNH58Tif_Jr1eFEefSL8_XT4GxEstg';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fwww.haskell.org%2Fghc%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNH58Tif_Jr1eFEefSL8_XT4GxEstg';return true;">https://www.haskell.org/ghc/</a>.<div><div><br>
<div><div><br>
Michal Antkiewicz <<a href="mailto:mantkiew@gsd.uwaterloo.ca" target="_blank" rel="nofollow" onmousedown="this.href='mailto:mantkiew@gsd.uwaterloo.ca';return true;" onclick="this.href='mailto:mantkiew@gsd.uwaterloo.ca';return true;">mantkiew@gsd.uwaterloo.ca</a>> writes:<br>
<br>
> Hi,<br>
><br>
> are you using msys and MinGHC?<br>
><br>
> For now, I clone ghc-mod @ master and just cabal install it (with MinGHC<br>
> 0.7.10 and cabal 1.22) within msys. It has not been released yet.<br>
><br>
> Michał<br>
><br>
> On Fri, May 22, 2015 at 12:09 PM, Roman Cheplyaka <<a href="mailto:roma@ro-che.info" target="_blank" rel="nofollow" onmousedown="this.href='mailto:roma@ro-che.info';return true;" onclick="this.href='mailto:roma@ro-che.info';return true;">roma@ro-che.info</a>> wrote:<br>
><br>
>> On 22/05/15 18:06, Anakreontas wrote:<br>
>> > I tried to instal ghc-mod on Windows with cabal. Two dependencies fail<br>
>> > to compile because of missing native libraries.<br>
>> > ansi-terminal requires kernel32 and<br>
>> > lifted-base requires inlinable.h.<br>
>> ><br>
>> > Have you solved a similar problem? In Linux it would be easy to install<br>
>> > the native libraries but in Windows I do not know which programs I<br>
>> > should install and where to find them.<br>
>><br>
>> You should be able to install ansi-terminal by patching its cabal file,<br>
>> see <a href="https://github.com/feuerbach/ansi-terminal/issues/6" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Ffeuerbach%2Fansi-terminal%2Fissues%2F6\46sa\75D\46sntz\0751\46usg\75AFQjCNEOhzS1FRhkXlqkgRkFZ_FJfUW6TQ';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Ffeuerbach%2Fansi-terminal%2Fissues%2F6\46sa\75D\46sntz\0751\46usg\75AFQjCNEOhzS1FRhkXlqkgRkFZ_FJfUW6TQ';return true;">https://github.com/feuerbach/<wbr>ansi-terminal/issues/6</a><br>
>><br>
>> Once again, I'm asking Windows users and developers for their input on<br>
>> this issue.<br>
>><br>
>> Roman<br>
>><br>
>><br>
>> ______________________________<wbr>_________________<br>
>> Haskell-Cafe mailing list<br>
>> <a href="mailto:Haskell-Cafe@haskell.org" target="_blank" rel="nofollow" onmousedown="this.href='mailto:Haskell-Cafe@haskell.org';return true;" onclick="this.href='mailto:Haskell-Cafe@haskell.org';return true;">Haskell-Cafe@haskell.org</a><br>
>> <a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fmail.haskell.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fhaskell-cafe\46sa\75D\46sntz\0751\46usg\75AFQjCNH7sFgl7KfuDcDlaGGG3ip3kRaoIA';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fmail.haskell.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fhaskell-cafe\46sa\75D\46sntz\0751\46usg\75AFQjCNH7sFgl7KfuDcDlaGGG3ip3kRaoIA';return true;">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/haskell-<wbr>cafe</a><br>
>><br>
>><br>
<br>
</div></div></div></div>--<br>
</blockquote></div><br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</blockquote></div></div>