
#8180: Template Haskell now requires -dynamic or -dynamic-too -------------------------------------+------------------------------------ Reporter: goldfire | Owner: Type: bug | Status: new Priority: highest | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by igloo): Replying to [comment:1 simonmar]:
And if you use `-dynamic-too` with `-o`, you also get this bogus-looking error:
{{{ '/home/simon/code-all/work/ghc-validate/inplace/bin/ghc-stage2' -fforce- recomp -dcore-lint -dcmm-lint -dno-debug-output -no-user-package-db -rtsopts -fno-ghci-history --make -o TH_spliceE5 TH_spliceE5.hs -v0 -XTemplateHaskell -package template-haskell -dynamic-too <command line>: With -dynamic-too, must give -dyno iff giving -o }}}
The rationale for the error is that {{{ ghc -dynamic-too Foo.hs -o Some.Filename }}} says "compile both the vanilla and dynamic ways, and put the result in `Some.Filename`, which doesn't make much sense. Then again, I suppose the `.hi` filename is already generated from the output filename, so perhaps it would be more consistent to generate the dynamic filenames too. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8180#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler