Re: cabal directory structure under /libraries/ for a lib that uses Rts.h

2014-10-02 Thread Ömer Sinan Ağacan
Well, which library should it be part of? Add it to the exposed-modules list there and it should get compiled. It's not only a get it compiled problem, even if I add it to base or some other lib and get it compiled, it's failing with a undefined reference linker error. I'm trying to use a

Re: cabal directory structure under /libraries/ for a lib that uses Rts.h

2014-10-02 Thread Edward Z. Yang
Oh, in this case, it's likely because we're not actually exporting the symbol. Check Linker.c, esp the calls to SymI_HasProto. Edward Excerpts from Ömer Sinan Ağacan's message of 2014-10-02 02:34:35 -0700: Well, which library should it be part of? Add it to the exposed-modules list there

Re: cabal directory structure under /libraries/ for a lib that uses Rts.h

2014-10-01 Thread Edward Z. Yang
Well, which library should it be part of? Add it to the exposed-modules list there and it should get compiled. Edward Excerpts from Ömer Sinan Ağacan's message of 2014-09-30 22:54:52 -0700: Hi all, I'm trying to implement https://ghc.haskell.org/trac/ghc/ticket/5364 , I did the coding part

cabal directory structure under /libraries/ for a lib that uses Rts.h

2014-09-30 Thread Ömer Sinan Ağacan
Hi all, I'm trying to implement https://ghc.haskell.org/trac/ghc/ticket/5364 , I did the coding part but I'm having trouble compiling it/adding it as a part of GHC libraries. My library is just one hsc file with a line `#include Rts.h` in it. Any ideas what should I do to make it compiled with