
#8180: Template Haskell now requires -dynamic or -dynamic-too -------------------------------------+------------------------------------ Reporter: goldfire | Owner: thoughtpolice 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 thoughtpolice): I've fixed the clash between `-o` and `-dynamic-too`, so now when you say: {{{ ghc -dynamic-too Main.hs }}} the inferred file names should be appropriately generated. The rule is that if you're specifying `-o` but not `-dyno`, then the `-dyno` name should simply be the same filename, but with the dynamic object extension. (Note this doesn't affect linking executables - `-dyno` has no effect there.) I'm now looking to finish the other half (enable `-dynamic-too` if we detect `-XTemplateHaskell` during module loading,) but my first-try patch doesn't seem to work yet. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8180#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler