Search Haskell Channel Logs

Sunday, February 5, 2017

#haskell channel featuring kadoban, MarcelineVQ, banrash, redmq, xcmw_,

redmq 2017-02-05 15:48:40
MarcelineVQ: for the standalone (where language-c-comments-0.3 compiles successfully) it's just `stack unpack language-c-comments-0.3; cd language-c-comments-0.3; stack init; vim stack.yaml` to add language-c-comments-0.3 to extra deps and then build succeeds
redmq 2017-02-05 15:49:17
MarcelineVQ: for the project which has language-c-comments-0.3 as a dependency, the stack.yaml is the same (vanilla result of `stack new` with language-c-comments-0.3 added to extra deps)
redmq 2017-02-05 15:51:21
** ah the standalone is language-c-comments-0.3, it doesn't have itself in extra deps
redmq 2017-02-05 15:51:27
i'll paste.
MarcelineVQ 2017-02-05 15:56:34
I also get errors when trying to simply use it as an extra-dep, not sure which part is the issue given that it's 3 years old, I'd recommend using a local package if you're able to get it to build by itself: http://lpaste.net/352120
redmq 2017-02-05 15:59:33
MarcelineVQ: here's my repro http://lpaste.net/3420369529123897344
redmq 2017-02-05 15:59:57
yeah, i probably will just use it as a local package; just wondering if there was more to be learned about how alex gets resolved though
MarcelineVQ 2017-02-05 16:04:22
dunno, cabal-install also chokes on it when built as a depdendency
redmq 2017-02-05 16:05:01
weird!
redmq 2017-02-05 16:05:11
this didn't happen a few weeks ago when i was developing on a different machine
redmq 2017-02-05 16:05:33
i suppose it's a recent change in the cabal library then, since that machine hadn't had its toolset updated in awhile
redmq 2017-02-05 16:05:42
unfortunately that machine has now been wiped
MarcelineVQ 2017-02-05 16:08:13
I wonder if it's beause it has a dist directory, somehow allowing some things to not be rebuilt that should be, like the generated Lexer.hs
MarcelineVQ 2017-02-05 16:08:52
I know basically nothing about that though, so just spitballing
redmq 2017-02-05 16:10:51
i don't see a dist directory in the repo: https://github.com/ghulette/language-c-comments
MarcelineVQ 2017-02-05 16:11:06
http://hackage.haskell.org/package/language-c-comments-0.3/src/
redmq 2017-02-05 16:14:02
oh, interesting
redmq 2017-02-05 16:14:47
i cloned the repo and did `stack sdist` .. the resulting tarball does not have a dist dir, but leaves the *.x file as is.. perhaps the source distribution format has changed since the package was updated
redmq 2017-02-05 16:20:29
MarcelineVQ: local package workaround fixed it, for now.. thank you!
MarcelineVQ 2017-02-05 16:22:08
np, weird issue
banrash 2017-02-05 16:31:57
q
xcmw_ 2017-02-05 16:36:21
How can I tell stack to use a custom built ghc?
kadoban 2017-02-05 16:36:54
--system-ghc I believe, you also need the compiler settings such that it'll accept that one.