![]() The runhugs command is an interpreter for an executable Hugs script, which must contain a Haskell Main module. Any occurrence of " and prints the prompt so that further commands can be entered. A null entry in this list will be replaced by the previous search path a null str means the default path. Set search path for source files to str, which should be a colon-separated list of directories. Set repeat last expression string to str (default: $$). Any %s in the prompt will be replaced by the current module name. Set prompt string to str (default: ` %s> '). Set heap size (cannot be changed within Hugs default: 250K) -p str Other options (in which - could be replaced by +, the choice making no difference) are: -h num Use " show" to display results (default: on) +Iĭisplay results of IO programs (default: off) Parameters Show kind errors in full (default: off) +u Qualify names when printing (default: off) +k Print number of cells recovered after each garbage collection (default: off) +Q Print type after each evaluation (default: off) +TĪpply the Haskell defaulting rules before printing types (default: off) +g Print number of reductions/cells after each evaluation (default: off) +t Print nothing to show progress while loading modules (default: on) +wĪlways show which files are loaded (default: off) Expression evaluation +s Print dots to show progress while loading modules (default: off) +q lhs' as literate scripts (default: off) +. Treat files whose names end in neither `. +oĪllow overlapping instances (a Hugs extension default: off) +OĪllow unsafe overlapping instances (a Hugs extension default: off) +HĪllow `here documents' (a Hugs extension default: off) Module loading +l Turning this off enables several special Hugs extensions, which are described in the Hugs 98 User Manual. Language conformance +98Īccept only Haskell 98 (cannot be changed within Hugs default: on). Some options are toggled with + or - to turn them on or off, respectively. (The recognized suffixes may be changed using the -S option, described under Options.) It also tries name as a literal filename. ' in name with a ` /' and looks in each of the directories on its search path (see -P under Options) for the files name. When loading a module name, Hugs replaces each `. After processing options, it loads the standard module Prelude and any other modules listed on the command line.Įach Haskell module is stored in a separate file. The interpreter is started using the hugs command. The name Hugs is a mnemonic for the Haskell User's Gofer System. Hugs implements almost all of the Haskell 98 standard, except for mutually recursive modules. Hugs is an interpreter for Haskell, a standard non-strict functional programming language. Hugs 98, functional programming system Synopsisįfihugs module.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |