Happstack Plugins Status

22 views
Skip to first unread message

Marcelo Sousa

unread,
Mar 8, 2013, 11:52:55 AM3/8/13
to ha...@googlegroups.com
Dear all,

I'm trying to use the Happstack plugins but I keep hitting the wall. The current issue that I'm trying to solve is that resolvedObjs failed:
unknown symbol `hspzm0zi7zi1_HSPziXMLGenerator_zdfEmbedAsChildRWSTXML_closure'

This is with happstack-plugins 7.0.2 and happstack-server 7.1.7.

Any suggestions to solve this? I wonder if plugins are working properly at all. I can't seem to find an up-to-date tutorial on how to use them.

Regards,
Marcelo

ben.d.s...@gmail.com

unread,
Mar 8, 2013, 9:13:53 PM3/8/13
to ha...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages