Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lib/Language/Haskell/Stylish/Module.hs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
--------------------------------------------------------------------------------
type Lines = [String]

deriving instance Eq GHC.RawPkgQual

Check warning on line 54 in lib/Language/Haskell/Stylish/Module.hs

View workflow job for this annotation

GitHub Actions / Build on macOS-latest with GHC 9.12

Orphan class instance: instance Eq GHC.RawPkgQual

Check warning on line 54 in lib/Language/Haskell/Stylish/Module.hs

View workflow job for this annotation

GitHub Actions / Build on macOS-latest with GHC 9.10

Orphan class instance: instance Eq GHC.RawPkgQual

Check warning on line 54 in lib/Language/Haskell/Stylish/Module.hs

View workflow job for this annotation

GitHub Actions / Build on ubuntu-latest with GHC 9.10

Orphan class instance: instance Eq GHC.RawPkgQual

Check warning on line 54 in lib/Language/Haskell/Stylish/Module.hs

View workflow job for this annotation

GitHub Actions / Build on ubuntu-latest with GHC 9.12

Orphan class instance: instance Eq GHC.RawPkgQual

--------------------------------------------------------------------------------
-- | Concrete module type
Expand Down Expand Up @@ -84,7 +84,7 @@
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]
Expand Down
4 changes: 2 additions & 2 deletions tests/Language/Haskell/Stylish/Step/ModuleHeader/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading