Search Haskell Channel Logs

Saturday, February 4, 2017

#haskell channel featuring johndcl, mroman, AndreasK, NeverDie, mbw, pavonia,

NeverDie 2017-02-04 00:47:34
What's usually recommended for session cookies with Haskell?
mbw 2017-02-04 00:48:48
Hello everyone. I wanted to try out the Haskell School of Music book, which depends on a library called Euterpea, which is only found on Hackage. I managed to install it locally via cabal sandbox init / cabal install. However, I would like to use stack for working with the examples. Do I have to cabal init, and then stack init? Right now I have only the cabal sandbox, without a ".cabal" file.
AndreasK 2017-02-04 01:00:46
mbw: You can also use stack new and then add the package in stack.yaml under extra.deps
mbw 2017-02-04 01:04:54
AndreasK: I tried that initially, following the recommendations stack gives you when a package is not on stackage. However, after adding the package to extra-deps, new dependencies popped up, and after two "iterations" I was stuck.
mroman 2017-02-04 01:37:18
Is there a Chan version with a maximum capacity?
mroman 2017-02-04 01:37:38
and puts will block until new space is available
pavonia 2017-02-04 01:40:19
mroman: There's a BoundedChan package
AndreasK 2017-02-04 01:40:56
mbw: Did you try using stack solver?
AndreasK 2017-02-04 01:41:48
mbw: That seems to find a build plan for me
johndcl 2017-02-04 01:42:36
How can I check that (a ^ b) :: Int overflowed?
mroman 2017-02-04 01:43:22
so isEmptyChan will block until something is available and then return False in bad cases.
mroman 2017-02-04 01:43:23
neat.