-
Notifications
You must be signed in to change notification settings - Fork 6
Interpreter
Ilkka Törmä edited this page Jun 21, 2017
·
1 revision
The Husk interpreter is simply called Husk
.
It is called with one or more option flags, a program (possibly read from a file), and zero or more arguments, which are parsed as data items.
The syntax for program arguments can be found on the Syntax page.
The interpreter recognizes the following options:
-
-b
: Read source as bytes. -
-u
: Read source in Unicode format. -
-v
: Read source as verbose ASCII. -
-t
: Translate between the three source formats. -
-f
: Read source from given file. -
-o
: Specify name of transpiled Haskell file. -
-i
: Infer all possible types for main function, ignoring inputs. Don't transpile or execute the program. -
-I
: Infer all possible types for main function, taking inputs into account. Don't transpile or execute the program.
The source format must be speficied, but other flags are optional.