Haskell is a first-class action language as well

Submitted by metaperl on Tue, 12/12/2006 - 10:50am.

I had been considering Haskell a value-oriented language and had concluded that doing a lot of file system actions would be cumbersome. Dons, put that all to rest:

metaperl: dons - if you are doing a lot of file-system
manipulation, doesnt using a value-oriented language
like Haskell become cumbersome?
metaperl: dons - i mean things like copying files, renaming files, etc
dons: metaperl: hmm, like darcs?
dons: why? you're using a first-class action oriented language too, remember
metaperl didn't think of darcs
dons: so you can string together your manipulting functions in interesting ways
dons: i.e. haskell treats imperative statements as first class citizens
dons: you can pass them to functions, put them in data structures
dons: map over them
dons: > sequence_ $ reverse [readFile "/tmp/x", writeFile "/tmp/y"]

wow. Haskell wins again.

Submitted by metaperl on Tue, 12/12/2006 - 10:56am.

and mkcabal.hs is a prime example of scripting and file system operations in Haskell..

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.