Hello

I am needing a way to run initializers defined in various modules 
in an eager fashion before main. I am doing this to load
deserialization functions for a Typeable function.

Basically I have code like:

$(inferDecoderAndRegisterItOnStartup ''MyType)

which defines a class instance, but additionally I want to
call 'registerDecoderForType "MyType" decodeMyType' automatically
on startup.

Calling registerDecodeForType for all types in main gets very tedious
and error-prone when doing things by hand. Thus an automated solution
would be very nice.

- Einar Karttunen
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to