Skip to content

Can't Hide Field When DuplicateRecordFields Is Enabled

A.hs fails to compile when DuplicateRecordFields is enabled in B.hs.

A.hs

module A where

import           B hiding (duplicateName)

test = X duplicateName

duplicateName = 5

B.hs

{-# LANGUAGE DuplicateRecordFields #-}

module B where

data X = X {
    duplicateName :: Int
}
Trac metadata
Trac field Value
Version 8.0.2
Type Bug
TypeOfFailure OtherFailure
Priority lowest
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information