Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed Interact.hs to handle the cpp macros in UTF8.

  • Loading branch information...
commit 492d5e91d589b68dc61ce2927c7519ecc48ec3db 1 parent fecdd80
@jgm authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Interact.hs
View
2  Interact.hs
@@ -20,7 +20,7 @@ main = do
let setupConfig = read $ unlines $ drop 1 $ lines setupConfig'
let (Just (ComponentLocalBuildInfo { componentPackageDeps = deps })) = libraryConfig setupConfig
let packageSpecs = map (toPackageSpec . snd) deps
- let args = ["-cpp","-i../dist/build/autogen"] ++ concatMap (\p -> ["-package",p]) packageSpecs
+ let args = ["-optP-include", "-optP../dist/build/autogen/cabal_macros.h","-cpp","-I../dist/build/autogen","-i../dist/build/autogen"] ++ concatMap (\p -> ["-package",p]) packageSpecs
print args
ph <- runProcess "ghci" args (Just "src") Nothing Nothing Nothing Nothing
waitForProcess ph
Please sign in to comment.
Something went wrong with that request. Please try again.