| 29 May 2021 |
sterni (he/him) | Las: try updating nixos-unstable and if it still doesn't work, please open an issue on github, describe how you set up your environment and ping @NixOS/haskell. I'll try to fix this, I can't really test stuff on aarch64 though so there's always a bit of guesswork involved | 16:36:00 |
Las | Thanks. | 16:36:11 |
pennae | maybe we should try to reinstall our pinebook and give aarch64 haskell another try
last we tried it was a bit of a massive pain in the tail | 16:37:51 |
sterni (he/him) | there should be quite substantial binary cache by now, I've fixed a bunch of failures related to a GHC bug | 16:38:50 |
sterni (he/him) | the only trouble is development environments because LLVM is not always added correctly, I think | 16:39:10 |
sterni (he/him) | it's a bit annoying that GHC expects LLVM to be in PATH | 16:39:27 |
pennae | last we tried was almost a year ago now, and on gentoo | 16:39:40 |
pennae | ghc just routinely failed to build at all there | 16:39:55 |
sterni (he/him) | everything is working currently in terms of ghc except ghcHEAD | 16:41:54 |
sterni (he/him) | which may work but the build keeps timing out for an unknown reason | 16:42:04 |
sterni (he/him) | if someone wants to debug it I'd be very happy | 16:42:15 |
sterni (he/him) | I think it may be because the machine hydra uses has too many cores, but who knows | 16:42:38 |
pennae | might give it a try when(/if) we manage to put nixos on the thing | 16:48:02 |
Las | In reply to @pennae:matrix.eno.space maybe we should try to reinstall our pinebook and give aarch64 haskell another try last we tried it was a bit of a massive pain in the tail FWIW I think you'll have a very hard time compiling anything until the new native code gen backend is released (GHC 9.2.1 IIRC) | 16:51:51 |
Las | LLVM is quite slow | 16:52:09 |
sterni (he/him) | it works at least :p | 16:52:53 |
sterni (he/him) | In reply to @pennae:matrix.eno.space might give it a try when(/if) we manage to put nixos on the thing yeah it's not really urgent there don't seem to many ghcHEAD users, but it'd be nice to sort these issues out until the next GHC release comes out… | 16:53:37 |
pennae | ghc 8.6.5 took 8 hours to build last we tried, ghc 8.8 always failed with linker errors | 16:53:47 |
pennae | but as mentioned that's a year ago now | 16:53:58 |
Roos | In reply to @Las:matrix.org FWIW I think you'll have a very hard time compiling anything until the new native code gen backend is released (GHC 9.2.1 IIRC) How about compile times? | 16:54:07 |
Las | Yeah that's what I meant. They should be tolerable with the new NCG backend AFAIU. | 16:54:26 |
pennae | gentoo had the additional "feature" of always providing ghc with the newest llvm version, which ghc wasn't all too fond of. that may have been a part :D | 16:55:08 |
Roos | In reply to @Las:matrix.org FWIW I think you'll have a very hard time compiling anything until the new native code gen backend is released (GHC 9.2.1 IIRC) * How about compile times? (not the compiler compilation time, rather using the new version to compile haskell projects) | 16:54:32 |
Roos | What's NCG? | 16:54:53 |
Roos | ncg | 16:55:17 |
Las | Native code generator | 16:55:23 |
Las | (generation?) | 16:55:26 |
pennae | (also, at least llvm isn't registerised :P) | 16:55:59 |
matthewcroughan | Hey guys, just wondering if I could get a little help with using Haskell for the first time, I want to use an MQTT library just to see how Haskell works a bit:
user: matthew ~/tmp/haskell took 6m27s
❯ nix-shell -p 'ghc.withPackages (ps: [ ps.net-mqtt ])'
user: matthew ~/tmp/haskell via ❄️ impure (shell)
❯ cat mqtt.hs
import Network.MQTT.Client
main :: IO ()
main = do
let (Just uri) = parseURI "mqtt://test.mosquitto.org"
mc <- connectURI mqttConfig{} uri
publish mc "tmp/topic" "hello!" False
user: matthew ~/tmp/haskell via ❄️ impure (shell)
❯ ghc mqtt.hs
[1 of 1] Compiling Main ( mqtt.hs, mqtt.o )
mqtt.hs:6:20: error: Empty record update
|
6 | mc <- connectURI mqttConfig{} uri
|
| 17:04:43 |
matthewcroughan | https://hackage.haskell.org/package/net-mqtt | 17:05:11 |