Ticket #6162 (closed feature request: wontfix)

Opened 11 months ago

Last modified 11 months ago

defer-type-errors + unsafeCoerce

Reported by: guest Owned by:
Priority: normal Milestone:
Component: Compiler Version: 7.5
Keywords: defer-type-errors Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

When evidence of a ~ b is missing, -fdefer-type-errors uses error to coerce a to b. It would nice to allow to use unsafeCoerce instead; for example ' ' :: Int would give under favourable conditions 32.

Change History

Changed 11 months ago by simonpj

  • difficulty set to Unknown

But under unfavourable conditions you get a segmentation fault! The whole point of -fdefer-type-errors is that you get the same guarantees about lack of seg-faults and memory safety for type in-correct programs that you get for type-correct cones. As  the paper discusses. So I don't propose to change this.

Simon

Changed 11 months ago by simonpj

  • status changed from new to closed
  • resolution set to wontfix
Note: See TracTickets for help on using tickets.