summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-09-05 12:21:09 +0000
committerIan Lynagh <igloo@earth.li>2008-09-05 12:21:09 +0000
commit0dffbed453a400f0df66d68e3e64184c1e4d940d (patch)
tree66fd2fb3f837306d55996ab5a9baed4e97ad34c3 /utils
parenta4f49e905541846b236ecafd21307f57fe15bc44 (diff)
downloadhaskell-0dffbed453a400f0df66d68e3e64184c1e4d940d.tar.gz
Move the "This is a generated file" to the top of GHC.Prim
Diffstat (limited to 'utils')
-rw-r--r--utils/genprimopcode/Main.hs14
1 files changed, 7 insertions, 7 deletions
diff --git a/utils/genprimopcode/Main.hs b/utils/genprimopcode/Main.hs
index d5279b70ba..760ebf4a0d 100644
--- a/utils/genprimopcode/Main.hs
+++ b/utils/genprimopcode/Main.hs
@@ -110,7 +110,13 @@ known_args
gen_hs_source :: Info -> String
gen_hs_source (Info defaults entries) =
- "-----------------------------------------------------------------------------\n"
+ "{-\n"
+ ++ "This is a generated file (generated by genprimopcode).\n"
+ ++ "It is not code to actually be used. Its only purpose is to be\n"
+ ++ "consumed by haddock.\n"
+ ++ "-}\n"
+ ++ "\n"
+ ++ "-----------------------------------------------------------------------------\n"
++ "-- |\n"
++ "-- Module : GHC.Prim\n"
++ "-- \n"
@@ -125,12 +131,6 @@ gen_hs_source (Info defaults entries) =
++ unlines (map (("\t" ++) . hdr) entries)
++ ") where\n"
++ "\n"
- ++ "{-\n"
- ++ "This is a generated file (generated by genprimopcode).\n"
- ++ "It is not code to actually be used. Its only purpose is to be\n"
- ++ "consumed by haddock.\n"
- ++ "-}\n"
- ++ "\n"
++ "import GHC.Bool\n"
++ "\n"
++ "{-\n"