packages feed

ghc-exactprint-1.14.0.0: tests/examples/pre-ghc910/overloadedrecfldsfail04.hs

-- Test that importing an overloaded field and using it as a selector
-- leads to a suitable error

{-# LANGUAGE DuplicateRecordFields #-}

import OverloadedRecFldsFail04_A as I

-- Qualified overloaded fields are not allowed here
x' = I.x

-- But this is okay
f e = e { I.x = True, I.y = False }

main = return ()