<div dir="ltr">Nice!<div><br></div><div>This needs a host ghc (with alex and happy) preinstalled, correct?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 4, 2014 at 12:55 AM, David Macek <span dir="ltr"><<a href="mailto:david.macek.0@gmail.com" target="_blank">david.macek.0@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 4. 11. 2014 0:07, Gintautas Miliauskas wrote:<br>
> A PKGBUILD for ghc should be feasible, although the bootstrapping is a bit tricky (some Haskell tools need to be preinstalled). I'm not sure how useful it would be since for Windows there is already a nicely packaged native Haskell Platform installer.<br>
<br>
</span>It definitely helps MSYS2 users by providing an easily installable ghc package. That in turn could help with setting up ghc development environment. Hopefully after Windows ghc migrates to gcc 4.8, ghc package will be able to use the MSYS2 packaged toolchain to reduce duplication.<br>
<br>
I have this so far, but I give no guarantees: <a href="https://github.com/elieux/MINGW-packages/tree/ghc" target="_blank">https://github.com/elieux/MINGW-packages/tree/ghc</a><br>
<br>
To use:<br>
- download ghc and put it in PATH<br>
- optionally alter ghc/lib/settings to use MSYS2 toolchain instead of the bundled one (see below)<br>
- use cabal-install PKGBUILD to build Cabal and put it in PATH<br>
- use built Cabal to download and build Alex and Happy and put them in PATH (I think they're installed somewhere inside AppData by default)<br>
- run ghc PKGBUILD<br>
<br>
Related: <a href="https://www.haskell.org/pipermail/ghc-devs/2014-October/006759.html" target="_blank">https://www.haskell.org/pipermail/ghc-devs/2014-October/006759.html</a><br>
<br>
My ghc/lib/settings (from version 7.6.3):<br>
<br>
[("GCC extra via C opts", " -fwrapv"),<br>
 ("C compiler command", "gcc.exe"),<br>
 ("C compiler flags", " -fno-stack-protector  -Wl,--hash-size=31 -Wl,--reduce-memory-overheads"),<br>
 ("ar command", "ar.exe"),<br>
 ("ar flags", "q"),<br>
 ("ar supports at file", "YES"),<br>
 ("touch command", "$topdir/touchy.exe"),<br>
 ("dllwrap command", "dllwrap.exe"),<br>
 ("windres command", "windres.exe"),<br>
 ("perl command", "perl.exe"),<br>
 ("target os", "OSMinGW32"),<br>
 ("target arch", "ArchX86_64"),<br>
 ("target word size", "8"),<br>
 ("target has GNU nonexec stack", "False"),<br>
 ("target has .ident directive", "True"),<br>
 ("target has subsections via symbols", "False"),<br>
 ("LLVM llc command", ""),<br>
 ("LLVM opt command", "")<br>
 ]<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
David Macek<br>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/ghc-devs" target="_blank">http://www.haskell.org/mailman/listinfo/ghc-devs</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Gintautas Miliauskas</div>
</div>