Search Haskell Channel Logs

Thursday, February 23, 2017

#haskell channel featuring c_wraith, doomrobo, peddie, adelbertc,

adelbertc 2017-02-23 11:59:15
are there any "advanced haskell" books folks would recommend? im pretty comfortable with FP, mostly concerned with familiarizng myself with haskell-specific stuff atm
peddie 2017-02-23 12:01:44
adelbertc: have you read Parallel and Concurrent Programming in Haskell?
adelbertc 2017-02-23 12:01:54
peddie: yep thats on my list
adelbertc 2017-02-23 12:02:04
was the only non-intro-to-haskell book i could find
peddie 2017-02-23 12:02:48
adelbertc: there are an awful lot of academic papers if you're interested
adelbertc 2017-02-23 12:04:10
peddie: yep :-) i've mostly been transliterating those into Scala, been trying to do more haskell recently. sounds like the parallel/concurrency book is mostly it
adelbertc 2017-02-23 12:04:21
thanks for your suggestion!
peddie 2017-02-23 12:04:32
adelbertc: or have a look through oleg's website http://okmij.org/ftp/Haskell/
peddie 2017-02-23 12:04:38
you're welcome, have fun :)
doomrobo 2017-02-23 12:07:40
Hi, I'm getting a GHC stage restriction error on this TH code but I don't understand why. It's very simple http://lpaste.net/352922
c_wraith 2017-02-23 12:33:45
doomrobo, welcome to TH. first major restriction: you can't use a splice defined in the same file.
doomrobo 2017-02-23 12:34:06
c_wraith, haha yup I realized that. It worked when I made a new file
doomrobo 2017-02-23 12:34:18
but now I'm dealing with making the splice do the function definition part as well
doomrobo 2017-02-23 12:34:54
c_wraith, aaand that works now. But there's no type declaration. What gives?
c_wraith 2017-02-23 12:35:38
does the splice generate one?
doomrobo 2017-02-23 12:36:07
nope. just generates a Q [Dec] via a FunD
c_wraith 2017-02-23 12:36:46
well... that would seem to explain it.
doomrobo 2017-02-23 12:37:01
I thought top-level defs have to have type signatures
c_wraith 2017-02-23 12:37:24
no. - Wall warns if they don't, but it's not required.
c_wraith 2017-02-23 12:37:32
err, -Wall
doomrobo 2017-02-23 12:37:36
ah, cool
c_wraith 2017-02-23 12:39:14
a common pattern in splices that generate functions at the top level is to intentionally leave out the type declaration. that gives you the chance to put in the type declaration explicitly, and put some haddock docs with it.