diff options
author | Gabor Greif <ggreif@gmail.com> | 2017-03-14 12:38:50 +0100 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2017-03-14 12:38:50 +0100 |
commit | 50512c6b2bd878f0be5e1c7b85cadf22094aaa5a (patch) | |
tree | 42d5a0313cf414f6706ebf699faf601f1c344997 /libraries | |
parent | 08e73ccf4c75a7d7a8b8167d2ccf8bc505fe1130 (diff) | |
download | haskell-50512c6b2bd878f0be5e1c7b85cadf22094aaa5a.tar.gz |
Typos in manual and comments
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/base/GHC/Base.hs | 4 | ||||
-rw-r--r-- | libraries/ghc-compact/GHC/Compact.hs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libraries/base/GHC/Base.hs b/libraries/base/GHC/Base.hs index 3c3dbd3c7b..ffcd7ff2a0 100644 --- a/libraries/base/GHC/Base.hs +++ b/libraries/base/GHC/Base.hs @@ -974,14 +974,14 @@ The rules for map work like this. * The "mapFB" rule optimises compositions of map -* The "mapFB/id" rule get rids of 'map id' calls. +* The "mapFB/id" rule gets rid of 'map id' calls. You might think that (mapFB c id) will turn into c simply when mapFB is inlined; but before that happens the "mapList" rule turns (foldr (mapFB (:) id) [] a back into map id - Which is not very cleveer. + Which is not very clever. * Any similarity to the Functor laws for [] is expected. -} diff --git a/libraries/ghc-compact/GHC/Compact.hs b/libraries/ghc-compact/GHC/Compact.hs index d9581a521e..0464bc61f9 100644 --- a/libraries/ghc-compact/GHC/Compact.hs +++ b/libraries/ghc-compact/GHC/Compact.hs @@ -103,7 +103,7 @@ import GHC.Types -- separate copy of the data. -- -- The cost of compaction is similar to the cost of GC for the same --- data, but it is perfomed only once. However, because +-- data, but it is performed 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 whether to 'compact' or 'compactWithSharing'. |