Skip to content
Snippets Groups Projects
  1. Feb 08, 2022
  2. Feb 07, 2022
  3. Feb 06, 2022
  4. Feb 05, 2022
    • Simon Peyton Jones's avatar
      Improve errors for non-existent labels · 6af8e71e
      Simon Peyton Jones authored and Marge Bot's avatar Marge Bot committed
      This patch fixes #17469, by improving matters when you use
      non-existent field names in a record construction:
         data T = MkT { x :: Int }
         f v = MkT { y = 3 }
      
      The check is now made in the renamer, in GHC.Rename.Env.lookupRecFieldOcc.
      
      That in turn led to a spurious error in T9975a, which is fixed by
      making GHC.Rename.Names.extendGlobalRdrEnvRn fail fast if it finds
      duplicate bindings.  See Note [Fail fast on duplicate definitions]
      in that module for more details.
      
      This patch was originated and worked on by Alex D (@nineonine)
      6af8e71e
    • Simon Peyton Jones's avatar
      Add a missing restoreLclEnv · bf495f72
      Simon Peyton Jones authored and Marge Bot's avatar Marge Bot committed
      The commit
      
        commit 18df4013
        Date:   Sat Jan 22 01:12:30 2022 +0000
      
          Define and use restoreLclEnv
      
      omitted to change one setLclEnv to restoreLclEnv, namely
      the one in GHC.Tc.Errors.warnRedundantConstraints.
      
      This new commit fixes the omission.
      bf495f72
    • Simon Peyton Jones's avatar
      Add Outputable instance for Messages · a5c7068c
      Simon Peyton Jones authored and Marge Bot's avatar Marge Bot committed
      c.f. #20980
      a5c7068c
    • Alex D's avatar
      Fix unsound behavior of unlifted datatypes in ghci (#20194) · 88480e55
      Alex D authored and Marge Bot's avatar Marge Bot committed
      Previously, directly calling a function that pattern matches on an
      unlifted data type which has at least two constructors in GHCi resulted
       in a segfault.
      
      This happened due to unaccounted return frame info table pointer. The fix is
      to pop the above mentioned frame info table pointer when unlifted things are
      returned. See Note [Popping return frame for unlifted things]
      
      authors: bgamari, nineonine
      88480e55
  5. Feb 04, 2022
Loading