[Haskell-cafe] segfault depending on code position in source file
svenpanne at gmail.com
Thu Feb 21 19:15:43 UTC 2019
Am Do., 21. Feb. 2019 um 19:22 Uhr schrieb Damien Mattei <
damien.mattei at gmail.com>:
> i had attached the whole file, so anyone can read the whole code, perheaps
> it could help, saying me if there is compilation error on other ghc
> versions, with mine no error at compilation.
I very much doubt that anyone likes to read >500 lines of Haskell code with
lots of external dependencies to help you with your problem. A good hint
for Open Source SW in general: If you think you might have found a bug, cut
down your example as much as possible, throw out as many external
dependencies as you can while still reproducing your problem, then, and
only then, post it to other people. You simply can't expect that other
people will do that debugging work for you in their spare time. The code
you post doesn't really have to make sense, it should just be the minimum
amount of code needed to reproduce the problem.
In a nutshell: The probability that you get some help is inversely
proportional to the size of your example, and even more inversely
proportional to the number of external dependencies (libraries etc.).
> The problem to test is that without the database connection which is
> behind a firewall of course ,the code can not be executed. [...]
Well, that is basically a show stopper for getting help...
I don't want to be mean, quite the opposite: I just want to explain why
you probably won't receive any help in the current form. This is not
special to the Haskell community, the situation would be very much the same
if you posted an equivalent problem of similar size to the
Racket/Python/... community. I'm quite sure that most maintainer would be
happy to have a look e.g. at a program consisting of a dozen lines without
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe