From cb486104c9225bb44f5ccdd700ff204a37014207 Mon Sep 17 00:00:00 2001 From: simonmar Date: Mon, 4 Apr 2005 10:55:38 +0000 Subject: [PATCH] [project @ 2005-04-04 10:55:38 by simonmar] comment out parts of the Win32 DLLs section, specifically those that don't apply to current Windows distributions. --- ghc/docs/users_guide/win32-dlls.xml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/ghc/docs/users_guide/win32-dlls.xml b/ghc/docs/users_guide/win32-dlls.xml index 45d75d1..70defea 100644 --- a/ghc/docs/users_guide/win32-dlls.xml +++ b/ghc/docs/users_guide/win32-dlls.xml @@ -170,6 +170,15 @@ make-sessions running under cygwin. +Making Haskell libraries into DLLs doesn't work on Windows at the +moment; however, all the machinery is +still there. If you're interested, contact the GHC team. Note that +building an entire Haskell application as a single DLL is still supported: it's + just multi-DLL Haskell programs that don't work. The Windows + distribution of GHC contains static libraries only. + + Creating a DLL -Making libraries into DLLs doesn't work on Windows at the -moment (and is no longer supported); however, all the machinery is -still there. If you're interested, contact the GHC team. Note that -building an entire Haskell application as a DLL is still supported -(it's just inter-DLL Haskell calls that don't work). Creating a Win32 DLL ––mk-dll Sealing up your Haskell library inside a DLL is straightforward; @@ -270,11 +275,13 @@ consist of all the object files and archives given on the command line. + A couple of things to notice: @@ -283,6 +290,7 @@ A couple of things to notice: + @@ -305,7 +314,7 @@ this, you can specify the module definition file to use on the command line as follows: -ghc ––mk-dll -o .... -optdll--def -optdllMyDef.def +ghc ––mk-dll -o .... -optdll––def -optdllMyDef.def See Microsoft documentation for details, but a module definition file @@ -374,7 +383,7 @@ functions you want to call from the outside. For example, module Adder where -adder :: Int -> Int -> IO Int -- gratuitous use of IO +adder :: Int -> Int -> IO Int –– gratuitous use of IO adder x y = return (x+y) foreign export stdcall adder :: Int -> Int -> IO Int -- 1.7.10.4