Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
Found by codespell
  • Loading branch information
Moiman committed Mar 30, 2023
1 parent 3fd6b22 commit f6c6ce7
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Additional packages in this repository:
* [chunked-data](https://github.com/snoyberg/mono-traversable/tree/master/chunked-data#readme),
providing typeclasses for dealing with various chunked data representations
* [mutable-containers](https://github.com/snoyberg/mono-traversable/tree/master/mutable-containers#readme),
abstactions and concrete implementations of mutable containers
abstractions and concrete implementations of mutable containers
* [conduit-combinators](https://github.com/snoyberg/mono-traversable/tree/master/conduit-combinators#readme),
commonly used conduit functions, for both chunked and unchunked data
* [classy-prelude](https://github.com/snoyberg/mono-traversable/tree/master/classy-prelude#readme),
Expand Down
2 changes: 1 addition & 1 deletion classy-prelude/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## 1.5.0.1

* Export a compatiblity shim for `parseTime` as it has been removed in `time-1.10`.
* Export a compatibility shim for `parseTime` as it has been removed in `time-1.10`.
See <https://hackage.haskell.org/package/time-1.12/changelog>

## 1.5.0
Expand Down
2 changes: 1 addition & 1 deletion mono-traversable/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ A new MonoFoldableEq class that takes `elem` and `notElem` from `EqSequence`.
`EqSequence` now inherits from `MonoFoldableEq`.

For most users that do not define instances this should not be a breaking change.
However, any instance of `EqSequence` now needs to definie `MonoFoldableEq`.
However, any instance of `EqSequence` now needs to define `MonoFoldableEq`.


## 0.7.0
Expand Down
2 changes: 1 addition & 1 deletion mono-traversable/src/Data/MonoTraversable.hs
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ class MonoFoldable mono where
-- Note: this is a partial function. On an empty 'MonoFoldable', it will
-- throw an exception.
--
-- /See 'Data.NonNull.maximiumBy' from "Data.NonNull" for a total version of this function./
-- /See 'Data.NonNull.maximumBy' from "Data.NonNull" for a total version of this function./
maximumByEx :: (Element mono -> Element mono -> Ordering) -> mono -> Element mono
maximumByEx f =
ofoldl1Ex' go
Expand Down
4 changes: 2 additions & 2 deletions mono-traversable/src/Data/NonNull.hs
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ toMinList = fromNonEmpty
--
-- * if you don't need to cons, use 'fromNullable' or 'nonNull' if you can create your structure in one go.
-- * if you need to cons, you might be able to start off with an efficient data structure such as a 'NonEmpty' List.
-- 'fronNonEmpty' will convert that to your data structure using the structure's fromList function.
-- 'fromNonEmpty' will convert that to your data structure using the structure's fromList function.
ncons :: SemiSequence seq => Element seq -> seq -> NonNull seq
ncons x xs = nonNull $ cons x xs

-- | Extract the first element of a sequnce and the rest of the non-null sequence if it exists.
-- | Extract the first element of a sequence and the rest of the non-null sequence if it exists.
nuncons :: IsSequence seq => NonNull seq -> (Element seq, Maybe (NonNull seq))
nuncons xs =
second fromNullable
Expand Down
6 changes: 3 additions & 3 deletions mono-traversable/src/Data/Sequences.hs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import Data.Word (Word8)
-- | 'SemiSequence' was created to share code between 'IsSequence' and 'NonNull'.
--
-- @Semi@ means 'SemiGroup'
-- A 'SemiSequence' can accomodate a 'SemiGroup' such as 'NonEmpty' or 'NonNull'
-- A 'SemiSequence' can accommodate a 'SemiGroup' such as 'NonEmpty' or 'NonNull'
-- A Monoid should be able to fill out 'IsSequence'.
--
-- 'SemiSequence' operations maintain the same type because they all maintain the same number of elements or increase them.
Expand Down Expand Up @@ -151,7 +151,7 @@ class (Monoid seq, MonoTraversable seq, SemiSequence seq, MonoPointed seq) => Is
lengthIndex :: seq -> Index seq;
lengthIndex = fromIntegral . olength64;

-- below functions change type fron the perspective of NonEmpty
-- below functions change type from the perspective of NonEmpty

-- | 'break' applies a predicate to a sequence, and returns a tuple where
-- the first element is the longest prefix (possibly empty) of elements that
Expand Down Expand Up @@ -1477,7 +1477,7 @@ class (IsSequence t, IsString t, Element t ~ Char) => Textual t where
-- @
words :: t -> [t]

-- | Join a list of textual sequences using seperating spaces.
-- | Join a list of textual sequences using separating spaces.
--
-- @
-- > 'unwords' ["abc","def","ghi"]
Expand Down
2 changes: 1 addition & 1 deletion mutable-containers/mutable-containers.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cabal-version: 1.12

name: mutable-containers
version: 0.3.4.1
synopsis: Abstactions and concrete implementations of mutable containers
synopsis: Abstractions and concrete implementations of mutable containers
description: See docs and README at <http://www.stackage.org/package/mutable-containers>
category: Data
homepage: https://github.com/snoyberg/mono-traversable#readme
Expand Down
2 changes: 1 addition & 1 deletion mutable-containers/package.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: mutable-containers
version: 0.3.4.1
synopsis: Abstactions and concrete implementations of mutable containers
synopsis: Abstractions and concrete implementations of mutable containers
description: See docs and README at <http://www.stackage.org/package/mutable-containers>
category: Data
author: Michael Snoyman
Expand Down

0 comments on commit f6c6ce7

Please sign in to comment.