getOpt is:module

This module provides facilities for parsing the command-line options in a standalone program. It is essentially a Haskell port of the GNU getopt library.
This provides a compatiblity wrapper to the System.Console.GetOpt module in base. That module is essentially a Haskell port of the GNU getopt library. Changes: The changes from GetOpt are listed in the documentation for each function.
This module provides facilities for parsing the command-line options in a standalone program. It is essentially a Haskell port of the GNU getopt library. It is a fork of System.Console.GetOpt from the base package of GHC, written by Sven Panne. We modify it to remove the "allow prefixes of long options" behavior.