From jgbailey at gmail.com Sat Oct 22 15:31:04 2022 From: jgbailey at gmail.com (Justin Bailey) Date: Sat, 22 Oct 2022 08:31:04 -0700 Subject: [Hugs-users] [ANN] - Hugs for MacOS (x86) - via Nix Flakes Message-ID: I spent some time with the last public release of the Hugs sources, making them compile on a modern Mac (x86 chipset). I used Nix's flakes feature to manage the build and install. If you'd like to run the hugs interpreter directly using the flake, just type: `nix run github:m4dc4p/hugs#hugs` If you'd like to execute a Haskell file, try: `nix run github:m4dc4p/hugs ` Or alternately: `nix run github:m4dc4p/hugs#runhugs ` (That is, `runhugs` is the default app provided by the flake.) See the README at https://github.com/m4dc4p/hugs for more details (including other binaries available). 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. 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! Enjoy! Justin From anthony.d.clayden at gmail.com Sun Oct 23 09:23:03 2022 From: anthony.d.clayden at gmail.com (Anthony D Clayden) Date: Sun, 23 Oct 2022 17:23:03 +0800 Subject: [Hugs-users] [ANN] - Hugs for MacOS (x86) - via Nix Flakes In-Reply-To: References: Message-ID: <1539DA6E-DCDF-467E-A408-3C43F7E22826@gmail.com> Thank you Justin, You might not be aware of https://github.com/FranklinChen/hugs98-plus-Sep2006 — a repository for compiling Hugs. I believe Franklin was fixing a number of places where Hugs had bitrotted/no longer complied with FFI and other low-level interactions. As to “use cases for Hugs”: I find it possible to modify the compiler, to give behaviour I’ve always wanted for Haskell. (I won’t say that’s ‘easy’, but possible compared to GHC — which I find impenetrable.) See my occasional posts on Hugs-users for what I’ve been touching. It’s needed surprisingly tight-focussed code changes to deliver what GHC hasn’t got round to since ~1998. AntC > On 22/10/2022, at 11:32 PM, Justin Bailey wrote: > > I spent some time with the last public release of the Hugs sources, > making them compile on a modern Mac (x86 chipset). I used Nix's flakes > feature to manage the build and install. > > If you'd like to run the hugs interpreter directly using the flake, just type: > > `nix run github:m4dc4p/hugs#hugs` > > If you'd like to execute a Haskell file, try: > > `nix run github:m4dc4p/hugs ` > > Or alternately: > > `nix run github:m4dc4p/hugs#runhugs ` > > (That is, `runhugs` is the default app provided by the flake.) > > See the README at https://github.com/m4dc4p/hugs for more details > (including other binaries available). > > 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. > > 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! > > Enjoy! > > Justin > _______________________________________________ > Hugs-Users mailing list > Hugs-Users at haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/hugs-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jgbailey at gmail.com Sun Oct 23 16:04:21 2022 From: jgbailey at gmail.com (Justin Bailey) Date: Sun, 23 Oct 2022 09:04:21 -0700 Subject: [Hugs-users] [ANN] - Hugs for MacOS (x86) - via Nix Flakes In-Reply-To: <1539DA6E-DCDF-467E-A408-3C43F7E22826@gmail.com> References: <1539DA6E-DCDF-467E-A408-3C43F7E22826@gmail.com> Message-ID: Thanks for that note. That repo is a fork of https://github.com/clausecker/Hugs, which appears to have imported the CVS history of hugs into github. (Plus a few commits since). Pretty cool! On Sun, Oct 23, 2022 at 2:23 AM Anthony D Clayden wrote: > > Thank you Justin, > > You might not be aware of https://github.com/FranklinChen/hugs98-plus-Sep2006 — a repository for compiling Hugs. I believe Franklin was fixing a number of places where Hugs had bitrotted/no longer complied with FFI and other low-level interactions. > > As to “use cases for Hugs”: I find it possible to modify the compiler, to give behaviour I’ve always wanted for Haskell. (I won’t say that’s ‘easy’, but possible compared to GHC — which I find impenetrable.) > > See my occasional posts on Hugs-users for what I’ve been touching. It’s needed surprisingly tight-focussed code changes to deliver what GHC hasn’t got round to since ~1998. > > AntC > > On 22/10/2022, at 11:32 PM, Justin Bailey wrote: > > I spent some time with the last public release of the Hugs sources, > making them compile on a modern Mac (x86 chipset). I used Nix's flakes > feature to manage the build and install. > > If you'd like to run the hugs interpreter directly using the flake, just type: > > `nix run github:m4dc4p/hugs#hugs` > > If you'd like to execute a Haskell file, try: > > `nix run github:m4dc4p/hugs ` > > Or alternately: > > `nix run github:m4dc4p/hugs#runhugs ` > > (That is, `runhugs` is the default app provided by the flake.) > > See the README at https://github.com/m4dc4p/hugs for more details > (including other binaries available). > > 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. > > 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! > > Enjoy! > > Justin > _______________________________________________ > Hugs-Users mailing list > Hugs-Users at haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/hugs-users