The README file is displayed below the directory index. See also the HTML version of the source code for stripcomments.
Name | Last modified | Size |
---|---|---|
Parent Directory | - | |
L.hs | 2003-10-07 02:03 | 1.7K |
LICENSE | 2003-10-10 23:06 | 1.6K |
Makefile | 2003-10-10 23:06 | 824 |
README | 2003-12-16 18:05 | 2.2K |
StripComments.hs | 2003-10-10 23:06 | 516 |
Unlit.hs | 2002-03-19 07:50 | 3.8K |
layout.hs | 2003-10-07 21:55 | 781 |
pfe.cgi | 2018-03-29 23:19 | 6.3K |
stripcomments.hs | 2002-03-19 07:50 | 456 |
stripcomments0.hs | 2002-03-19 07:50 | 267 |
stripcomments file_1 ... file_n layout file_1 ... file_n
stripcomments
reads Haskell files named on the command line and strips
away comments and blank lines. Layout and syntactic correctness is
preserved. The result is sent to the standard output.
layout
reads Haskell files named on the command line and outputs them
on stdout with the braces and semicolons implied by layout made
explicit. Comments and white space is preserved.
(See also limitations below.)
Files whose names end with '.lhs' are assumed to contain literate style
Haskell, other files are assumed to contain plain Haskell.
make cp stripcomments /usr/local/bin # or some other suitable directory cp layout /usr/local/bin # or some other suitable directory
The programs are implemented in pure Haskell 98, and can also be loaded in Hugs 98.
let x=1 in x+xbut will correctly translate
let x=1 in x+xAlso, the program layout handles literate style Haskell files by converting literate comments to ordinary nested comments. This can result in incorrect code when literate comments contain "{-" or "-}".
OGI School of Science & Engineering
Oregon Health & Science University