Skip to content
  • Simon Peyton Jones's avatar
    Be willing to parse {-# UNPACK #-} without '!' · deec5b74
    Simon Peyton Jones authored
    This change gives a more helpful error message when the
    user says    data T = MkT {-# UNPACK #-} Int
    which should have a strictness '!' as well. Rather than
    just a parse error, we get
    
      T7562.hs:3:14: Warning:
        UNPACK pragma lacks '!' on the first argument of `MkT'
    
    Fixes Trac #7562
    deec5b74