ongy 2017-03-03 19:03:14
dmwit: ah thanks. So new-run is a thing sometime soon(?) and nice work :)
ongy 2017-03-03 19:03:41
the current state of crypo-libraries in haskell confuses me
drostie_ 2017-03-03 19:27:19
Wizek: import the System.Posix.IO.ByteString module that you're looking at, and also Control.Concurrent, start off with `do { (in_R, in_W) <- createPipe; (out_R, out_W) <- createPipe; thread <- forkIO (runConnector in_R out_W); return (thread, (out_R, in_W)) }`, fill in `runConnector` with something that does a `threadWaitRead` on the in_R and a `threadWaitWrite` on the out_W combined with some read, some transform, and some write, and recursing back on
drostie_ 2017-03-03 19:27:19
the function to loop over it again.
Squarism 2017-03-03 19:27:50
Theres no alternative to Data.Time? It feels very clumsy / unintuitive.
dmj` 2017-03-03 19:32:33
Squarism: this is a good article on time, https://two-wrongs.com/haskell-time-library-tutorial
Squarism 2017-03-03 19:33:58
ive read that
Squarism 2017-03-03 19:36:33
but if i compare it to java's joda time it feels a bit primitive. I would like to express things like (minusMonths 3 $ plusHours 2 d1) `isWithin` $ periodFrom d2 $ weeks 2
Squarism 2017-03-03 19:36:53
instead they do alot of millis/picoseconds
Squarism 2017-03-03 19:40:34
dmj`, thank you anyhow! =D
dmj` 2017-03-03 19:41:23
Squarism: np
Wizek 2017-03-03 19:41:26
Squarism, such an API may be nice, but I don't believe I've seen it implemented in any package
Wizek 2017-03-03 19:41:32
yet
Wizek 2017-03-03 19:42:49
Squarism, you may comb through all 28 packages tagged with Time on hackage to get a somewhat definitive answer to you question: http://hackage.haskell.org/packages/#cat:Time
Squarism 2017-03-03 19:44:02
Wizek, ok - ill look into that