diff options
| author | Gabor Greif <ggreif@gmail.com> | 2012-11-16 11:26:50 +0100 |
|---|---|---|
| committer | Gabor Greif <ggreif@gmail.com> | 2012-11-16 11:26:50 +0100 |
| commit | 6e4f6c624fcd72dca11d7856f1a1914a01c22718 (patch) | |
| tree | d20cab8f39107c2bf9e4a7ce16b551c23463ff71 | |
| parent | fb508470f62ec8d6fb0920a82c6174ea853887bc (diff) | |
| download | haskell-6e4f6c624fcd72dca11d7856f1a1914a01c22718.tar.gz | |
typos in comments
| -rw-r--r-- | compiler/coreSyn/CoreSyn.lhs | 2 | ||||
| -rw-r--r-- | compiler/typecheck/TcInstDcls.lhs | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/compiler/coreSyn/CoreSyn.lhs b/compiler/coreSyn/CoreSyn.lhs index 2fb5aafd61..711c14895a 100644 --- a/compiler/coreSyn/CoreSyn.lhs +++ b/compiler/coreSyn/CoreSyn.lhs @@ -464,7 +464,7 @@ data Tickish id = -- cannot discard a tick, and the compiler should preserve the number -- of ticks as far as possible. -- --- Hwever, we stil allow the simplifier to increase or decrease +-- However, we still allow the simplifier to increase or decrease -- sharing, so in practice the actual number of ticks may vary, except -- that we never change the value from zero to non-zero or vice versa. -- diff --git a/compiler/typecheck/TcInstDcls.lhs b/compiler/typecheck/TcInstDcls.lhs index b4a27b5376..236b834eb6 100644 --- a/compiler/typecheck/TcInstDcls.lhs +++ b/compiler/typecheck/TcInstDcls.lhs @@ -189,7 +189,7 @@ Instead we use a cunning trick. iff its argument satisfies exprIsConApp_maybe. This is done in MkId mkDictSelId - * We make 'df' CONLIKE, so that shared uses stil match; eg + * We make 'df' CONLIKE, so that shared uses still match; eg let d = df d1 d2 in ...(op2 d)...(op1 d)... @@ -246,7 +246,7 @@ careful when we have op = ... then we'll get an INLINE pragma on $cop_list but it's important that $cop_list only inlines when it's applied to *two* arguments (the -dictionary and the list argument). So we nust not eta-expand $df +dictionary and the list argument). So we must not eta-expand $df above. We ensure that this doesn't happen by putting an INLINE pragma on the dfun itself; after all, it ends up being just a cast. @@ -309,7 +309,7 @@ instance. Why is this justified? Because we generate a (C [a]) constraint in a context in which 'a' cannot be instantiated to anything that matches -other overlapping instances, or else we would not be excecuting this +other overlapping instances, or else we would not be executing this version of op1 in the first place. It might even be a bit disguised: @@ -323,7 +323,7 @@ It might even be a bit disguised: Precisely this is used in package 'regex-base', module Context.hs. See the overlapping instances for RegexContext, and the fact that they call 'nullFail' just like the example above. The DoCon package also -does the same thing; it shows up in module Fraction.hs +does the same thing; it shows up in module Fraction.hs. Conclusion: when typechecking the methods in a C [a] instance, we want to treat the 'a' as an *existential* type variable, in the sense described |
