Search Haskell Channel Logs

Monday, January 30, 2017

#haskell channel featuring qmm, Lokathor, lambdabot, geekosaur, monochrom, RoboticFoot,

monochrom 2017-01-30 18:45:20
The possibilities are endless. Think of the future!
qmm 2017-01-30 18:47:55
> 0.34 * 34.343434333434344343433
lambdabot 2017-01-30 18:47:57
11.676767673367678
geekosaur 2017-01-30 18:48:24
qmm, for what it's worth, the error indicates you used `ts` in a context requiring its type be [Char] (or String, equivalently)
qmm 2017-01-30 18:59:34
i'm in the IO monad stepping with the breakpoint, but i can't seem to inspect the types of the variables that were set with the let statements. is this normal?
qmm 2017-01-30 19:00:20
"stepping with the breakpoint" doesn't make sense, sorry. i'm stepping through the file with the debugger
geekosaur 2017-01-30 19:01:52
when it's showing you a line, iirc it is before it has evaluated it; you'd need to check the *next* time it stops
RoboticFoot 2017-01-30 19:05:38
Why is -fwarn-incomplete-uni-patterns not included in -Wall? That came as a very unpleasant surprise to me
geekosaur 2017-01-30 19:09:33
RoboticFoot, because whether it's a bad thing or not depends on the context
geekosaur 2017-01-30 19:10:00
for example, you *want* pattern failure to be silent in the list monad (or list comprehensions which are the same thing)
geekosaur 2017-01-30 19:10:58
(usually)
RoboticFoot 2017-01-30 19:11:46
geekosaur: Doesn't that desugar to "_ -> fail ", so it's not actually a uni-pattern?
RoboticFoot 2017-01-30 19:12:31
I would expect uni-patterns to only cover things in the LHS of a lambda-expr
RoboticFoot 2017-01-30 19:12:44
(after desugarization)
Lokathor 2017-01-30 19:15:09
orchestrateGameInternals :: TChan InputEvent -> TChan OutputData -> TVar GameState -> IO GameState