
#8656: Identical functions in Templeta Haskell -------------------------------------------+------------------------------- Reporter: jstolarek | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Template Haskell | Version: 7.7 Keywords: | Operating System: Architecture: Unknown/Multiple | Unknown/Multiple Difficulty: Easy (less than 1 hour) | Type of failure: Blocked By: | None/Unknown Related Tickets: | Test Case: | Blocking: -------------------------------------------+------------------------------- I noticed that module `Language.Haskell.TH.Lib` in template-haskell library contains duplicate functions: {{{ global :: Name -> ExpQ global s = return (VarE s) varE :: Name -> ExpQ varE s = return (VarE s) }}} If this is intended it should be documented why it is so and I think it would be good to express one function in terms of another. If this is accidental we should just get rid of one function. I never used TH so I have no idea whether this is done on purpose or not, thus leaving it to devs more experienced with TH. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8656 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler