angerman changed the topic of #haskell.nix to: https://input-output-hk.github.io/haskell.nix - alternative haskell infrastructure for nix; logs at https://logs.nix.samueldr.com/haskell.nix
hekkaidekapus has quit [Remote host closed the connection]
hekkaidekapus has joined #haskell.nix
<michaelpj> typetetris: I lied to you when I said you couldn't materialize the tools stuff: you can pass in extra arguments to the call and it will get forwarded through to the relevant `cabalProject` call, so you can materialize things "normally"
EncodePanda has joined #haskell.nix
<EncodePanda> Hello, at work we developed project with haskell.nix. I'm trying to run profiler against my program at work in the following way:cabal run app --enable-profiling -- +RTS -P Problem: Program does not compile. I get compilation errors like:
<michaelpj> ProofTechnique: that's not really an intended usecase. you can probably hack something together. There are some package sets built from stackage snapshots in the haskell.nix overlay you could use
<EncodePanda> " Perhaps you haven't installed the profiling libraries for package 'random-1.1'?"
<EncodePanda> On the webs I've found that ppl run cabal reinstall package_name for all packages
<EncodePanda> I've also foudn this SOF answer here https://stackoverflow.com/questions/47636243/with-nix-how-can-i-specify-haskell-dependencies-with-profiling-enabled were ppl are building dedicated profile-shell.nix
<EncodePanda> in which they override mkDerivation fo each package that they use
<EncodePanda> I can not possible the only person running into this that is using haskell.nix :)
<EncodePanda> How do you folks resolve this. What's the best approach.
<michaelpj> EncodePanda: you're working inside a nix-shell, right? that means haskell.nix has built all the dependencies of your project for you, not cabal. So you need to tell it that you want profiling libraries too. Normally you should just be able to set this in `cabal.project`, but something is wrong with the profiling config getting through (https://github.com/input-output-hk/haskell.nix/issues/887), so you'll need to enable
<michaelpj> it as a module option for your project. Find the `cabalProject` or similar call, there should be a `modules` argument with a bunch of stuff in it, add `enableLibraryProfiling = true; enableExecutableProfiling = true` and rebuild your shell
<michaelpj> we should have a doc section about this, it's a common desire
<EncodePanda> let me have a look
<EncodePanda> michaelpj if I manage to get this done I promise to PR the docs :)
<michaelpj> :)
<EncodePanda> give me few minutes to process what you wrote
<michaelpj> although that's being fussy and not enabling executable profiling for all executables for some reason
michaelpj has quit [Quit: killed]
domenkozar[m] has quit [Quit: killed]
siraben has quit [Quit: killed]
jonge[m] has quit [Quit: killed]
ptival[m] has quit [Quit: killed]
Ericson2314 has quit [Quit: killed]
michaelpj has joined #haskell.nix
<EncodePanda> michaelpj i've found modules in default.nix, added flags, re-entered shell
<EncodePanda> i'm building the world now :)
<michaelpj> cool
<EncodePanda> the *whole* world
<EncodePanda> :)
<michaelpj> yup
<EncodePanda> so chances are thins are in the right direction
<michaelpj> those profiling libs won't build themselves!
<EncodePanda> :)
<EncodePanda> ok, i guess PR during weekend
<michaelpj> if you're getting the logs, you can spy and check that you see some `.p_o`s being produced
<EncodePanda> oh nice, yeah, is i see those
<michaelpj> then you're probably good
lukaszgol has joined #haskell.nix
Ericson2314 has joined #haskell.nix
jonge[m] has joined #haskell.nix
ptival[m] has joined #haskell.nix
siraben has joined #haskell.nix
domenkozar[m] has joined #haskell.nix
EncodePanda has quit [Ping timeout: 245 seconds]
hekkaidekapus has quit [Quit: hekkaidekapus]
hekkaidekapus has joined #haskell.nix
fendor_ has joined #haskell.nix
fendor has quit [Ping timeout: 260 seconds]
fendor_ is now known as fendor
johnny101 has quit [Ping timeout: 258 seconds]
lukaszgol has quit [Quit: Connection closed for inactivity]
johnny101 has joined #haskell.nix
__monty__ has joined #haskell.nix
jbetz_ has joined #haskell.nix
gluegadget_ has joined #haskell.nix
rizary_ has joined #haskell.nix
hamishmack_ has joined #haskell.nix
domenkozar[m] has quit [*.net *.split]
hamishmack has quit [*.net *.split]
jbetz has quit [*.net *.split]
hekkaidekapus has quit [*.net *.split]
jbetz_ is now known as jbetz
rizary_ is now known as rizary
hamishmack_ is now known as hamishmack
gluegadget_ is now known as gluegadget
domenkozar[m] has joined #haskell.nix
hekkaidekapus has joined #haskell.nix
NinjaTrappeur has quit [Ping timeout: 260 seconds]
hexagoxel has quit [Ping timeout: 244 seconds]
hexagoxel has joined #haskell.nix
jD91mZM2_ has joined #haskell.nix
NinjaTrappeur has joined #haskell.nix
jD91mZM2 has quit [*.net *.split]
clever has quit [*.net *.split]
jD91mZM2_ is now known as jD91mZM2
clever has joined #haskell.nix
hekkaidekapus_ has joined #haskell.nix
hekkaidekapus has quit [Ping timeout: 240 seconds]
fendor has quit [Remote host closed the connection]
fendor has joined #haskell.nix
fendor has quit [Remote host closed the connection]
__monty__ has quit [Quit: leaving]