Unable to profile program using Data.ByteString.Lazy

Hi folks, I wrote a program that uses some of the Data.ByteString libraries. I'm using GHC 6.4.1 and FPS 0.7. The program compiles and works just fine. But when I try to profile it, by compiling with -prof, I get: Failed to load interface for `Data.ByteString.Lazy': Could not find module `Data.ByteString.Lazy': locations searched: Data/ByteString/Lazy.hi Data/ByteString/Lazy.hi-boot /f/g/lib/fps-0.7/Data/ByteString/Lazy.p_hi Why can it find the module when it's compiling without -prof, but not when it's compiling with it? I would really like to get profiling to work. Thanks, Lyle

lists:
Hi folks,
I wrote a program that uses some of the Data.ByteString libraries. I'm using GHC 6.4.1 and FPS 0.7.
The program compiles and works just fine. But when I try to profile it, by compiling with -prof, I get:
Failed to load interface for `Data.ByteString.Lazy': Could not find module `Data.ByteString.Lazy': locations searched: Data/ByteString/Lazy.hi Data/ByteString/Lazy.hi-boot /f/g/lib/fps-0.7/Data/ByteString/Lazy.p_hi
Why can it find the module when it's compiling without -prof, but not when it's compiling with it? I would really like to get profiling to work.
Probably you didn't build fps with profiling as well? You can rebuild fps with: runhaskell Setup.hs configure -p as the first step. -- Don

Donald Bruce Stewart wrote:
Probably you didn't build fps with profiling as well? You can rebuild fps with: runhaskell Setup.hs configure -p as the first step.
-- Don
Thanks, I'll try it. Does that mean when I want to optimize my program, I'll need to rebuild fps without profiling? - Lyle

lists:
Donald Bruce Stewart wrote:
Probably you didn't build fps with profiling as well? You can rebuild fps with: runhaskell Setup.hs configure -p as the first step.
-- Don
Thanks, I'll try it. Does that mean when I want to optimize my program, I'll need to rebuild fps without profiling?
- Lyle
If you build a cabalised project with the -p flag to configure, you get both the profiled and normal versions. You won't need to rebuild after that. -- Don
participants (2)
-
dons@cse.unsw.edu.au
-
Lyle Kopnicky