diff --git a/CHANGELOG b/CHANGELOG index f654696b..f28fcfdd 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -26,7 +26,7 @@ - 0.14.6.0 (2024-01-19) * #471 Support GHC 9.8 (by Michael Peyton Jones) - * #440 Fix dissappearing `DEPRECATED` pragma on module (by Lev Dvorkin) + * #440 Fix disappearing `DEPRECATED` pragma on module (by Lev Dvorkin) * #464 Fix compilation issue with GHC 9.4 - 0.14.5.0 (2023-06-23) @@ -57,7 +57,7 @@ - 0.14.0.0 (2022-03-16) * Port to GHC 9.2 AST (by jaspervdj) * Case insensitive import sort (by vlatkoB) - * Fix issue with dissappearing GADT kind signatures (by Łukasz Gołębiewski) + * Fix issue with disappearing GADT kind signatures (by Łukasz Gołębiewski) - 0.13.0.0 (2021-09-15) * Don't remove ticks on promoted data types (by Jim McStanton) diff --git a/lib/Language/Haskell/Stylish/Module.hs b/lib/Language/Haskell/Stylish/Module.hs index 292ebebd..e7fc342f 100644 --- a/lib/Language/Haskell/Stylish/Module.hs +++ b/lib/Language/Haskell/Stylish/Module.hs @@ -84,7 +84,7 @@ moduleImportGroups = groupByLine (fromMaybe err . GHC.srcSpanToRealSrcSpan . GHC.getLocA) . GHC.hsmodImports . GHC.unLoc where - err = error "moduleImportGroups: import without soure span" + err = error "moduleImportGroups: import without source span" -- The same logic as 'Language.Haskell.Stylish.Module.moduleImportGroups'. groupByLine :: (a -> RealSrcSpan) -> [a] -> [NonEmpty a] diff --git a/tests/Language/Haskell/Stylish/Step/ModuleHeader/Tests.hs b/tests/Language/Haskell/Stylish/Step/ModuleHeader/Tests.hs index 52f6975a..e7e43061 100644 --- a/tests/Language/Haskell/Stylish/Step/ModuleHeader/Tests.hs +++ b/tests/Language/Haskell/Stylish/Step/ModuleHeader/Tests.hs @@ -51,8 +51,8 @@ tests = testGroup "Language.Haskell.Stylish.Printer.ModuleHeader" , testCase "Group doc with 2 spaces" ex15 , testCase "Group doc with 2 spaces, open_bracket = same_line" ex15a , testCase "Does not sort" ex16 - , testCase "Repects separate_lists" ex17 - , testCase "Repects separate_lists, open_bracket = same_line" ex17a + , testCase "Respects separate_lists" ex17 + , testCase "Respects separate_lists, open_bracket = same_line" ex17a , testCase "Indents absent export list with always break_where" ex18 , testCase "Respects bundled patterns" ex19 , testCase "Respects bundled patterns, open_bracket = same_line" ex19a