duke
2012-07-01 01:01:12 UTC
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]
The code is taken from "Programming with Miranda", so it should work, I'm thinking. :) At first, I was thinking it was my "offside rule" formatting that was off, but it doesn't seem to matter. Ideas please!
[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]
The code is taken from "Programming with Miranda", so it should work, I'm thinking. :) At first, I was thinking it was my "offside rule" formatting that was off, but it doesn't seem to matter. Ideas please!