[GHC] #13551: Support DEPRECATED and WARNING pragmas on Template Haskell

#13551: Support DEPRECATED and WARNING pragmas on Template Haskell -------------------------------------+------------------------------------- Reporter: utdemir | Owner: (none) Type: feature | Status: new request | Priority: low | Milestone: Component: Template | Version: 8.0.1 Haskell | Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- I'm writing TH function from some JSON spec to Haskell data structures. Some fields are marked as deprecated in the spec, therefore I want to mark the accessors to those fields with DEPRECATED pragma, but as far as I can see, TH does not support this. I'm aware that module level DEPRECATED pragma is impossible in TH, but I still want to be able to tag top-level attributes as DEPRECATED. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13551 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13551: Support DEPRECATED and WARNING pragmas on Template Haskell -------------------------------------+------------------------------------- Reporter: utdemir | Owner: (none) Type: feature request | Status: new Priority: low | Milestone: Component: Template Haskell | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by utdemir): Just to have some fun, I will try to implement this myself. It will be the first time I'm trying to modify GHC and I am not sure if I will succeed. I plan to send a patch within this week. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13551#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13551: Support DEPRECATED and WARNING pragmas on Template Haskell -------------------------------------+------------------------------------- Reporter: utdemir | Owner: (none) Type: feature request | Status: new Priority: low | Milestone: Component: Template Haskell | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): Yay, great! Let me know if you get stuck. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13551#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC