[project @ 2001-05-22 19:07:39 by sof]
authorsof <unknown>
Tue, 22 May 2001 19:07:39 +0000 (19:07 +0000)
committersof <unknown>
Tue, 22 May 2001 19:07:39 +0000 (19:07 +0000)
commitbe077db34e81dd4180d01b9acc88a7684b4ddb7a
tree4fba7d891c01f1c2b1ca4a497691c628cbcce027
parente6ba1800832f8e9e3891c251fd0ed1a9208cd13c
[project @ 2001-05-22 19:07:39 by sof]
Added the -h (header) option; it prefixes the unlit'ed output with a pair
of line pragmas, e.g.,

  foo$ unlit -h foo.lhs foo.lhs - | head -3
  # 1 "foo.lhs"
  {-# LINE 1 "foo.lhs" #-}
  module Foo where
  foo$

Using -h saves the main user of 'unlit', GHC, from having to do the
prepending of line pragmas via shellular magic. (=> GHC is able to
drop the dependency on there being a UNIX-like shell underneath when
using System.system).
ghc/utils/unlit/unlit.c