template haskell vs. -prof

John Lato jwlato at gmail.com
Sat Jan 24 05:29:42 UTC 2015


On 21:23, Fri, Jan 23, 2015 Evan Laforge <qdunkan at gmail.com> wrote:

On Sat, Jan 24, 2015 at 2:38 AM, John Lato <jwlato at gmail.com> wrote:
> I agree that mixing template haskell with -prof can be tricky.  It's
easier if you turn
> off dynamic linking entirely.

But that's the thing, I do turn of dynamic linking because I have to
for -prof, but TH seems to require it.

 I mean to use a ghc that's been built without dynamic support.

 >     unlines
>       [ "Line 1"
>       , "Line 2"
>       ]
>
> which ends up being pretty maintainable and easy to read.

Yeah, I use this one too.  It's ok for short things, but it can still
be annoying to edit.  My editor doesn't know how to do line wrapping
for it.  Then you can't just copy paste in and out.  And tabs get
messed up because you're already indented, and probably not in a
tabstop multiple... though I guess I could align it so it was.  And of
course since there's prefix gunk, folding doesn't work inside.

 Yeah, those are all problematic.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20150124/5db0cfff/attachment.html>


More information about the Glasgow-haskell-users mailing list