diff options
author | Gabor Greif <ggreif@gmail.com> | 2017-03-06 16:55:42 +0100 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2017-03-06 16:55:42 +0100 |
commit | 749740f9c3cb25ee95e04a21c1ef73e1bf96afb1 (patch) | |
tree | c014979cef6e5f54378df7715b50548a95ef5ece /libraries | |
parent | fb9ae288088a3eabc4e1bb4e86fa473a3881d2e2 (diff) | |
download | haskell-749740f9c3cb25ee95e04a21c1ef73e1bf96afb1.tar.gz |
Typos in comments and manual
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/base/Control/Monad.hs | 2 | ||||
-rw-r--r-- | libraries/base/GHC/Generics.hs | 2 | ||||
-rw-r--r-- | libraries/base/Text/Printf.hs | 2 | ||||
-rw-r--r-- | libraries/ghc-compact/GHC/Compact.hs | 4 | ||||
-rw-r--r-- | libraries/ghc-prim/GHC/CString.hs | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/libraries/base/Control/Monad.hs b/libraries/base/Control/Monad.hs index 131cc2800f..6a474037c0 100644 --- a/libraries/base/Control/Monad.hs +++ b/libraries/base/Control/Monad.hs @@ -117,7 +117,7 @@ f >=> g = \x -> f x >>= g forever :: (Applicative f) => f a -> f b {-# INLINE forever #-} forever a = let a' = a *> a' in a' --- Use explicit sharing here, as it is prevents a space leak regardless of +-- Use explicit sharing here, as it prevents a space leak regardless of -- optimizations. -- ----------------------------------------------------------------------------- diff --git a/libraries/base/GHC/Generics.hs b/libraries/base/GHC/Generics.hs index 4282b7c83b..cc85a1dfba 100644 --- a/libraries/base/GHC/Generics.hs +++ b/libraries/base/GHC/Generics.hs @@ -1176,7 +1176,7 @@ class Generic1 (f :: k -> *) where -- * In @MetaCons n f s@, @n@ is the constructor's name, @f@ is its fixity, -- and @s@ is @'True@ if the constructor contains record selectors. -- --- * In @MetaSel mn su ss ds@, if the field is uses record syntax, then @mn@ is +-- * In @MetaSel mn su ss ds@, if the field uses record syntax, then @mn@ is -- 'Just' the record name. Otherwise, @mn@ is 'Nothing'. @su@ and @ss@ are -- the field's unpackedness and strictness annotations, and @ds@ is the -- strictness that GHC infers for the field. diff --git a/libraries/base/Text/Printf.hs b/libraries/base/Text/Printf.hs index 7902d5eedc..0914aa7b5c 100644 --- a/libraries/base/Text/Printf.hs +++ b/libraries/base/Text/Printf.hs @@ -27,7 +27,7 @@ module Text.Printf( -- -- | This 'printf' can be extended to format types -- other than those provided for by default. This --- is done by instancing 'PrintfArg' and providing +-- is done by instantiating 'PrintfArg' and providing -- a 'formatArg' for the type. It is possible to -- provide a 'parseFormat' to process type-specific -- modifiers, but the default instance is usually diff --git a/libraries/ghc-compact/GHC/Compact.hs b/libraries/ghc-compact/GHC/Compact.hs index e3efaf24bc..d9581a521e 100644 --- a/libraries/ghc-compact/GHC/Compact.hs +++ b/libraries/ghc-compact/GHC/Compact.hs @@ -30,7 +30,7 @@ -- dump the memory to disk and/or send it over the network. -- For applications that are not bandwidth bound (GHC's heap -- representation can be as much of a x4 expansion over a --- binary serialization), this can lead to substantial speed ups. +-- binary serialization), this can lead to substantial speedups. -- -- For example, suppose you have a function @loadBigStruct :: IO BigStruct@, -- which loads a large data structure from the file system. You can "compact" @@ -106,7 +106,7 @@ import GHC.Types -- data, but it is perfomed only once. However, because -- "Data.Compact.compact" does not stop-the-world, retaining internal -- sharing during the compaction process is very costly. The user --- can choose wether to 'compact' or 'compactWithSharing'. +-- can choose whether to 'compact' or 'compactWithSharing'. -- -- When you have a @'Compact' a@, you can get a pointer to the actual object -- in the region using "Data.Compact.getCompact". The 'Compact' type diff --git a/libraries/ghc-prim/GHC/CString.hs b/libraries/ghc-prim/GHC/CString.hs index 2adb13d8a0..cdda2db3ab 100644 --- a/libraries/ghc-prim/GHC/CString.hs +++ b/libraries/ghc-prim/GHC/CString.hs @@ -63,7 +63,7 @@ Moreover, we want to make it CONLIKE, so that: E.g. the eqString rule in PrelRules eqString (unpackCString# (Lit s1)) (unpackCString# (Lit s2) = s1==s2 -* exprIsConApp_maybe will see the string when we ahve +* exprIsConApp_maybe will see the string when we have let x = unpackCString# "foo"# ...(case x of algs)... |