Search Haskell Channel Logs

Friday, January 27, 2017

#haskell channel featuring mrkgnao, mrkgnao1, glguy, dmwit,

dmwit 2017-01-27 17:52:29
I'm pretty sure they referred to newtype deriving as "cunning" ever since the beginning, sometimes even in error messages.
dmwit 2017-01-27 17:52:48
(something like "couldn't derive that class, even with cunning newtype deriving")
dmwit 2017-01-27 17:53:36
Oh. That's what started this whole conversation.
mrkgnao1 2017-01-27 17:53:46
I'm at the end of my wits here. I built the Write You A Scheme executable from the repo, but stack simply says "file does not exist" when I try to run the (successfully built) executable
mrkgnao 2017-01-27 17:54:10
pretty sure this has something to do with my running NixOS
dmwit 2017-01-27 17:59:28
I don't know much about stack. But I suspect that somebody who does would want more details.
dmwit 2017-01-27 17:59:49
What's the exact error? Does stack have a verbosity flag that you could turn on to get more information? What's in your configuration files?
dmwit 2017-01-27 18:00:05
What are the exact commands you run?
dmwit 2017-01-27 18:00:07
etc.
mrkgnao 2017-01-27 18:00:17
Stack builds everything fine, although I'll try --verbosity debug.
mrkgnao 2017-01-27 18:00:42
I think there's something like a linker error going on because of the general funkiness associated with Nix.
mrkgnao 2017-01-27 18:01:23
I encounter the problem when I try to run, say, the .stack-work/whateverpath/scheme executable that stack builds.
dmwit 2017-01-27 18:02:54
I suspect you should use stack to run it.
dmwit 2017-01-27 18:03:08
e.g. `stack run foo` or similar. I don't know exactly what `stack` calls the command.
glguy 2017-01-27 18:03:35
exec
mrkgnao 2017-01-27 18:10:54
dmwit: glguy: tried that
mrkgnao 2017-01-27 18:11:01
same error.
mrkgnao 2017-01-27 18:11:34
strace says it can't find the glibc, so I'm rebuilding it with --nix-packages "glibc"
mrkgnao 2017-01-27 18:12:40
whoops, didn't help
mrkgnao 2017-01-27 18:26:40
I'm sorry for wasting y'all's time. The error was from the program itself. :/
mrkgnao 2017-01-27 18:26:53
thanks for helping, glguy and dmwit
mrkgnao 2017-01-27 18:32:58
why don't interpreters use the State monad instead of Reader with local everywhere?