<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I wouldn't approach this from that perspective. If it's just a
small codebase you might want to just grep -R "printf" . and look
through each statement. To be honest I've never really used ghci
for debugging (I'm definitely a beginner) but getting a stack trace
seems like overkill and I'd be willing to bet ghci would be more
productive anyway. If you really want to though the flag is -prof.
To compile the library with it you could edit the .cabal file and
add it under ghc-options.<br>
or cabal build --ghc-options="-prof" would probably also work.<br>
<br>
(if I'm wrong about any of the above I'd really appreciate it if
someone more experienced than me would correct me so I don't make
the same mistakes!)<br>
<br>
<div class="moz-cite-prefix">On 12/4/15 7:50 PM, Dennis Raddle
wrote:<br>
</div>
<blockquote
cite="mid:CAKxLvorg0iGe6qKpJZwzVsfLEAVs-7iewsoaUHpN0vNfcn=j9Q@mail.gmail.com"
type="cite">
<div dir="ltr">I'm getting an error, printf not having enough
arguments. I need to find where this is happening, and I
understand there are ways of getting a stack trace, but
apparently I need to compile for profiling. That means I need to
compile my one library dependency (Text.XML.Light) for
profiling, I believe. How do I do this? I'm on Windows and have
only installed libraries in the past with cabal.
<div><br>
</div>
<div>D</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Beginners mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Beginners@haskell.org">Beginners@haskell.org</a>
<a class="moz-txt-link-freetext" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a>
</pre>
</blockquote>
<br>
</body>
</html>