ongy 2017-02-05 05:46:13
oh, it's still the slow version with -O2? I would expect it to inline and specialize there o.0
lyxia 2017-02-05 05:46:17
BTW it doesn't type check if you remove IncoherentInstances
ongy 2017-02-05 05:48:33
pulling w and main into their own file, that one needs no extension
lyxia 2017-02-05 05:52:04
You shouldn't need it for something as trivial as w.
reactormonk 2017-02-05 06:00:30
how do I define ifdefs for compliation?
Welkin 2017-02-05 06:00:44
use the c preprocessor
Welkin 2017-02-05 06:00:56
same as you would in c
reactormonk 2017-02-05 06:01:39
... how do I tell the ghc that it should define a define via command line?
reactormonk 2017-02-05 06:01:43
or stack, to be specific
phadej 2017-02-05 06:01:57
cpp-options
phadej 2017-02-05 06:02:06
cpp-options="-DMYDEFINE"
phadej 2017-02-05 06:02:26
but that's not a good idea.
reactormonk 2017-02-05 06:03:35
phadej, playing around with cabal sources - they have CABAL_PARSEC_DEBUG in there as an ifdef
phadej 2017-02-05 06:05:22
reactormonk: it's defined thru the flag
phadej 2017-02-05 06:05:38
add `flags: Cabal: parsec: true` to stack.yaml
phadej 2017-02-05 06:05:53
and to cabal-install, if you up to that
phadej 2017-02-05 06:06:31
there's other stuff as well, so it has to go thru flag (dependencies)
rgrinberg 2017-02-05 06:13:39
What's the fastest binary parser that supports partial input?
phadej 2017-02-05 06:29:08
rgrinberg: partial as in?
phadej 2017-02-05 06:29:46
rgrinberg: do you mean incremental, like attoparsec?
phadej 2017-02-05 06:30:46
rgrinberg: e.g. binary supports incremental input, or do you need something much faster?
buglebudabey 2017-02-05 06:37:25
i'm getting an exception while trying to install quipper package, how can i go about adding the package it mentions? http://lpaste.net/352112
qmm 2017-02-05 06:38:48
i'm happy about this :)
qmm 2017-02-05 06:39:06
i just searched for "create a bytestring with string" and the first result was https://www.haskell.org/hoogle/?hoogle=String+-%3E+ByteString
qmm 2017-02-05 06:39:30
there were no matching words in the html tags :)
qmm 2017-02-05 06:39:44
it's like google is trying to learn from hoogle ;)
phadej 2017-02-05 06:44:20
qmm: don't use Char8 module, except if you are sure you can