diff options
| author | Krzysztof Gogolewski <krz.gogolewski@gmail.com> | 2013-09-20 22:23:49 +0200 |
|---|---|---|
| committer | Krzysztof Gogolewski <krz.gogolewski@gmail.com> | 2013-09-20 22:23:49 +0200 |
| commit | ffa8d223a938981dedda5ee99088f35ef7cd52a4 (patch) | |
| tree | df9807f6290a167558fbc96b1293c02e826c555d | |
| parent | 2fbfa11ccfda6ce70d72ade55514f058a7a95072 (diff) | |
| download | haskell-ffa8d223a938981dedda5ee99088f35ef7cd52a4.tar.gz | |
Typos
| -rw-r--r-- | compiler/llvmGen/LlvmCodeGen/CodeGen.hs | 4 | ||||
| -rw-r--r-- | compiler/typecheck/TcHsType.lhs | 2 | ||||
| -rw-r--r-- | compiler/typecheck/TcSimplify.lhs | 2 | ||||
| -rw-r--r-- | docs/users_guide/glasgow_exts.xml | 12 |
4 files changed, 10 insertions, 10 deletions
diff --git a/compiler/llvmGen/LlvmCodeGen/CodeGen.hs b/compiler/llvmGen/LlvmCodeGen/CodeGen.hs index def9e2b81e..33107c0b68 100644 --- a/compiler/llvmGen/LlvmCodeGen/CodeGen.hs +++ b/compiler/llvmGen/LlvmCodeGen/CodeGen.hs @@ -1007,7 +1007,7 @@ genMachOp _ op [x] = case op of w | w > toWidth -> sameConv' reduce _w -> return x' - panicOp = panic $ "LLVM.CodeGen.genMachOp: non unary op encourntered" + panicOp = panic $ "LLVM.CodeGen.genMachOp: non unary op encountered" ++ "with one argument! (" ++ show op ++ ")" -- Handle GlobalRegs pointers @@ -1252,7 +1252,7 @@ genMachOp_slow opt op [x, y] = case op of else panic $ "isSMulOK: Not bit type! (" ++ showSDoc dflags (ppr word) ++ ")" - panicOp = panic $ "LLVM.CodeGen.genMachOp_slow: unary op encourntered" + panicOp = panic $ "LLVM.CodeGen.genMachOp_slow: unary op encountered" ++ "with two arguments! (" ++ show op ++ ")" -- More then two expression, invalid! diff --git a/compiler/typecheck/TcHsType.lhs b/compiler/typecheck/TcHsType.lhs index 64f5fafd09..38a4f2b37a 100644 --- a/compiler/typecheck/TcHsType.lhs +++ b/compiler/typecheck/TcHsType.lhs @@ -884,7 +884,7 @@ as if $(..blah..) :: forall k. k. In the e1 example, the context of the splice fixes kappa to *. But in the e2 example, we'll desugar the type, zonking the kind unification -variables as we go. When we encournter the unconstrained kappa, we +variables as we go. When we encounter the unconstrained kappa, we want to default it to '*', not to AnyK. diff --git a/compiler/typecheck/TcSimplify.lhs b/compiler/typecheck/TcSimplify.lhs index 0ffda048af..ca29111b76 100644 --- a/compiler/typecheck/TcSimplify.lhs +++ b/compiler/typecheck/TcSimplify.lhs @@ -220,7 +220,7 @@ simplifyInfer _top_lvl apply_mr name_taus wanteds | isEmptyWC wanteds = do { gbl_tvs <- tcGetGlobalTyVars ; qtkvs <- quantifyTyVars gbl_tvs (tyVarsOfTypes (map snd name_taus)) - ; traceTc "simplifyInfer: emtpy WC" (ppr name_taus $$ ppr qtkvs) + ; traceTc "simplifyInfer: empty WC" (ppr name_taus $$ ppr qtkvs) ; return (qtkvs, [], False, emptyTcEvBinds) } | otherwise diff --git a/docs/users_guide/glasgow_exts.xml b/docs/users_guide/glasgow_exts.xml index 4390f535ca..eb8e4d9447 100644 --- a/docs/users_guide/glasgow_exts.xml +++ b/docs/users_guide/glasgow_exts.xml @@ -430,7 +430,7 @@ Indeed, the bindings can even be recursive. <listitem><para> <literal>"foo"#</literal> has type <literal>Addr#</literal></para> </listitem> <listitem><para> <literal>3#</literal> has type <literal>Int#</literal>. In general, any Haskell integer lexeme followed by a <literal>#</literal> is an <literal>Int#</literal> literal, e.g. - <literal>-0x3A#</literal> as well as <literal>32#</literal></para>.</listitem> + <literal>-0x3A#</literal> as well as <literal>32#</literal>.</para></listitem> <listitem><para> <literal>3##</literal> has type <literal>Word#</literal>. In general, any non-negative Haskell integer lexeme followed by <literal>##</literal> is a <literal>Word#</literal>. </para> </listitem> @@ -441,14 +441,14 @@ Indeed, the bindings can even be recursive. </sect2> <sect2 id="negative-literals"> - <title>Negative Literals</title> + <title>Negative literals</title> <para> The literal <literal>-123</literal> is, according to Haskell98 and Haskell 2010, desugared as <literal>negate (fromInteger 123)</literal>. The language extension <option>-XNegativeLiterals</option> means that it is instead desugared as - <literal>fromInteger (-123)</literal>. + <literal>fromInteger (-123)</literal>. </para> <para> @@ -465,11 +465,11 @@ Indeed, the bindings can even be recursive. <para> Haskell 2010 and Haskell 98 define floating literals with the syntax <literal>1.2e6</literal>. These literals have the - type <literal>Fractional a => Fractional</literal>. + type <literal>Fractional a => a</literal>. </para> <para> - The language extension <option>-XNumLiterals</option> allows + The language extension <option>-XNumDecimals</option> allows you to also use the floating literal syntax for instances of <literal>Integral</literal>, and have values like <literal>(1.2e6 :: Num a => a)</literal> @@ -1743,7 +1743,7 @@ absurd x = case x of {} -- (B) We much prefer (B). Why? Because GHC can figure out that <literal>(True :~: False)</literal> is an empty type. So (B) has no partiality and GHC should be able to compile with <option>-fwarn-incomplete-patterns</option>. (Though the pattern match checking is not -yet clever enough to do that. +yet clever enough to do that.) On the other hand (A) looks dangerous, and GHC doesn't check to make sure that, in fact, the function can never get called. </para> |
