Add warning about auto-generated files

Ignore-this: 848d57a87bb839738cb055ff578b4784

darcs-hash:20090829121624-a4fee-b98f311f8e3358d3185d8cf9a796458ef234e2a7
This commit is contained in:
Henning Guenther 2009-08-29 05:16:24 -07:00
parent 98ece426d9
commit 56867f5768
2 changed files with 4 additions and 2 deletions

View File

@ -104,7 +104,8 @@ preprocessMapping tp src trg mods name = do
Nothing -> Nothing
Just rc -> Just (rc,fromIntegral i::Word16)) trans)-}
writeFile trg $ unlines $
["{-# LANGUAGE MagicHash,DeriveDataTypeable #-}"
["{- This file has been auto-generated. Do not edit it. -}"
,"{-# LANGUAGE MagicHash,DeriveDataTypeable #-}"
,"module "++mod++"("++name++"(..)) where"
,""
,"import Data.Encoding.Base"

View File

@ -41,7 +41,8 @@ createModuleFromFile (sbase,sfile) (tbase,tfile) = do
[(min,max-min+1) | min <- bmin | max <- bmax]
| (st,end,bfirst,blast,bmin,bmax) <- ranges xml ]
writeFile (tbase</>tfile) $ unlines $
["{-# LANGUAGE MagicHash,DeriveDataTypeable #-}"]++
["{- This file has been auto-generated. Do not edit it. -}"
,"{-# LANGUAGE MagicHash,DeriveDataTypeable #-}"]++
(case description xml of
Nothing -> []
Just str -> ["{- | "++str++" -}"]) ++