To quote the counter thread:
Everyone seems to be allergic to example based documentation ("just follow the types!")
Maybe it is a problem with me not having enough Haskell, but a lot of documentation is just a list of data types and then a list of functions with their types.
One of the first libraries I tried to figure out was. System.Process. I think I spent over an hour looking at this page to get something going. What I wanted to, and expected to, find was something like this:
output <- system "ls -lh"
I look at the list of functions/data-types and my reaction is the following:
ls
, but how about show me how to actually get stdout out into a value. Or are we only running ls to increase the ambient temperature of the room?String -> IO(String)
or String -> IO(Just String, Just String, ExitCode)
or something like that.readProcess
is closest. Why is it buried in the middle of the page? Others in this list don't seem much simpler.