<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Jakub -<div class=""><br class=""></div><div class="">You will find that many of these questions are things we’ve had to address in the HaLVM (<a href="http://github.com/GaloisInc/HaLVM" class="">http://github.com/GaloisInc/HaLVM</a>). You may want to look in that code base for information on what we considered minimal and how we got around some of the build system and other issues a minimal build requires.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">- Adam</div><div class=""><br class=""></div><div class="">On Jul 2, 2015, at 1:20 PM, Jakub Zalewski <<a href="mailto:jakzale@gmail.com" class="">jakzale@gmail.com</a>> wrote:<br class=""><div><blockquote type="cite" class=""><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Dear all,<div class=""><span style="font-size:13.1999998092651px;line-height:19.7999992370605px" class="">I am working on porting GHC to [native client](</span><a href="https://developer.chrome.com/native-client" target="_blank" style="font-size:13.1999998092651px;line-height:19.7999992370605px" class="">https://developer.chrome.com/native-client</a><span style="font-size:13.1999998092651px;line-height:19.7999992370605px" class="">), which has some degree of POSIX-compliance.</span><br class=""></div><div class=""><span style="font-size:13.1999998092651px;line-height:19.7999992370605px" class=""><br class=""></span></div><div class=""><span style="font-size:13.1999998092651px;line-height:19.7999992370605px" class="">I was thinking about building just the minimal/most essential parts of GHC that is enough to compile simple Haskell programs.</span></div><div class=""><span style="font-size:13.1999998092651px;line-height:19.7999992370605px" class=""><br class=""></span></div><div class=""><span style="font-size:13.1999998092651px;line-height:19.7999992370605px" class="">I wanted to ask </span><span style="font-size:13.1999998092651px;line-height:19.7999992370605px" class="">which parts of GHC are the most essential and sufficient enough to compile a simple Haskell program, for instance to compile `main = putStrLn "Hello, world!"`?</span></div><div class=""><br class=""></div><div class="">I also wanted to ask how to force a GHC build without a particular package that comes by default, for instance how to build GHC without the `unix` package?</div><div class=""><br class=""></div><div class="">Best wishes,</div><div class="">Jakub</div></div>
_______________________________________________<br class="">ghc-devs mailing list<br class=""><a href="mailto:ghc-devs@haskell.org" class="">ghc-devs@haskell.org</a><br class="">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs<br class=""></div></blockquote></div><br class=""></div></body></html>