
Not sure about windows, but for Linux – you just do `stack build
--executable-profiling` (for cabal it's `cabal
--enable-executable-profiling`) to build with profiling.
Also, I want to recommend a package called formatting
http://hackage.haskell.org/package/formatting , which is a bit more
type-safe way to format strings:
format ("Person's name is " % text % ", age is " % hex) "Dave" 54
There are short-named formatters available, and if you omit spaces it would
look almost as dense as printf.
Cheers.
On Sat, Dec 5, 2015 at 2:50 AM, Dennis Raddle
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.
D
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners