Word frequency count FIXED by Defenestrator

import Char
import List
main=interact(\x->do y<-group$sort$words[toLower a|a<-x,isAlpha a||a==' '];shows(length y)$' ':y!!0++"\n")

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page