[GHC] #15360: Template Haskell splicing drops lots of type arguments

#15360: Template Haskell splicing drops lots of type arguments -------------------------------------+------------------------------------- Reporter: goldfire | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Template | Version: 8.4.3 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: -------------------------------------+------------------------------------- The conversion functions (in the `Convert` module) drop type arguments in various places. Here are two examples: {{{ data T a b c = Mk a b c bar :: $( return $ AppT (InfixT (ConT ''Int) ''T (ConT ''Bool)) (ConT ''Double) ) bar = Mk 5 True 3.14 }}} This correct code leads to an error {{{ Expecting one more argument to ‘T Int Bool’ }}} because the `Double` is forgotten. Similarly, {{{ baz :: $( return $ AppT (ParensT (ConT ''Maybe)) (ConT ''Int) ) baz = Just 5 }}} fails because `baz :: (Maybe)` isn't valid. On the other hand, {{{ frob :: forall (a :: $( [t| * Int |] )). a -> a frob x = x }}} is spuriously accepted, because GHC has forgotten about the `Int` argument. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15360 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15360: Template Haskell splicing drops lots of type arguments -------------------------------------+------------------------------------- Reporter: goldfire | Owner: mnguyen Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Template Haskell | Version: 8.4.3 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: | -------------------------------------+------------------------------------- Changes (by mnguyen): * owner: (none) => mnguyen -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15360#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15360: Template Haskell splicing drops lots of type arguments -------------------------------------+------------------------------------- Reporter: goldfire | Owner: mnguyen Type: bug | Status: patch Priority: normal | Milestone: 8.8.1 Component: Template Haskell | Version: 8.4.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D5188 Wiki Page: | -------------------------------------+------------------------------------- Changes (by harpocrates): * status: new => patch * differential: => Phab:D5188 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15360#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15360: Template Haskell splicing drops lots of type arguments
-------------------------------------+-------------------------------------
Reporter: goldfire | Owner: mnguyen
Type: bug | Status: patch
Priority: normal | Milestone: 8.8.1
Component: Template Haskell | Version: 8.4.3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D5188
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ryan Scott

#15360: Template Haskell splicing drops lots of type arguments -------------------------------------+------------------------------------- Reporter: goldfire | Owner: mnguyen Type: bug | Status: closed Priority: normal | Milestone: 8.8.1 Component: Template Haskell | Version: 8.4.3 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: th/T15360a, | th/T15360b Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D5188 Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * status: patch => closed * testcase: => th/T15360a, th/T15360b * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15360#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15360: Template Haskell splicing drops lots of type arguments
-------------------------------------+-------------------------------------
Reporter: goldfire | Owner: mnguyen
Type: bug | Status: closed
Priority: normal | Milestone: 8.8.1
Component: Template Haskell | Version: 8.4.3
Resolution: fixed | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case: th/T15360a,
| th/T15360b
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D5188
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Richard Eisenberg
participants (1)
-
GHC