In article <
c262d958-f919-469e...@googlegroups.com>,
duke <
sidney.r...@gmail.com> wrote:
|| I'm trying to get the following code to work in the latest version of
|| Miranda:
||
|| [code]good_timestamp (time, msg) = msg ++ " at " ++ (show time) ++ "o'clock"[/code]
||
|| I keep getting this error:
||
|| [quote]No modified files, so no updates needed.
|| compiling script.m
|| checking types in script.m
|| type error in definition of good_timestamp
|| (line 9 of "script.m") use of "show" at polymorphic type *[/quote]
Miranda's show operator is not a polymorphic function, but a "family
of monomorphic" ones. Its type is not (* -> [char]) but (X -> [char])
for any monomorphic type X. See the documentation.
Declare the type of good_timestamp so that at least the type of time
becomes fully known.
Ciao. Vincent.
--
Vincent Zweije <
vin...@zweije.nl> | "If you're flamed in a group you
<
http://www.xs4all.nl/~zweije/> | don't read, does anybody get burnt?"
[Xhost should be taken out and shot] | -- Paul Tomblin on a.s.r.