Re: [ANN] - Hugs for MacOS (x86) - via Nix Flakes
Anthony D Clayden <[email protected]> Sun, 23 Oct 2022 17:23:03 +0800
| Newsgroups | gmane.comp.lang.haskell.hugs.user |
|---|---|
| Message-ID | <[email protected]> |
--===============1963325718599784561== Content-Type: multipart/alternative; boundary=Apple-Mail-8DADBF27-E468-47B8-856F-849E4C5AD84B Content-Transfer-Encoding: 7bit --Apple-Mail-8DADBF27-E468-47B8-856F-849E4C5AD84B Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thank you Justin, You might not be aware of https://github.com/FranklinChen/hugs98-plus-Sep200= 6 =E2=80=94 a repository for compiling Hugs. I believe Franklin was fixing a= number of places where Hugs had bitrotted/no longer complied with FFI and o= ther low-level interactions. As to =E2=80=9Cuse cases for Hugs=E2=80=9D: I find it possible to modify the= compiler, to give behaviour I=E2=80=99ve always wanted for Haskell. (I won=E2= =80=99t say that=E2=80=99s =E2=80=98easy=E2=80=99, but possible compared to G= HC =E2=80=94 which I find impenetrable.) See my occasional posts on Hugs-users for what I=E2=80=99ve been touching. I= t=E2=80=99s needed surprisingly tight-focussed code changes to deliver what G= HC hasn=E2=80=99t got round to since ~1998. AntC > On 22/10/2022, at 11:32 PM, Justin Bailey <[email protected]> wrote: >=20 > =EF=BB=BFI spent some time with the last public release of the Hugs source= s, > making them compile on a modern Mac (x86 chipset). I used Nix's flakes > feature to manage the build and install. >=20 > If you'd like to run the hugs interpreter directly using the flake, just t= ype: >=20 > `nix run github:m4dc4p/hugs#hugs` >=20 > If you'd like to execute a Haskell file, try: >=20 > `nix run github:m4dc4p/hugs <file.hs>` >=20 > Or alternately: >=20 > `nix run github:m4dc4p/hugs#runhugs <file.hs>` >=20 > (That is, `runhugs` is the default app provided by the flake.) >=20 > See the README at https://github.com/m4dc4p/hugs for more details > (including other binaries available). >=20 > I don't have much of a use case for Hugs, so I got the flake to the > point where I could start the interpreter and run simple programs. I'm > glad to accept pull requests or bug reports. You can find the source > and submit any issues at https://github.com/m4dc4p/hugs. >=20 > Note: I don't have access to Apple silicon, so this build has only > been tested under x86. If it works for M1 please let me know, or if > you are able to submit a PR I'd welcome it! >=20 > Enjoy! >=20 > Justin > _______________________________________________ > Hugs-Users mailing list > [email protected] > http://mail.haskell.org/cgi-bin/mailman/listinfo/hugs-users --Apple-Mail-8DADBF27-E468-47B8-856F-849E4C5AD84B Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><head><meta http-equiv=3D"content-type" content=3D"text/html; charset=3D= utf-8"></head><body dir=3D"auto"><div dir=3D"ltr"></div><div dir=3D"ltr">Tha= nk you Justin,</div><div dir=3D"ltr"><br></div><div dir=3D"ltr">You might no= t be aware of <a href=3D"https://github.com/FranklinChen/hugs98-plus-Se= p2006">https://github.com/FranklinChen/hugs98-plus-Sep2006</a> =E2=80=94= a repository for compiling Hugs. I believe Franklin was fixing a number of p= laces where Hugs had bitrotted/no longer complied with FFI and other low-lev= el interactions.</div><div dir=3D"ltr"><br></div><div dir=3D"ltr">As to =E2=80= =9Cuse cases for Hugs=E2=80=9D: I find it possible to modify the compiler, t= o give behaviour I=E2=80=99ve always wanted for Haskell. (I won=E2=80=99t sa= y that=E2=80=99s =E2=80=98easy=E2=80=99, but possible compared to GHC =E2=80= =94 which I find impenetrable.)</div><div dir=3D"ltr"><br></div><div dir=3D"= ltr">See my occasional posts on Hugs-users for what I=E2=80=99ve been touchi= ng. It=E2=80=99s needed surprisingly tight-focussed code changes to deliver w= hat GHC hasn=E2=80=99t got round to since ~1998.</div><div dir=3D"ltr"><br><= /div><div dir=3D"ltr">AntC</div><div dir=3D"ltr"><br><blockquote type=3D"cit= e">On 22/10/2022, at 11:32 PM, Justin Bailey <[email protected]> wrot= e:<br><br></blockquote></div><blockquote type=3D"cite"><div dir=3D"ltr">=EF=BB= =BF<span>I spent some time with the last public release of the Hugs sources,= </span><br><span>making them compile on a modern Mac (x86 chipset). I used N= ix's flakes</span><br><span>feature to manage the build and install.</span><= br><span></span><br><span>If you'd like to run the hugs interpreter directly= using the flake, just type:</span><br><span></span><br><span>`nix run githu= b:m4dc4p/hugs#hugs`</span><br><span></span><br><span>If you'd like to execut= e a Haskell file, try:</span><br><span></span><br><span>`nix run github:m4dc= 4p/hugs <file.hs>`</span><br><span></span><br><span>Or alternately:</s= pan><br><span></span><br><span>`nix run github:m4dc4p/hugs#runhugs <file.= hs>`</span><br><span></span><br><span>(That is, `runhugs` is the default a= pp provided by the flake.)</span><br><span></span><br><span>See the README a= t https://github.com/m4dc4p/hugs for more details</span><br><span>(including= other binaries available).</span><br><span></span><br><span>I don't have mu= ch of a use case for Hugs, so I got the flake to the</span><br><span>point w= here I could start the interpreter and run simple programs. I'm</span><br><s= pan>glad to accept pull requests or bug reports. You can find the source</sp= an><br><span>and submit any issues at https://github.com/m4dc4p/hugs.</span>= <br><span></span><br><span>Note: I don't have access to Apple silicon, so th= is build has only</span><br><span>been tested under x86. If it works for M1 p= lease let me know, or if</span><br><span>you are able to submit a PR I'd wel= come it!</span><br><span></span><br><span>Enjoy!</span><br><span></span><br>= <span>Justin</span><br><span>_______________________________________________= </span><br><span>Hugs-Users mailing list</span><br><span>Hugs-Users@haskell.= org</span><br><span>http://mail.haskell.org/cgi-bin/mailman/listinfo/hugs-us= ers</span><br></div></blockquote></body></html>= --Apple-Mail-8DADBF27-E468-47B8-856F-849E4C5AD84B-- --===============1963325718599784561== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KSHVncy1Vc2Vy cyBtYWlsaW5nIGxpc3QKSHVncy1Vc2Vyc0BoYXNrZWxsLm9yZwpodHRwOi8vbWFpbC5oYXNrZWxs Lm9yZy9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vaHVncy11c2Vycwo= --===============1963325718599784561==--