Search Haskell Channel Logs

Thursday, February 9, 2017

#haskell channel featuring joneshf-laptop, athan, halogenandtoast, srhb, rewsd, erisco,

halogenandtoast 2017-02-08 21:48:23
cocreature: sorry I stepped away. Are you familer enough with conduit to tell me what I'm doing wrong, I don't see a difference in the interface.
athan 2017-02-08 21:49:02
I think the socket-unix library's README is out of date: http://hackage.haskell.org/package/socket-unix - kinda
cocreature 2017-02-08 21:49:18
halogenandtoast: take a look at the docs https://hackage.haskell.org/package/http-conduit-2.2.3/docs/Network-HTTP-Client-Conduit.html#v:newManager "newManager" does not take a setting argument
halogenandtoast 2017-02-08 21:49:50
Oh!
athan 2017-02-08 21:50:11
`socket` should be able to be used, because the Unix type level symbol has instances for both Family and Protocol... but I don't really know what a `socket :: IO (Socket Unix Stream Unix)` would mean
athan 2017-02-08 21:50:35
I can imagine it as a family, but not a protocol :s i don't know anything about domain sockets though
halogenandtoast 2017-02-08 21:50:42
Wow I feel dumb. I even read that and for some reason assumed I still had to pass in the defaults
athan 2017-02-08 21:50:49
are they just line-terminated or something, through stdin/stdout?
coot 2017-02-08 21:51:42
Hi, I need some help with `stack ghci`: I am trying to step through psc (PureScript) in ghci but the `stack ghci` fails in `Purescript/PSString.hs` module: No instance for `A.ToJSON Text` arising from a `A.toJSON`
halogenandtoast 2017-02-08 21:53:10
Theanks cocreature
halogenandtoast 2017-02-08 21:54:31
s/Theanks/Thanks/
joneshf-laptop 2017-02-08 21:57:19
coot, Is the capitalization correct in your error message?
coot 2017-02-08 21:58:57
joneshf-laptop: yes: no instance of `ToJSON Text` from using `toJSON`
merijn 2017-02-08 22:19:03
byorgey: ah, monoid-extras is exactly what I was looking for :)
erisco 2017-02-08 22:28:03
there are possibly cases where a parameter is relevant and for simplicity the same polymorphic type is used everywhere
erisco 2017-02-08 22:28:11
oh I was way scrolled up, heh
rewsd 2017-02-08 22:37:00
hi! does anyone have any experience in using FRP to keep track of large amounts of data? my application has 10 000+ different things that would be tracked by the FRP system, how well would this work in practice?
liste 2017-02-08 22:38:35
rewsd: do those values form a graph of dependencies of sorts?
srhb 2017-02-08 22:41:23
Does anyone know of a nice library to connect to a text/event-stream source and stream the events through aeson?
cocreature 2017-02-08 22:42:32
srhb: I'm not quite sure if I'm understanding your question correctly but there is a "pipes-aeson" library so if you manage to get your text/event-stream source as a pipes Producer, you could use that
srhb 2017-02-08 22:43:07
cocreature: That sounds like a reasonable approach. :)
srhb 2017-02-08 22:43:41
Though I'm not sure if there's a nice http pipes client library, I usually go to the conduit based ones. Ah well, can probably figure out something there.
cocreature 2017-02-08 22:44:03
srhb: there is https://hackage.haskell.org/package/pipes-http :)
cocreature 2017-02-08 22:44:39
srhb: you could also use a conduit attoparsec library and use aeson via that