Re: Static library to redefine entrypoint

2009-04-25 Thread Duncan Coutts
On Fri, 2009-04-24 at 12:56 +0200, Philip K.F. Hölzenspies wrote: Dear GHCers, I am trying to write a wrapper library for lab work to give to students. My problem is, that the libraries I use require initialization that I really want to hide from our students. The wrapper I'm writing is

Re: Static library to redefine entrypoint

2009-04-24 Thread Krzysztof Skrzętnicki
Why not just tell them to import your library and do something like main = withSomeInit labMain where withSomeInit is the function you provide? This approach is present in some other libs that require initialization. Best regards Christopher Skrzętnicki On Fri, Apr 24, 2009 at 12:56, Philip

Static library to redefine entrypoint

2009-04-24 Thread Philip K.F.
Dear GHCers, I am trying to write a wrapper library for lab work to give to students. My problem is, that the libraries I use require initialization that I really want to hide from our students. The wrapper I'm writing is compiled to a static library and installed with cabal, so students can just

Re: Static library to redefine entrypoint

2009-04-24 Thread Philip K.F.
On Fri, 2009-04-24 at 13:06 +0200, Krzysztof Skrzętnicki wrote: Why not just tell them to import your library and do something like main = withSomeInit labMain where withSomeInit is the function you provide? This approach is present in some other libs that require initialization. Dear