Search Haskell Channel Logs

Sunday, March 5, 2017

#haskell channel featuring dramforever, kuribas, hpc, abhiroop,

kuribas 2017-03-05 01:09:35
How do I skip an expression in the ghci debugger? :force doesn't seem to work...
kuribas 2017-03-05 01:09:54
I am using :step to step through the expression.
kuribas 2017-03-05 01:10:50
Also why can I not inspect the whole environment in the debugger?
kuribas 2017-03-05 01:11:10
It only allows me to inspect variables in the expression under focus.
abhiroop 2017-03-05 01:27:41
Can anyone tell me how haskell STM or STM in general deals with Reentrancy?
hpc 2017-03-05 01:28:49
it doesn't
hpc 2017-03-05 01:28:59
look at the docs for unsafeSTMToIO
hpc 2017-03-05 01:29:17
rather, https://hackage.haskell.org/package/base-4.9.1.0/docs/GHC-Conc.html#v:unsafeIOToSTM
hpc 2017-03-05 01:30:27
also https://hackage.haskell.org/package/base-4.9.1.0/docs/GHC-Conc.html#v:atomically
dramforever 2017-03-05 01:36:49
abhiroop: STM actions are always reentrant, as long as you don't use 'unsafeIOToSTM' &friends
abhiroop 2017-03-05 01:38:52
dramforever: "STM actions are always reentrant" -> Could you please elaborate on this?
abhiroop 2017-03-05 01:39:28
In fact 'unsafeIOToSTM' which hpc pointed seems to be the only thing handling reentrancy