[A rudimentary reference guide for hat-trans. malcolm**20021029141528] { addfile ./docs/hat-trans.html hunk ./docs/hat-trans.html 1 +hat-trans reference guide + +
+ +

hat-trans reference guide

+ +
+ +

+hat-trans is a stand-alone program that performs a +source-to-source transformation on a single Haskell module. +The transformed module contains functions that deposit traces in a +.hat file, in addition to computing their original results. + +

+ + +
+

+File arguments. + + + + + + + +
.hsHaskell source file
.lhsliterate Haskell source file
+ +

+

+Flags. + + + + + + + + + + +
-Idirsearch directory dir for imported modules during transformation. + (hat-trans actually looks for the .hx file generated by a + prior invocation of hat-trans, rather than the source module itself.)
-Pdirsearch directory dir for prelude and stdlib modules during + transformation
+RTSthe following options (up to -RTS) should be passed only + to hat-trans's runtime system + (for instance to increase its heap size for processing a large file)
+ +

+ + + +
+

+Options to change the usual transformation behaviour. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
-unixUse unix filenames (default)
-nounixUse RiscOS filenames
-unlitUnliterate the source code
-nounlitDo not unliterate the source code (default)
-underscoreTreat underscores strictly as lowercase (default)
-nounderscoreTreat underscores as invisible, e.g. _f is varid, _F is conid
-preludeTreat prelude definitions specially
-nopreludeDo not treat definitions specially (default)
-trustedmake this a "trusted" module
-notrustedmake this an "untrusted" module (default)
+ +

+

+Options to examine the internal progress of the transformation. + + + + + + + + + + + + + + + + + + + +
-showwidth=wset width in characters of output of an intermediate syntax tree + to w (default=80)
-showindent=iset indentation in characters for nesting of output of an intermediate + syntax tree to i (default=2)
-showqualifieduse qualified names in output of intermediate syntax tree + (default=on)
-lexshow lexical input
-parseshow syntax tree after parser
-tracefnsshow syntax tree after tracing translation
+ +

+ +
+ +
+

+This page last updated: 29th October 2002
+

+ + }