[GHC] #13799: -ddump-splices prints out declarations in the wrong order
GHC
ghc-devs at haskell.org
Wed Jun 7 23:00:15 UTC 2017
#13799: -ddump-splices prints out declarations in the wrong order
-------------------------------------+-------------------------------------
Reporter: RyanGlScott | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Template | Version: 8.0.1
Haskell |
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: Debugging
Unknown/Multiple | information is incorrect
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
{{{#!hs
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -ddump-splices #-}
module Bug where
$([d| data A = A
data B = B
|])
$([d| deriving instance Eq A
deriving instance Eq B
|])
}}}
{{{
GHCi, version 8.0.2: http://www.haskell.org/ghc/ :? for help
Loaded GHCi configuration from /home/rgscott/.ghci
[1 of 1] Compiling Bug ( Bug.hs, interpreted )
Bug.hs:(6,3)-(8,6): Splicing declarations
[d| data A_a13D = A_a13E
data B_a13B = B_a13C |]
======>
data A_a3IA = A_a3IB
data B_a3IC = B_a3ID
Bug.hs:(10,3)-(12,6): Splicing declarations
[d| deriving instance Eq B
deriving instance Eq A |]
======>
deriving instance Eq A
deriving instance Eq B
}}}
Notice that it printed
{{{#!hs
[d| deriving instance Eq B
deriving instance Eq A |]
}}}
instead of
{{{#!hs
[d| deriving instance Eq A
deriving instance Eq B |]
}}}
which is what I originally wrote.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13799>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list