Skip to content

Instantly share code, notes, and snippets.

@edipofederle
Created October 17, 2011 14:54
Show Gist options
  • Select an option

  • Save edipofederle/1292783 to your computer and use it in GitHub Desktop.

Select an option

Save edipofederle/1292783 to your computer and use it in GitHub Desktop.
-- Dado um arquivo conta quantas linhas o mesmo tem.
main = interact wordCount
where wordCount input = show( length (lines input)) ++ "\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment