[nhc-users] Newbie Problem

Martin Norbäck d95mback@dtek.chalmers.se
12 Jun 2002 18:50:14 +0200


--=-zUu6HqYzf8KEfTLrQHCN
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

ons 2002-06-12 klockan 18.41 skrev Dufflebunk:
> Hello, I'm not subscribed to this list, so please make sure you CC to me
> if you reply.
> I just installed nhc98 (from source) and tried to compile a simple
> program:
> 	module Test where
> 	main =3D return ()
> Here is the result:
> $ nhc98 test.hs=20
> /usr/lib/nhc98/ix86-Linux/Prelude.a(_Driver.o)(.data+0x88): undefined
> reference to `CF_Main_46main'
> collect2: ld returned 1 exit status
> $
>=20
> This is the first "program" I've tried to write in Haskell (although
> I've used Clean and Miranda before). Did I do something wrong??

The module containing the main function has to be called Main.

Regards,

	Martin

--=20
Martin Norb=E4ck          d95mback@dtek.chalmers.se             =20
Kapplandsgatan 40       +46 (0)708 26 33 60                   =20
S-414 78  G=D6TEBORG      http://www.dtek.chalmers.se/~d95mback/
SWEDEN                  OpenPGP ID: 3FA8580B

--=-zUu6HqYzf8KEfTLrQHCN
Content-Type: application/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: För information se http://www.gnupg.org/

iD8DBQA9B3vGkXyAGj+oWAsRAmAuAJ9pfWt6kA3oSLqDCAVVGyJhLzZLPACfdFeG
O697VrcOiPip7m3usoc0qx4=
=ih85
-----END PGP SIGNATURE-----

--=-zUu6HqYzf8KEfTLrQHCN--