Skip to content

Commit e0cfd80

Browse files
authored
Fix typos (#497)
Found via `codespell -L modul,autoformating`
1 parent f728856 commit e0cfd80

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

CHANGELOG

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
- 0.14.6.0 (2024-01-19)
2828
* #471 Support GHC 9.8 (by Michael Peyton Jones)
29-
* #440 Fix dissappearing `DEPRECATED` pragma on module (by Lev Dvorkin)
29+
* #440 Fix disappearing `DEPRECATED` pragma on module (by Lev Dvorkin)
3030
* #464 Fix compilation issue with GHC 9.4
3131

3232
- 0.14.5.0 (2023-06-23)
@@ -57,7 +57,7 @@
5757
- 0.14.0.0 (2022-03-16)
5858
* Port to GHC 9.2 AST (by jaspervdj)
5959
* Case insensitive import sort (by vlatkoB)
60-
* Fix issue with dissappearing GADT kind signatures (by Łukasz Gołębiewski)
60+
* Fix issue with disappearing GADT kind signatures (by Łukasz Gołębiewski)
6161

6262
- 0.13.0.0 (2021-09-15)
6363
* Don't remove ticks on promoted data types (by Jim McStanton)

lib/Language/Haskell/Stylish/Module.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ moduleImportGroups =
8484
groupByLine (fromMaybe err . GHC.srcSpanToRealSrcSpan . GHC.getLocA) .
8585
GHC.hsmodImports . GHC.unLoc
8686
where
87-
err = error "moduleImportGroups: import without soure span"
87+
err = error "moduleImportGroups: import without source span"
8888

8989
-- The same logic as 'Language.Haskell.Stylish.Module.moduleImportGroups'.
9090
groupByLine :: (a -> RealSrcSpan) -> [a] -> [NonEmpty a]

tests/Language/Haskell/Stylish/Step/ModuleHeader/Tests.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ tests = testGroup "Language.Haskell.Stylish.Printer.ModuleHeader"
5151
, testCase "Group doc with 2 spaces" ex15
5252
, testCase "Group doc with 2 spaces, open_bracket = same_line" ex15a
5353
, testCase "Does not sort" ex16
54-
, testCase "Repects separate_lists" ex17
55-
, testCase "Repects separate_lists, open_bracket = same_line" ex17a
54+
, testCase "Respects separate_lists" ex17
55+
, testCase "Respects separate_lists, open_bracket = same_line" ex17a
5656
, testCase "Indents absent export list with always break_where" ex18
5757
, testCase "Respects bundled patterns" ex19
5858
, testCase "Respects bundled patterns, open_bracket = same_line" ex19a

0 commit comments

Comments
 (0)