Shlomi Fish wrote: > How can I read the command-line arguments passed to the program. [...] As already pointed out, System.getArgs is the basically the way to go. If you want to use the list returned by it comfortably, see: http://www.haskell.org/ghc/docs/latest/set/sec-util.html#SEC-GETOPT Cheers, Sven