Hi,
Hannah Schroeter
uk1o@rz.uni-karlsruhe.de
Tue, 31 Jul 2001 10:45:37 +0200
Hello!
On Tue, Jul 31, 2001 at 06:34:25PM +1000, ttsawj@mail.com wrote:
> I was just wondering how can I make modules using HUGS? I want to make my own programs e.g.
> ConverttoKM:: float -> float
> ConverttoKM x = x * 1.6
> How do I do that?
> Thanks, pelase reply ASAP.
This is no bug in Hugs, but a general Haskell problem!
Write it into some file Foo.hs, in this form:
module Foo where
converttoKM :: Float -> Float
converttoKM x = x * 1.6
Please note that case is significant in Haskell. Types and modules
are named with capitalized identifiers ("Float"!), while values
(including functions) must be named by identifiers starting with
a lowercase letter (like "converttoKM").
Kind regards,
Hannah.