On 2-10-2014 16:08, Vadim Tukaev wrote:
I want to create program, that sort list of numbers by oddity (odds first, then
evens).
I create testing.prj and testing.icl, then write:
import StdOrdList
oddity a b = compare (mod a 2) (mod b 2)
sortByOddity = sortBy oddity
main = sortByOddity [ 1, 2 .. 10 ]
And got error: Error: No application to run, you must bring the project up to
date.
What I am doing wrong? By the way, I downloaded CleanBookI.pdf but,
nevertheless, experience serious difficulties due to lack of information and
examples. Enough to google a question about Haskell, and I get at least one,
and often several answers. When I try to search something at your wiki, I got
message that I can not edit the page. WTF?
I assume that you use the Clean IDE on windows. I think you tried to run
the program by selecting Run from the Project menu, which runs
the program (if it exists) without first compiling it.
You should first use Bring Up To Date, before trying to run it,
or use Update and Run. This is explained in the UserManual.pdf
(select menu Help, item Help/Usermanual.pdf or open it from
the Help directory).
Your program should start with: module testing
and instead of mod you could use rem (the instance
of mod has been removed, but the class still exists).
Kind regards,
John van Groningen
_______________________________________________
clean-list mailing list
[email protected]
http://mailman.science.ru.nl/mailman/listinfo/clean-list