Skip to content

Commit bfedb42

Browse files
cheecheeoandreasabel
authored andcommitted
Fix typos in the repository
used https://github.com/crate-ci/typos
1 parent 71f09ce commit bfedb42

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

Diff for: CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ _2014-02-02, Chris Kuklewicz_
157157

158158
## 1.1.8
159159

160-
Make ghc-7.0.2 on platorm 2011.2.0.0.0 happy
160+
Make ghc-7.0.2 on platform 2011.2.0.0.0 happy
161161

162162
## 1.1.7
163163

Diff for: LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This modile is under this "3 clause" BSD license:
1+
This module is under this "3 clause" BSD license:
22

33
Copyright (c) 2007-2009, Christopher Kuklewicz
44
All rights reserved.

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ By building on this thesis and adding a few more optimizations, regex-tdfa match
194194

195195
Regardless of performance, nearly every single OS and Libra for POSIX regular expressions has bugs in sub-matches. This was detailed on the [Regex POSIX Haskell wiki page](https://wiki.haskell.org/Regex_Posix), and can be demonstrated with the [regex-posix-unittest](http://hackage.haskell.org/package/regex-posix-unittest) suite of checks. Test [regex-tdfa-unittest](http://hackage.haskell.org/package/regex-tdfa-unittest) should show regex-tdfa passing these same checks. I owe my understanding of the correct behvior and many of these unit tests to Glenn Fowler at AT&T ("An Interpretation of the POSIX regex Standard").
196196

197-
### Maintainance history
197+
### Maintenance history
198198

199199
The original Darcs repository was at [code.haskell.org](http://code.haskell.org/regex-tdfa/).
200200
For a while a fork was maintained by Roman Cheplyaka as

Diff for: lib/Text/Regex/TDFA/Common.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ look key imap = IMap.findWithDefault (common_error "Text.Regex.DFA.Common" ("key
2828

2929
common_error :: String -> String -> a
3030
common_error moduleName message =
31-
error ("Explict error in module "++moduleName++" : "++message)
31+
error ("Explicit error in module "++moduleName++" : "++message)
3232

3333
on :: (t1 -> t1 -> t2) -> (t -> t1) -> t -> t -> t2
3434
f `on` g = (\x y -> (g x) `f` (g y))
@@ -109,7 +109,7 @@ data ExecOption = ExecOption {
109109
captureGroups :: Bool -- ^ True by default. Set to False to improve speed (and space).
110110
} deriving (Read,Show)
111111

112-
-- | Used by implementation to name certain 'Postion's during
112+
-- | Used by implementation to name certain 'Position's during
113113
-- matching. Identity of 'Position' tag to set during a transition.
114114
type Tag = Int
115115

Diff for: lib/Text/Regex/TDFA/TDFA.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -264,14 +264,14 @@ bestTrans aTagOP (f:fs) | null fs = canonical f
264264
-- this needs a leading Minimize tag inside at least the parent * operator
265265
Ignore -> GT -- XXX this is a guess in analogy with Maximize for the end bit of a group
266266
Orbit -> LT -- trace ("choose LT! Just "++show tag++" < Nothing") LT -- 2009 XXX : comment out next line and use the Orbit instead
267-
-- Orbit -> err $ "bestTrans.choose : Very Unexpeted Orbit in Just Nothing: "++show (tag,post,aTagOP,f:fs)
267+
-- Orbit -> err $ "bestTrans.choose : Very Unexpected Orbit in Just Nothing: "++show (tag,post,aTagOP,f:fs)
268268
choose (Just (tag,post1)) (Just (_,post2)) =
269269
case aTagOP!tag of
270270
Maximize -> order
271271
Minimize -> flipOrder order
272272
Ignore -> EQ
273273
Orbit -> EQ
274-
-- Orbit -> err $ "bestTrans.choose : Very Unexpeted Orbit in Just Just: "++show (tag,(post1,post2),aTagOP,f:fs)
274+
-- Orbit -> err $ "bestTrans.choose : Very Unexpected Orbit in Just Just: "++show (tag,(post1,post2),aTagOP,f:fs)
275275
where order = case (post1,post2) of
276276
(SetPre,SetPre) -> EQ
277277
(SetPost,SetPost) -> EQ

Diff for: lib/Text/Regex/TDFA/TNFA.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
-- (That will require re-organizing the continuation data a bit)
88

99
-- | "Text.Regex.TDFA.TNFA" converts the CorePattern Q\/P data (and its
10-
-- Pattern leafs) to a QNFA tagged non-deterministic finite automata.
10+
-- Pattern leaves) to a QNFA tagged non-deterministic finite automata.
1111
--
1212
-- This holds every possible way to follow one state by another, while
1313
-- in the DFA these will be reduced by picking a single best

Diff for: test/Main.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ main = do
178178
putStrLn $ "Explanation and discussion of these tests on the wiki at http://www.haskell.org/haskellwiki/Regex_Posix including comparing results from different operating systems"
179179
putStrLn $ "Questions about this package to the author at email <TextRegexLazy@personal.mightyreason.com>"
180180
putStrLn $ "The type of both the pattern and test is " ++ show (typeOf (undefined :: RType))
181-
putStrLn $ "Without extactly two arguments:"
181+
putStrLn $ "Without exactly two arguments:"
182182
putStrLn $ " This program runs all test files listed in test/data-dir/test-manifest.txt"
183183
putStrLn $ " Lines with negative number are expected to fail, others are expected to pass."
184184
putStrLn $ "With exactly two arguments:"

0 commit comments

Comments
 (0)