![]() ![]() #!/usr/bin/runhugs l > module Main where > main = putStr "Hello, World\n" Which must contain a Haskell Main module. STANDALONE PROGRAMS The runhugs command is an interpreter for an executable Hugs script, Prints the prompt so that further commands can be entered. Will be replaced by the previous search path a null str means P str Set search path for source files to str, which should be aĬolon-separated list of directories. r str Set repeat last expression string to str (default: $$). Prompt will be replaced by the current module name. p str Set prompt string to str (default: ` %s> '). h num Set heap size (cannot be changed within Hugs default: 250K) Other options (in which - could be replaced by , the choice making no I Display results of IO programs (default: off) u Use " show" to display results (default: on) k Show kind errors in full (default: off) Q Qualify names when printing (default: off) g Print number of cells recovered after each garbage collection T Apply the Haskell defaulting rules before printing types t Print type after each evaluation (default: off) w Always show which files are loaded (default: off)Įxpression evaluation s Print number of reductions/cells after each evaluation (default: q Print nothing to show progress while loading modules (default: Print dots to show progress while loading modules (default: off) Module loading l Treat files whose names end in neither `. H Allow `here documents' (a Hugs extension default: off) O Allow unsafe overlapping instances (a Hugs extension default: o Allow overlapping instances (a Hugs extension default: off) Which are described in the Hugs 98 User Manual. Turning this off enables several special Hugs extensions, Language conformance 98 Accept only Haskell 98 (cannot be changed within Hugs default: OPTIONS Some options are toggled with or - to turn them on or off, (The recognized suffixes may beĬhanged using the -S option, described under OPTIONS.) It also tries ' in name with a ` /' and looks inĮach of the directories on its search path (see -P under OPTIONS) for Options, it loads the standard module Prelude and any other modulesĮach Haskell module is stored in a separate file. The interpreter is started using the hugs command. Mnemonic for the Haskell User's Gofer System. Standard, except for mutually recursive modules. Hugs implements almost all of the Haskell 98 ĭESCRIPTION Hugs is an interpreter for Haskell, a standard non-strict functional NAME hugs, runhugs, ffihugs - Hugs 98, functional programming systemįfihugs module. ![]()
0 Comments
Leave a Reply. |