man hugs Command

Man page for apt-get hugs Command

Man Page for hugs in Linux

Ubuntu Man Command : man hugs

Man Hugs  Command

This tutorial shows the man page for man hugs in linux.

Open terminal with 'su' access and type the command as shown below:
man hugs

Result of the Command Execution shown below:

HUGS(1)                                                                                                                                                      HUGS(1)



NAME
hugs, runhugs, ffihugs Hugs 98, functional programming system

SYNOPSIS
hugs [ options ] [ modules ]
runhugs [ options ] module [ args ]
ffihugs [ options ] module [ compiler_argument ] ...

DESCRIPTION
Hugs is an interpreter for Haskell, a standard non strict functional programming language. Hugs implements almost all of the Haskell 98 standard, except for
mutually recursive modules. The name Hugs is a mnemonic for the Haskell User's Gofer System.

The interpreter is started using the hugs command. After processing options, it loads the standard module Prelude and any other modules listed on the com Äê
mand line.

Each Haskell module is stored in a separate file. When loading a module name, Hugs replaces each `.' in name with a `/' and looks in each of the directo Äê
ries on its search path (see P under OPTIONS) for the files name.hs and name.lhs. (The recognized suffixes may be changed using the S option, described
under OPTIONS.) It also tries name as a literal filename. Files ending in ".lhs" are treated as literate scripts.

OPTIONS
Some options are toggled with + or to turn them on or off, respectively.

Language conformance
+98 Accept only Haskell 98 (cannot be changed within Hugs; default: on). Turning this off enables several special Hugs extensions, which are described in
the Hugs 98 User Manual.

+o Allow overlapping instances (a Hugs extension; default: off)

+O Allow unsafe overlapping instances (a Hugs extension; default: off)

+H Allow `here documents' (a Hugs extension; default: off)

Module loading
+l Treat files whose names end in neither `.hs' nor `.lhs' as literate scripts (default: off)

+. Print dots to show progress while loading modules (default: off)

+q Print nothing to show progress while loading modules (default: on)

+w Always show which files are loaded (default: off)

Expression evaluation
+s Print number of reductions/cells after each evaluation (default: off)

+t Print type after each evaluation (default: off)

+T Apply the Haskell defaulting rules before printing types (default: off)

+g Print number of cells recovered after each garbage collection (default: off)

+Q Qualify names when printing (default: off)

+k Show kind errors in full (default: off)

+u Use "show" to display results (default: on)

+I Display results of IO programs (default: off)

Parameters
Other options (in which could be replaced by +, the choice making no difference) are:

hnum Set heap size (cannot be changed within Hugs; default: 250K)

pstr Set prompt string to str (default: `%s> '). Any %s in the prompt will be replaced by the current module name.

rstr Set repeat last expression string to str (default: $$).

Pstr Set search path for source files to str, which should be a colon separated list of directories. A null entry in this list will be replaced by the
previous search path; a null str means the default path. Any occurrence of {Hugs} in this string is expanded to the Hugs library directory, namely
/usr/lib/hugs. Similarly, {Home} is expanded to your home directory (the value of the HOME environment variable). An entry of the form `directory/*'
means all the immediate subdirectories of directory. The default value is

.:{Home}/lib/hugs/packages/*:/usr/local/lib/hugs/packages/*:{Hugs}/packages/*:{Hugs}/libraries

Sstr Set the colon separated list of source file suffixes to str (default: .hs:.lhs). A null entry in this list will be replaced by the previous suffix
list; a null str means the default list.

Estr Use editor setting given by str (default: the value of the EDITOR environment variable). Any occurrences of %d and %s in the editor option are
replaced by the start line number and the name of the file to be edited, respectively. A common setting is "vi +%d %s".

cnum Set constraint cutoff limit in the type checker to num (default: 40).

Fcmd Set preprocessor filter for source files to cmd (unset by default). Instead of reading a source file directly, Hugs will read the standard output of
cmd run with the source file name as argument.

Xstr The string str is interpreted as an option string. This is useful, for example, for passing multiple arguments to runhugs in a


Related Topics

Apt Get Commands