Understanding the core2core simplifier - occurence-analysis interaction

2012-10-22 Thread Herbert Valerio Riedel
Hello GHC HQ, I've been trying to improve/fix a minor optimization sub-optimality w.r.t to the following code (code like that results from the generics-based NFData deriver[1]): data Foo = Foo1 | Foo2 | Foo3 !Int rnf1 :: Foo - () rnf1 x = case x of Foo1 - ()

Re: GHC compiling shared library linking problem

2012-10-22 Thread Simon Marlow
On 17/10/2012 08:43, Richard Zetterberg wrote: I have two parts of my application; one which builds a cli application which uses my module and one which builds a shared library which uses the same module. I have no problems compiling my cli application. And if I try to compile the shared library

Re: GHC compiling shared library linking problem

2012-10-22 Thread Richard Zetterberg
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello and thank you for the reply Yes! It seems the details from my first mail (10/15/12 3:25 PM) fell out. Here is the relevant parts from that mail: The problem I have is that I get a linker error when compiling a shared library with GHC. This