[add --print-hsc-options option to jhc
John Meacham <john@repetae.net>**20090218124559
 Ignore-this: 40b9055b3a4e599bda630f3cfbdaa958
] hunk ./Main.hs 69
+import qualified Version.Config as VC
hunk ./Main.hs 114
-        ShowHo ho     -> dumpHoFile ho
-        Version       -> putStrLn versionString
-        DependencyTree -> doDependency (optArgs o)
-        VersionCtx    -> putStrLn (versionString ++ versionContext)
-        _             -> processFiles  (optArgs o)
+        ShowHo ho       -> dumpHoFile ho
+        Version         -> putStrLn versionString
+        PrintHscOptions -> putStrLn $ "-I" ++ VC.datadir ++ "/" ++ VC.package ++ "-" ++ VC.shortVersion ++ "/include"
+        DependencyTree  -> doDependency (optArgs o)
+        VersionCtx      -> putStrLn (versionString ++ versionContext)
+        _               -> processFiles  (optArgs o)
hunk ./Makefile.am 67
+	$(INSTALL) -d $(DESTDIR)$(datadir)/@PACKAGE@-@SHORTVERSION@/include
hunk ./Makefile.am 72
+	$(INSTALL_DATA) "$(srcdir)/data/HsFFI.h" $(DESTDIR)$(datadir)/@PACKAGE@-@SHORTVERSION@/include ;
hunk ./Makefile.am 79
+	rm -f -- "$(DESTDIR)$(datadir)/@PACKAGE@-@SHORTVERSION@/include/HsFFI.h" ;
hunk ./Options.hs 54
+          | PrintHscOptions -- ^ Print options for hsc2hs
hunk ./Options.hs 148
-    , Option ['C'] []            (NoArg  (optMode_s CompileHoGrin))    "Typecheck, compile ho and grin."
-    , Option ['c'] []            (NoArg  (optMode_s CompileHo))        "Typecheck and compile ho."
-    , Option []    ["interpret"] (NoArg  (optMode_s Interpret))        "interpret."
-    , Option ['k'] ["keepgoing"] (NoArg  (optKeepGoing_s True))        "keep going on errors."
-    , Option []    ["width"]     (ReqArg (optColumns_s . read) "COLUMNS") "width of screen for debugging output."
-    , Option []    ["main"]      (ReqArg (optMainFunc_s . Just . (,) False) "Main.main")  "main entry point."
-    , Option ['m'] ["arch"]      (ReqArg (optArch_s . Just ) "arch")            "target architecture."
-    , Option []    ["entry"]     (ReqArg (optMainFunc_s . Just . (,) True)  "<expr>")  "main entry point, showable expression."
+    , Option ['C'] []            (NoArg  (optMode_s CompileHoGrin))    "Typecheck, compile ho and grin"
+    , Option ['c'] []            (NoArg  (optMode_s CompileHo))        "Typecheck and compile ho"
+    , Option []    ["interpret"] (NoArg  (optMode_s Interpret))        "interpret"
+    , Option ['k'] ["keepgoing"] (NoArg  (optKeepGoing_s True))        "keep going on errors"
+    , Option []    ["width"]     (ReqArg (optColumns_s . read) "COLUMNS") "width of screen for debugging output"
+    , Option []    ["main"]      (ReqArg (optMainFunc_s . Just . (,) False) "Main.main")  "main entry point"
+    , Option ['m'] ["arch"]      (ReqArg (optArch_s . Just ) "arch")            "target architecture"
+    , Option []    ["entry"]     (ReqArg (optMainFunc_s . Just . (,) True)  "<expr>")  "main entry point, showable expression"
hunk ./Options.hs 161
-    , Option ['L'] []            (ReqArg (optHlPath_u . idu) "path")   "Look for haskell libraries in the given directory."
+    , Option ['L'] []            (ReqArg (optHlPath_u . idu) "path")   "Look for haskell libraries in the given directory"
hunk ./Options.hs 171
-    , Option []    ["no-follow-deps"] (NoArg  (optFollowDeps_s False)) "Don't follow depencies not listed on command line."
-    , Option []    ["list-libraries"] (NoArg  (optMode_s ListLibraries)) "List of installed libraries."
+    , Option []    ["no-follow-deps"] (NoArg  (optFollowDeps_s False)) "Don't follow depencies not listed on command line"
+    , Option []    ["list-libraries"] (NoArg  (optMode_s ListLibraries)) "List of installed libraries"
+    , Option []    ["print-hsc-options"] (NoArg (optMode_s PrintHscOptions)) "print options to pass to hsc2hs"
hunk ./jhc.spec.in 39
+%{_datadir}/@PACKAGE@-@SHORTVERSION@/include/HsFFI.h