Skip to content

Incorrect documentation for Windows dlls

The documentation for creating Windows dlls (http://www.haskell.org/ghc/docs/7.4.1/html/users_guide/win32-dlls.html) was originally taken from my blog (http://neilmitchell.blogspot.co.uk/2009/11/haskell-dlls-on-windows.html). Unfortunately the translation dropped one line. My blog reads:

   // Initialize Haskell runtime
   char** args = argv;
   hs_init(&argc, &args);

   // Tell Haskell about all root modules
   hs_add_root(__stginit_Adder);

But the docs omit the call to hs_add_root. I was emailed by Jonas Fager who had problems producing a dll because of this documentation problem.

Trac metadata
Trac field Value
Version 7.4.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Documentation
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information