Ticket #47 (closed bug report: fixed)

Opened 6 years ago

Last modified 6 years ago

NamedFieldPuns don't work with infix record selectors

Reported by: sebf@… Owned by: nibro
Priority: major Milestone: Full code support
Component: parser Version: 0.5.6
Keywords: Cc: sebf@…

Description

When using operators as record fields these cannot be initialised using the Cons {...} syntax:

{-# LANGUAGE NamedFieldPuns #-}

data RecordWithInfixSelector = Cons { (<>) :: Int -> Int }

idRecord = Cons { (<>) = id }

Change History

Changed 6 years ago by nibro

  • status changed from new to closed
  • resolution set to fixed

This was actually due to a completely different bug, a shift-reduce conflict that I had completely misinterpreted. Now I'll have to go through the parser table to see which shift-reduce conflict that doesn't actually exist. :-)

Fixed now, case closed, thanks for reporting!

Note: See TracTickets for help on using tickets.