!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

714 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.org143 Servers

Load older messages


SenderMessageTime
29 May 2021
@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
@matthewcroughan:defenestrate.itmatthewcroughanThe code I've given is from the client publishing example in the Readme.17:05:58
@srid:matrix.orgsrid matthewcroughan: Since this is a Haskell question, also checkout #haskell:matrix.org 17:06:10
@matthewcroughan:defenestrate.itmatthewcroughanOh, brilliant.17:06:17
@matthewcroughan:defenestrate.itmatthewcroughanWow that's a big server. Making my Synapse instance scream.17:07:02
@matthewcroughan:defenestrate.itmatthewcroughanMatrix is really fun when you get into the right communities.17:14:27
@roosemberth:orbstheorem.chRoosIt certainly is!17:15:03
@roosemberth:orbstheorem.chRoosNow, finding the right communities, that's the issue x)17:15:17
* @roosemberth:orbstheorem.chRoos impatiently waits for CCC17:15:57
@Magic_RB:matrix.orgMagic_RB set a profile picture.17:28:11
@maralorn:maralorn.demaralornwhy are we code-owners for this PR? https://github.com/NixOS/nixpkgs/pull/124785/files18:50:21
@maralorn:maralorn.demaralorn Roos: I just wanted to recommend https://serverstats.nordgedanken.dev/spaces to you. It is quite useful in discovering Spaces. Sadly it seems to be down/have no data currently. 18:51:54
@roosemberth:orbstheorem.chRoosHuh, interesting idea ^^18:56:13
@roosemberth:orbstheorem.chRoosIs it using data from matrix-traveler?18:56:18
@roosemberth:orbstheorem.chRooss/using data/supposed to be using data/ xD18:56:33
@maralorn:maralorn.demaralorn Roos: I am not sure I think it might be a second bot. 18:57:51
@roosemberth:orbstheorem.chRoosSuddently it has data :D18:57:58
@roosemberth:orbstheorem.chRoosIs it me or it would seems NixOS is one of the biggest « spaces »? (At least in the data reported by the site).19:01:54
@Las:matrix.orgLas Can #haskell:nixos.org 's topic be made to link to #haskell:matrix.org directing users interested in asking non-Hix related general Haskell questions. 19:09:55
@Las:matrix.orgLas * Can #haskell:nixos.org 's topic be made to link to #haskell:matrix.org directing users interested in asking non-Hix related general Haskell questions. - srid in #matrix-suggestions:nixos.org 19:10:06
@Las:matrix.orgLas *

Can #haskell:nixos.org 's topic be made to link to #haskell:matrix.org directing users interested in asking non-Hix related general Haskell questions.

19:10:16
@Las:matrix.orgLas *
Can #haskell:nixos.org 's topic be made to link to #haskell:matrix.org directing users interested in asking non-Hix related general Haskell questions.
from srid in #matrix-suggestions:nixos.org
19:10:21
@maralorn:maralorn.demaralorn changed the room topic to "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.org" from "For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/".19:12:28
@maralorn:maralorn.demaralorn changed the room topic to "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.org" from "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.org".19:13:29

There are no newer messages yet.


Back to Room ListRoom Version: 6