Path to this page:
Next | Query returned 4 messages, browsing 1 to 10 | previous
CVS Commit History:
2014-08-29 16:09:59 by Ryosuke Moro | Files touched by this commit (104) |
Log message:
make it clear what package depend on
discussed with wiz@.
|
2014-05-18 23:33:25 by Ryosuke Moro | Files touched by this commit (119) |
Log message:
Remove hs-data-default-class, hs-dlist, hs-text, hs-utf8-string,
imported to pkgsrc/devel.
|
2014-05-05 02:03:01 by Ryosuke Moro | Files touched by this commit (74) |
Log message:
Update MAINTAINER address
|
2013-08-17 11:03:37 by Ryosuke Moro | Files touched by this commit (5) |
Log message:
ReadArgs provides the readArgs IO action, which lets you tell the compiler
to parse the command line arguments to fit the type signature you give.
For example (a :: Int, b :: String, c :: Float) <- readArgs would parse the
first runtime argument as an Int, the second as a String (no quotes
required) and the third as a Float.
If the runtime arguments are incompatible with the type signature, then a
simple usage statement is given of the types needed.
Continuing the previous example, if it was used in a program named Example,
the error message for the above action would be:
usage: Example Int String Float
Any type that has both Typeable and Read instances can be used. Char,
String, and Text are handled specially so that command line arguments for
both do not require quotes (as their Read instances do). A special instance
is provided for FilePath so that no constructor or quotes are required.
|
Next | Query returned 4 messages, browsing 1 to 10 | previous