diff options
author | Gabor Greif <ggreif@gmail.com> | 2017-10-27 22:59:18 +0200 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2017-10-30 11:29:35 +0100 |
commit | 1b115b16729a3414cc1e07fb1efe7f34c990b1f0 (patch) | |
tree | a0781071b74cd57ffdc21bc3a008390d6d1f14ae /compiler | |
parent | 82bad1a9e08e7ac72aecd6e5b7bde8e828c56256 (diff) | |
download | haskell-1b115b16729a3414cc1e07fb1efe7f34c990b1f0.tar.gz |
Fix typo in accessor name
and in comments
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/deSugar/Check.hs | 6 | ||||
-rw-r--r-- | compiler/deSugar/DsBinds.hs | 2 | ||||
-rw-r--r-- | compiler/specialise/SpecConstr.hs | 2 | ||||
-rw-r--r-- | compiler/typecheck/TcType.hs | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/compiler/deSugar/Check.hs b/compiler/deSugar/Check.hs index 8fb9553ad2..d49a5c3ab8 100644 --- a/compiler/deSugar/Check.hs +++ b/compiler/deSugar/Check.hs @@ -239,10 +239,10 @@ instance Monoid Provenance where mappend = (Semi.<>) data PartialResult = PartialResult { - presultProvenence :: Provenance + presultProvenance :: Provenance -- keep track of provenance because we don't want -- to warn about redundant matches if the result - -- is contaiminated with a COMPLETE pragma + -- is contaminated with a COMPLETE pragma , presultCovered :: Covered , presultUncovered :: Uncovered , presultDivergent :: Diverged } @@ -1640,7 +1640,7 @@ force_if True pres = forces pres force_if False pres = pres set_provenance :: Provenance -> PartialResult -> PartialResult -set_provenance prov pr = pr { presultProvenence = prov } +set_provenance prov pr = pr { presultProvenance = prov } -- ---------------------------------------------------------------------------- -- * Propagation of term constraints inwards when checking nested matches diff --git a/compiler/deSugar/DsBinds.hs b/compiler/deSugar/DsBinds.hs index c01cb40000..e11f580842 100644 --- a/compiler/deSugar/DsBinds.hs +++ b/compiler/deSugar/DsBinds.hs @@ -655,7 +655,7 @@ dsSpec mb_poly_rhs (L loc (SpecPrag poly_id spec_co spec_inl)) = putSrcSpanDs loc $ do { warnDs NoReason (text "Ignoring useless SPECIALISE pragma for NOINLINE function:" <+> quotes (ppr poly_id)) - ; return Nothing } -- Function is NOINLINE, and the specialiation inherits that + ; return Nothing } -- Function is NOINLINE, and the specialisation inherits that -- See Note [Activation pragmas for SPECIALISE] | otherwise diff --git a/compiler/specialise/SpecConstr.hs b/compiler/specialise/SpecConstr.hs index cfb9b5f50c..6115a031ec 100644 --- a/compiler/specialise/SpecConstr.hs +++ b/compiler/specialise/SpecConstr.hs @@ -1811,7 +1811,7 @@ that specialisations didn't fire inside wrappers; see test simplCore/should_compile/spec-inline. So now I just use the inline-activation of the parent Id, as the -activation for the specialiation RULE, just like the main specialiser; +activation for the specialisation RULE, just like the main specialiser; This in turn means there is no point in specialising NOINLINE things, so we test for that. diff --git a/compiler/typecheck/TcType.hs b/compiler/typecheck/TcType.hs index 75e021512d..b17df0810d 100644 --- a/compiler/typecheck/TcType.hs +++ b/compiler/typecheck/TcType.hs @@ -958,7 +958,7 @@ Moreover, consider inert item: [G] b ~R f a We use anyRewritableTyVar to decide whether to kick out the inert item, on the grounds that the work item might rewrite it. Well, 'a' is certainly -free in [G] b ~R f a. But becuase the role of a type variable ('f' in +free in [G] b ~R f a. But because the role of a type variable ('f' in this case) is nominal, the work item can't actually rewrite the inert item. Moreover, if we were to kick out the inert item the exact same situation would re-occur and we end up with an infninite loop in which each kicks |