NAME stripcomments - strip blank lines and comments from Haskell files. USAGE stripcomments ... DESCRIPTION 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. Files whose names end with '.lhs' are assumed to contain literate style Haskell, other files are assumed to contain plain Haskell. HOW TO COMPILE AND INSTALL make cp stripcomments /usr/local/bin # or some other suitable directory REQUIREMENTS To compile stripcomments, GHC 5.02 or later is recommended. Be prepared that Lexer/HsLex.hs takes a long time to compile. stripcomments is implemented in pure Haskell 98, and can also be loaded in Hugs 98. LINKS http://www.cse.ogi.edu/~hallgren/stripcomments/ http://www.cse.ogi.edu/~hallgren/Talks/LHiH/ http://www.haskell.org/ghc/ http://www.haskell.org/hugs/ VERSIONS 1.1 Bug fix: avoid outputting a leading blank line for modules that start with one or more lines of whitespace 1.0 Initial release AUTHOR Thomas Hallgren http://www.cse.ogi.edu/~hallgren/ OGI School of Science & Engineering Oregon Health & Science University