1. 20 Jun, 2019 10 commits
    • Ben Gamari's avatar
      users-guide: Update -Wsafe description for #16689 · fe819dd6
      Ben Gamari authored
      We no longer emit a warning when a safe module is explicitly declared as
      such.
      fe819dd6
    • Ben Gamari's avatar
      aa4891a7
    • John Ericson's avatar
      ghc-pkg needs settings file to un-hardcode target platform · d406a16a
      John Ericson authored
      This matches GHC itself getting the target platform from there.
      d406a16a
    • John Ericson's avatar
    • John Ericson's avatar
      Move 'Platform' to ghc-boot · bff2f24b
      John Ericson authored
      ghc-pkg needs to be aware of platforms so it can figure out which
      subdire within the user package db to use. This is admittedly
      roundabout, but maybe Cabal could use the same notion of a platform as
      GHC to good affect too.
      bff2f24b
    • Simon Peyton Jones's avatar
      Comments and tiny refactor · 3ae23992
      Simon Peyton Jones authored
      * Added Note [Quantified varaibles in partial type signatures]
        in TcRnTypes
      
      * Kill dVarSetElemsWellScoped; it was only called in
        one function, quantifyTyVars.  I inlined it because it
        was only scopedSort . dVarSetElems
      
      * Kill Type.tyCoVarsOfBindersWellScoped, never called.
      3ae23992
    • Simon Peyton Jones's avatar
      Fix typechecking of partial type signatures · 48fb3482
      Simon Peyton Jones authored
      Partial type sigs had grown hair.  tcHsParialSigType was
      doing lots of unnecessary work, and tcInstSig was cloning it
      unnecessarily -- and the result didn't even work: #16728.
      
      This patch cleans it all up, described by TcHsType
        Note [Checking parital type signatures]
      
      I basically just deleted code... but very carefully!
      
      Some refactoring along the way
      
      * Distinguish more explicintly between "anonymous" wildcards "_"
        and "named" wildcards "_a".  I changed the names of a number
        of functions to make this distinction much more apparent.
      
      The patch also revealed that the code in `TcExpr`
      that implements the special typing rule for `($)` was wrong.
      It called `getRuntimeRep` in a situation where where was no
      particular reason to suppose that the thing had kind `TYPE r`.
      
      This caused a crash in typecheck/should_run/T10846.
      
      The fix was easy, and actually simplifies the code in `TcExpr`
      quite a bit.  Hooray.
      48fb3482
    • Simon Peyton Jones's avatar
      Fix two places that failed the substitution invariant · 3c9b57b0
      Simon Peyton Jones authored
      The substition invariant relies on keeping the in-scope
      set in sync, and we weren't always doing so, which means that
      a DEBUG compiler crashes sometimes with an assertion failure
      
      This patch fixes a couple more cases.  Still not validate
      clean (with -DEEBUG) but closer!
      3c9b57b0
    • Roland Senn's avatar
      Fix #1620: ModBreaks.modBreaks_array not initialised · 39c758e1
      Roland Senn authored
      After a :cd command and after setting some package flags,
      GHCi unloads all loaded modules by resetting the list of targets.
      
      This patch deletes eventually defined debugger breakpoints, before GHCi resets the target list.
      
      The common code is factored out into the new function clearAllTargets.
      39c758e1
    • Ömer Sinan Ağacan's avatar
      Properly trim IdInfos of DFunIds and PatSyns in TidyPgm · 9d58554f
      Ömer Sinan Ağacan authored
      Not doing this right caused #16608. We now properly trim IdInfos of
      DFunIds and PatSyns.
      
      Some further refactoring done by SPJ.
      
      Two regression tests T16608_1 and T16608_2 added.
      
      Fixes #16608
      9d58554f
  2. 19 Jun, 2019 1 commit
  3. 18 Jun, 2019 8 commits
  4. 17 Jun, 2019 3 commits
  5. 16 Jun, 2019 18 commits