Hi Marcelo,
I found that I needed to pass in the package.conf paths needed.
The paths for my current project using cabal-dev are:
> packageConfs =
> [ "/home/xxx/.local/lib/ghc-7.6.1/package.conf.d"
> , "cabal-dev/packages-7.6.1.conf"
> , "dist/package.conf.inplace"
> ]
I haven't used the happstack-plugins library, just the plugins
library, but when I call pdynload_ I pass the packageConfs and in
the extra args parameter I provide -package-db options.
> args = concatMap (\x -> "-package-db":[x]) packageConfs
>
> P.pdynload_ objPath includes packageConfs args symbolType symbolName
You should be able to trace through the happstack-plugins code to
see how those parameters are provided. Hope that helps,
Ben