Re: [Haskell-cafe] Unknown symbol `__dso_handle' with Template Haskell and wxHaskell

2011-01-06 Thread Scott Michel
It's a side effect of dynamic linking, or, lack of support for it in ghci. You can't work around it. I've tried. Sent from my iPad On Dec 27, 2010, at 9:14 PM, Alexander Bau a...@imn.htwk-leipzig.de wrote: GHCi and cabal didn't work, but ghc --make did. Neither GHCi, cabal nor ghc --make

Re: [Haskell-cafe] Unknown symbol `__dso_handle' with Template Haskell and wxHaskell

2010-12-27 Thread Erik Hesselink
We had this problem with a binding to a C++ library (through a C wrapper). GHCi and cabal didn't work, but ghc --make did. How are you compiling exactly when you get this error? This is somehow related to TH, without it, at least cabal also works. I'm not sure about GHCi. There's also a relevant

Re: [Haskell-cafe] Unknown symbol `__dso_handle' with Template Haskell and wxHaskell

2010-12-27 Thread Alexander Bau
GHCi and cabal didn't work, but ghc --make did. Neither GHCi, cabal nor ghc --make works. I refactored my code, so that all TH related stuff does not depend on wxHaskell, i.e. wxHaskell doesn't need to be loaded during THs code generation. Then ghc --make works fine. But when using cabal, the