Building a Windows executable
Chris Saunders
chris.saunders@sympatico.ca
Mon, 11 Nov 2002 19:38:12 -0500
This is a multi-part message in MIME format.
------=_NextPart_000_002A_01C289B9.DF6AF900
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I am new to Haskell and GHC and am using a tutorial that I found on
the Web to learn. In the tutorial it says that a command like this can
be used to build an executable (Windows):
ghc --make test.hs -o test.exe
The compiler had no complaints and output 2 files:
Main.hi and test.o
This is the code I was attempting to compile:
module Main
where
main =3D putStrLn "Hello World."
I also tried using:
ghc --make test.hs
and got the same result.
Sorry for such a lame question.
Regards
Chris Saunders
chris.saunders.@sympatico.ca
------=_NextPart_000_002A_01C289B9.DF6AF900
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I am new to Haskell and GHC and am =
using a tutorial=20
that I found on</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>the Web to learn. In the tutorial =
it says=20
that a command like this can</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>be used to build an executable=20
(Windows):</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>ghc --make test.hs -o =
test.exe</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>The compiler had no complaints and =
output 2=20
files:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Main.hi and test.o</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>This is the code I was attempting to=20
compile:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>module Main<BR> where</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>main =3D putStrLn "Hello =
World."</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I also tried using:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>ghc --make test.hs</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>and got the same result.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Sorry for such a lame =
question.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Regards<BR>Chris Saunders<BR><A=20
href=3D"mailto:chris.saunders.@sympatico.ca">chris.saunders.@sympatico.ca=
</A></FONT></DIV></BODY></HTML>
------=_NextPart_000_002A_01C289B9.DF6AF900--