Skip to content

Commit 2bd7963

Browse files
committed
Fix typos in comments and docs
1 parent 56baef4 commit 2bd7963

27 files changed

Lines changed: 38 additions & 38 deletions

File tree

‎benchmark/Streamly/Benchmark/Data/ParserK.hs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ sepBy1 value = withStreamK value $ \xs -> do
390390
x <- p
391391
fmap (x :) $ AP.many (sep >> p)
392392

393-
-- O(n) heap beacuse of accumulation of the list in strict IO monad?
393+
-- O(n) heap because of accumulation of the list in strict IO monad?
394394
o_n_heap_serial :: Int -> [(SpaceComplexity, Benchmark)]
395395
o_n_heap_serial value =
396396
[
@@ -412,7 +412,7 @@ o_n_heap_serial value =
412412
, (HeapO_n, benchIO "monad16" $ monad16 value)
413413
]
414414

415-
-- O(n) heap beacuse of accumulation of the list in strict IO monad?
415+
-- O(n) heap because of accumulation of the list in strict IO monad?
416416
o_1_space_recursive :: Int -> [(SpaceComplexity, Benchmark)]
417417
o_1_space_recursive value =
418418
[ (SpaceO_1, benchIO "one (recursive)" $ one value)

‎benchmark/Streamly/Benchmark/Data/Stream/Prelude/Exceptions.hs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ takeInterval :: Double -> Int -> IO ()
231231
takeInterval i value = withStream value $ drain . Stream.takeInterval i
232232

233233
-- Inspection testing is disabled for takeInterval
234-
-- Enable it when looking at it throughly
234+
-- Enable it when looking at it thoroughly
235235
#ifdef INSPECTION
236236
-- inspect $ hasNoType 'takeInterval ''SPEC
237237
-- inspect $ hasNoTypeClasses 'takeInterval
@@ -243,7 +243,7 @@ dropInterval :: Double -> Int -> IO ()
243243
dropInterval i value = withStream value $ drain . Stream.dropInterval i
244244

245245
-- Inspection testing is disabled for dropInterval
246-
-- Enable it when looking at it throughly
246+
-- Enable it when looking at it thoroughly
247247
#ifdef INSPECTION
248248
-- inspect $ hasNoTypeClasses 'dropInterval
249249
-- inspect $ 'dropInterval `hasNoType` ''D.Step

‎benchmark/Streamly/Benchmark/Data/StreamK/FromStream.hs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,7 @@ o_n_heap_transformer value =
11531153
moduleName :: String
11541154
moduleName = "Data.StreamK.FromStream"
11551155

1156-
-- Generation of StreamK using StreamD generation functions and eleminating
1156+
-- Generation of StreamK using StreamD generation functions and eliminating
11571157
-- using StreamK drain.
11581158
o_1_space_generation :: Int -> Benchmark
11591159
o_1_space_generation streamLen =

‎benchmark/Streamly/Benchmark/Data/Unfold.hs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ inspect $ 'fromStream `hasNoType` ''FL.Step
132132
inspect $ 'fromStream `hasNoType` ''SPEC
133133
#endif
134134

135-
-- XXX INVESTIGATE: Although the performance of this should be equivalant to
135+
-- XXX INVESTIGATE: Although the performance of this should be equivalent to
136136
-- fromStream, this is considerably worse. More than 4x worse.
137137
{-# INLINE fromStreamK #-}
138138
fromStreamK :: Int -> Int -> IO ()

‎core/src/Streamly/Control/Exception.hs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
-- Stability : released
99
-- Portability : GHC
1010
--
11-
-- Exception handling and resource managment operations complementing
11+
-- Exception handling and resource management operations complementing
1212
-- the "Control.Exception" module in base package.
1313

1414
module Streamly.Control.Exception
@@ -20,7 +20,7 @@ module Streamly.Control.Exception
2020
-- $setup
2121
--
2222
-- * Resource Management
23-
-- | Exception safe, thread safe resource managment operations, similar to
23+
-- | Exception safe, thread safe resource management operations, similar to
2424
-- but more powerful than the @bracket@ and @finally@ operations available
2525
-- in the base package.
2626
--

‎core/src/Streamly/FileSystem/Path.hs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
-- from an explicit or implicit file system root is called a rooted path or an
3030
-- anchored path. For example, @\/usr\/bin@ is a rooted path with @/@ as an
3131
-- explicit root directory. Similarly, @.\/bin@ is a rooted path with the
32-
-- current directoy \".\" as an implicit root. A path that is not rooted is
32+
-- current directory \".\" as an implicit root. A path that is not rooted is
3333
-- called an unrooted path or unanchored path; for example, @local\/bin@ is an
3434
-- unrooted path.
3535
--

‎core/src/Streamly/Internal/Control/Exception.hs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module Streamly.Internal.Control.Exception
1717
, verifyM
1818

1919
-- * Resource Management
20-
-- | Exception safe, thread safe resource managment operations, similar to
20+
-- | Exception safe, thread safe resource management operations, similar to
2121
-- but more powerful than the @bracket@ and @finally@ operations available
2222
-- in the base package.
2323
--
@@ -194,7 +194,7 @@ releaser ref =
194194

195195
-- | @withAcquireIO action@ runs the given @action@, providing it with a
196196
-- an 'AcquireIO' reference called @ref@ as argument. @ref@ is used for resource
197-
-- acquisition or hook registeration within the scope of @action@. An @acquire
197+
-- acquisition or hook registration within the scope of @action@. An @acquire
198198
-- ref alloc free@ call can be used within @action@ any number of times to
199199
-- acquire resources that are automatically freed when the scope of @action@
200200
-- ends or if an exception occurs at any time. @alloc@ is a function supplied

‎core/src/Streamly/Internal/Data/CString.hs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ length (MutByteArray src#) = do
5050

5151
-- | Join two null terminated cstrings, the null byte of the first string is
5252
-- overwritten. Does not check the destination length or source length.
53-
-- Destination must have enough space to accomodate src.
53+
-- Destination must have enough space to accommodate src.
5454
--
5555
-- Returns the offset of the null byte.
5656
--

‎core/src/Streamly/Internal/Data/Fold/Container.hs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ demuxKvToMap = demuxKvToContainer
909909
-- done then initial would set a flag in the state to ignore the input or
910910
-- return an error.
911911

912-
-- XXX Use a Refold m k a b so that we can make the fold key specifc.
912+
-- XXX Use a Refold m k a b so that we can make the fold key specific.
913913
-- XXX Is using a function (a -> k) better than using the input (k,a)?
914914

915915
{-# DEPRECATED classifyGeneric "Use classifyScanGeneric instead" #-}

‎core/src/Streamly/Internal/Data/Fold/Type.hs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1716,7 +1716,7 @@ scanWith isMany
17161716
scan :: Monad m => Fold m a b -> Fold m b c -> Fold m a c
17171717
scan = scanWith False
17181718

1719-
-- XXX This does not fuse beacuse of the recursive step. Need to investigate.
1719+
-- XXX This does not fuse because of the recursive step. Need to investigate.
17201720
--
17211721
-- | Scan the input of a 'Fold' to change it in a stateful manner using another
17221722
-- 'Fold'. The scan restarts with a fresh state if the fold terminates.
@@ -1793,7 +1793,7 @@ scanlWith isMany
17931793
scanl :: Monad m => Scanl m a b -> Fold m b c -> Fold m a c
17941794
scanl = scanlWith False
17951795

1796-
-- XXX This does not fuse beacuse of the recursive step. Need to investigate.
1796+
-- XXX This does not fuse because of the recursive step. Need to investigate.
17971797

17981798
-- | Scan the input of a 'Fold' to change it in a stateful manner using a
17991799
-- 'Scanl'. The scan restarts with a fresh state if it terminates.

0 commit comments

Comments
 (0)