Changes between Version 3 and Version 6 of Ticket #8853


Ignore:
Timestamp:
Nov 7, 2014 2:47:40 PM (5 years ago)
Author:
thomie
Comment:

Reproducable with version 7.9.20140802. This ticket is listed on Status/SLPJ-Tickets.

Also reported as #2204 and #5724.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8853

    • Property Summary changed from Alarming looking warning about non-exhaustive pattern to Surprising mention of unboxed integers in pattern exhaustiveness warning
  • Ticket #8853 – Description

    v3 v6  
    22
    33{{{
    4 ~/waste$ ghc --version
    5 The Glorious Glasgow Haskell Compilation System, version 7.8.0.20140228
    64~/waste$ ghc -Wall --make AlarmingPattern.hs -fforce-recomp
    75[1 of 1] Compiling Main             ( AlarmingPattern.hs, AlarmingPattern.o )
     
    1311            (GHC.Types.I# _) (GHC.Types.I# (#x)) with #x `notElem` [0#]
    1412Linking AlarmingPattern ...
    15 ~/waste$ ./AlarmingPattern
    16 AlarmingPattern: AlarmingPattern.hs:(6,7)-(7,26): Non-exhaustive patterns in function takeFromInv
    1713}}}
     14The error message is alarming because it refers to unboxed integers, but the source code does not.