[GHC] #1491: Extension RecordWildCards is broken
GHC
trac at galois.com
Wed Jul 4 08:15:36 EDT 2007
#1491: Extension RecordWildCards is broken
-----------------------+----------------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.7
Severity: normal | Keywords:
Difficulty: Unknown | Os: Windows
Testcase: | Architecture: Unknown
-----------------------+----------------------------------------------------
The -XRecordWildCards extension is broken (unlike the patch I sent :)).
Try these modules:
{{{
module M1 where
data T = T { a :: Int }
module M2 where
import M1
f T{..} = a + 1
}}}
Compiling these gives
{{{
ghc -XRecordWildCards --make M2.hs
[1 of 2] Compiling M1 ( M1.hs, M1.o )
[2 of 2] Compiling M2 ( M2.hs, M2.o )
M2.hs:4:2: Not in scope: `a'
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1491>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
-------------- next part --------------
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs at haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
More information about the Glasgow-haskell-bugs
mailing list