!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

744 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/ | More Nix: #community:nixos.org | More Haskell: #haskell-space:matrix.org149 Servers

Load older messages


SenderMessageTime
29 May 2021
@sternenseemann:systemli.orgsterni (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:matrix.orgLasThanks.16:36:11
@pennae:matrix.eno.spacepennaemaybe 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 tail16:37:51
@sternenseemann:systemli.orgsterni (he/him)there should be quite substantial binary cache by now, I've fixed a bunch of failures related to a GHC bug16:38:50
@sternenseemann:systemli.orgsterni (he/him)the only trouble is development environments because LLVM is not always added correctly, I think16:39:10
@sternenseemann:systemli.orgsterni (he/him)it's a bit annoying that GHC expects LLVM to be in PATH16:39:27
@pennae:matrix.eno.spacepennaelast we tried was almost a year ago now, and on gentoo16:39:40
@pennae:matrix.eno.spacepennaeghc just routinely failed to build at all there16:39:55
@sternenseemann:systemli.orgsterni (he/him)everything is working currently in terms of ghc except ghcHEAD16:41:54
@sternenseemann:systemli.orgsterni (he/him)which may work but the build keeps timing out for an unknown reason16:42:04
@sternenseemann:systemli.orgsterni (he/him)if someone wants to debug it I'd be very happy 16:42:15
@sternenseemann:systemli.orgsterni (he/him)I think it may be because the machine hydra uses has too many cores, but who knows16:42:38
@pennae:matrix.eno.spacepennaemight give it a try when(/if) we manage to put nixos on the thing16:48:02
@Las:matrix.orgLas
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:matrix.orgLasLLVM is quite slow16:52:09
@sternenseemann:systemli.orgsterni (he/him)it works at least :p16:52:53
@sternenseemann:systemli.orgsterni (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:matrix.eno.spacepennaeghc 8.6.5 took 8 hours to build last we tried, ghc 8.8 always failed with linker errors16:53:47
@pennae:matrix.eno.spacepennaebut as mentioned that's a year ago now16:53:58
@roosemberth:orbstheorem.chRoos
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:matrix.orgLasYeah that's what I meant. They should be tolerable with the new NCG backend AFAIU.16:54:26
@pennae:matrix.eno.spacepennaegentoo 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 :D16:55:08
@roosemberth:orbstheorem.chRoos
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
@roosemberth:orbstheorem.chRoosWhat's NCG?16:54:53
@roosemberth:orbstheorem.chRoos ncg 16:55:17
@Las:matrix.orgLasNative code generator16:55:23
@Las:matrix.orgLas(generation?)16:55:26
@pennae:matrix.eno.spacepennae(also, at least llvm isn't registerised :P)16:55:59
@matthewcroughan:defenestrate.itmatthewcroughan

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:defenestrate.itmatthewcroughanhttps://hackage.haskell.org/package/net-mqtt17:05:11

Show newer messages


Back to Room ListRoom Version: 6