Releases: mihaimaruseac/hindent
Hindent - 6.2.0
This is the first release supporting GHC 9.10.
What's Changed
See CHANGELOG.md for summary, or the following list of commits (removing most of CI changes and automatic @dependabot PRs).
- Update shell.nix file based on tutorial by @mihaimaruseac in #792
- Merge function branches by @toku-sa-n in #794
- Bump GHC versions by @mihaimaruseac in #812
- Define
Module
as a replacement forHsModule
by @toku-sa-n in #819 - Get pragmas from a
EpaCommentTok
, not aString
by @toku-sa-n in #820 - Fix not all
.hs
files are traversed by @toku-sa-n in #821 - Fix the pretty-printing of module-level warnings by @toku-sa-n in #822
- Define
ModuleWarning
in replacement forWarningTxt
by @toku-sa-n in #823 - Define
ExportCollection
by @toku-sa-n in #828 - Make
ImportCollection
independant on GHC's AST by @toku-sa-n in #829 - Decouple
Declaration
by @toku-sa-n in #830 - Implement
TypeVariable
by @toku-sa-n in #831 - Remove obsolete files by @toku-sa-n in #834
- Implement
TypeSynonym
by @toku-sa-n in #833 - Define
ClassInstance
by @toku-sa-n in #836 - Define AST types for
data
declarations by @toku-sa-n in #835 - Fix a newtype instance is wrongly converted to a data one by @toku-sa-n in #839
- Qualify identifiers of imports from GHC's API as GHC by @toku-sa-n in #840
- Fix compile errors by @toku-sa-n in #841
- Move
Pretty
instances intoHIndent.Pretty
by @toku-sa-n in #842 - Fix not pretty-printing multiple functional dependencies correctly by @toku-sa-n in #843
- Implement
ClassDeclaration
,DataFamilyInstance
, andTypeFamilyInstance
by @toku-sa-n in #846 - Scatter
instance Pretty
s again with.hs-boot
by @toku-sa-n in #847 - Fix not pretty-printing typeclass constraints with records by @toku-sa-n in #849
- Implement
Signature
by @toku-sa-n in #848 - Implement ASTs related to data declarations by @toku-sa-n in #851
- Inline fields into
ClassInstance
by @toku-sa-n in #852 - Implement
StandAloneDeriving
by @toku-sa-n in #860 - Remove qualifications by @toku-sa-n in #861
- Implement
Bind
by @toku-sa-n in #862 - Implement
ResultSignature
by @toku-sa-n in #864 - Implement
Injectivity
by @toku-sa-n in #867 - Fix not pretty-printing unboxed tuples correctly by @toku-sa-n in #868
- Implement
StandaloneKind
by @toku-sa-n in #870 - Implement
DefaultDeclaration
by @toku-sa-n in #871 - Implement
Foreign
by @toku-sa-n in #872 - Do not insert an empty line after a standalone kind signature by @toku-sa-n in #873
- Support
ImportPostQualified
by @toku-sa-n in #875 - Implement
WarningCollection
by @toku-sa-n in #886 - Implement
Annotation
by @toku-sa-n in #889 - Implement
RuleCollection
by @toku-sa-n in #891 - Implement
SpliceDeclaration
by @toku-sa-n in #892 - Implement
RoleAnnotation
by @toku-sa-n in #899 - Avoid using
showOutputable
by @toku-sa-n in #900 - Implement
RecordField
by @toku-sa-n in #907 - Remove the
Pretty
instance forHsOuterSigTyVarBndrs
by @toku-sa-n in #906 - Implement
OverlapMode
by @toku-sa-n in #908 - Implement
PrefixOperator
andInfixOperator
by @toku-sa-n in #910 - Implement
Splice
by @toku-sa-n in #911 - Implement
Bracket
by @toku-sa-n in #912 - Let HIndent format multiple files in parallel by @toku-sa-n in #914
- Update Stack LTS to 22.26 by @toku-sa-n in #918
- s/Operator/Name by @toku-sa-n in #919
- Remove unused import by @mihaimaruseac in #920
- Remove
head
/tail
usage as these are partial functions by @mihaimaruseac in #921 - Use
NonEmpty
to suppress a warning by @toku-sa-n in #925 - Fix hlint by @mihaimaruseac in #932
- Remove the
Pretty
instance forRdrName
by @toku-sa-n in #928 - Fix the
async
version bound by @toku-sa-n in #940 - Make
NodeComments
monoid by @toku-sa-n in #939 - Support GHC 9.10.* by @toku-sa-n in #904
- Drop GHC 8.10 from CI by @mihaimaruseac in #950
- Move release to GHC 9.8.1 by @mihaimaruseac in #951
- Version numbers -- prepare for release by @mihaimaruseac in #952
- Nix shell fixes by @mihaimaruseac in #954
- Fix and debug release CI by @mihaimaruseac in #955
Full Changelog: v6.1.1...v6.2.0
Hindent - 6.1.1
This is the first release supporting GHC 9.8 and likely also the last release which will support GHC 8.10.
What's Changed
- Bump package made from main branch to future version by @mihaimaruseac in #745
- Try simplifying the dependency version bound by @toku-sa-n in #746
- Fix description on Hackage by @mihaimaruseac in #747
- Move a function to the appropriate module by @toku-sa-n in #749
- Fix the default config written in README by @toku-sa-n in #750
- Bump haskell/actions from 2.4.0 to 2.4.1 by @dependabot in #748
- Update cabal file after recent actions bump by @mihaimaruseac in #751
- Bump haskell/actions from 2.4.1 to 2.4.3 by @dependabot in #752
- Bump actions/checkout from 3.5.2 to 3.5.3 by @dependabot in #753
- Bump slsa-framework/slsa-github-generator from 1.6.0 to 1.7.0 by @dependabot in #754
- Bump ossf/scorecard-action from 2.1.3 to 2.2.0 by @dependabot in #756
- Record all copyright owners by @mihaimaruseac in #757
- Bump haskell/actions from 2.4.3 to 2.4.4 by @dependabot in #758
- Bump slsa-framework/slsa-github-generator from 1.7.0 to 1.8.0 by @dependabot in #759
- Bump haskell/actions from 2.4.4 to 2.4.6 by @dependabot in #761
- Remove an unused parameter by @toku-sa-n in #762
- Bump slsa-framework/slsa-github-generator from 1.8.0 to 1.9.0 by @dependabot in #764
- Bump actions/checkout from 3.5.3 to 3.6.0 by @dependabot in #763
- Bump actions/checkout from 3.6.0 to 4.0.0 by @dependabot in #765
- Bump actions/upload-artifact from 3.1.2 to 3.1.3 by @dependabot in #766
- Bump actions/cache from 3.3.1 to 3.3.2 by @dependabot in #767
- Bump actions/checkout from 4.0.0 to 4.1.0 by @dependabot in #768
- Bump haskell/actions from 2.4.6 to 2.4.7 by @dependabot in #769
- Set permissions to empty by @mihaimaruseac in #770
- Refresh all reusable actions to latest version by @mihaimaruseac in #771
- Switch haskell hlint to new repos after main repo split by @mihaimaruseac in #772
- Bump github/codeql-action from 2.22.0 to 2.22.1 by @dependabot in #773
- Bump GHC versions to latest by @mihaimaruseac in #774
- Handle the line prefix correctly by @toku-sa-n in #780
- Bump github/codeql-action from 2.22.1 to 2.22.3 by @dependabot in #778
- Bump haskell-actions/setup from 2.5.0 to 2.5.1 by @dependabot in #777
- Remove
DeclSig
by @toku-sa-n in #783 - Bump github/codeql-action from 2.22.3 to 2.22.4 by @dependabot in #782
- Bump actions/checkout from 4.1.0 to 4.1.1 by @dependabot in #781
- Pretty-print multiple signatures in a
SPECIALISE
correctly by @toku-sa-n in #784 - Bump ossf/scorecard-action from 2.3.0 to 2.3.1 by @dependabot in #785
- Bump github/codeql-action from 2.22.4 to 2.22.5 by @dependabot in #786
- Bump haskell-actions/setup from 2.5.1 to 2.5.2 by @dependabot in #787
- Add GHC 9.8.1 to the cabal CI by @mihaimaruseac in #775
- Permissions for the release by @mihaimaruseac in #789
Full Changelog: v6.1.0...v6.1.1
Hindent - 6.1.0
What's Changed
- Increment version number, tentatively for patch release by @mihaimaruseac in #682
- Fix spacing in package description by @mihaimaruseac in #684
- Fix badges by @mihaimaruseac in #685
- Update SLSA generator version to 1.5.0 by @mihaimaruseac in #686
- Enable GHA automatic updates via dependabot by @mihaimaruseac in #687
- Bump haskell/actions from 2.1.0 to 2.3.7 by @dependabot in #688
- Bump ossf/scorecard-action from 2.1.1 to 2.1.3 by @dependabot in #689
- Bump actions/upload-artifact from 3.1.1 to 3.1.2 by @dependabot in #690
- Bump actions/cache from 3.2.2 to 3.3.1 by @dependabot in #691
- Bump actions/checkout from 3.2.0 to 3.5.0 by @dependabot in #692
- Fix behaviour with QualifiedDo by @NathanielB123 in #696
- Bump actions/download-artifact from 3.0.1 to 3.0.2 by @dependabot in #694
- Reenable the self-validation on Windows by @toku-sa-n in #698
- Generate the cabal file with the latest hpack by @toku-sa-n in #700
- Check the cabal file before building by @toku-sa-n in #701
- Support GHC 9.6 by @toku-sa-n in #699
- Remove unnecessary parentheses by @toku-sa-n in #702
- Bump actions/checkout from 3.5.0 to 3.5.2 by @dependabot in #704
- Suppress GHC warnings by @toku-sa-n in #703
- Define
HsModule'
to reduce CPP pragmas by @toku-sa-n in #705 - Fix the haddock handling for class methods by @toku-sa-n in #706
- Fix the misplacement of comments in a do expression by @toku-sa-n in #707
- Fix the misplacement of comments in case expressions by @toku-sa-n in #708
- Define
hindent
for the easy use by @toku-sa-n in #709 - Create PULL_REQUEST_TEMPLATE.md by @toku-sa-n in #711
- Forgot to add a changelog for #709 by @toku-sa-n in #710
reformat
takes a list, not aMaybe
by @toku-sa-n in #712- Simplify the internal structure of
Printer
by @toku-sa-n in #713 - Extract a large chunk of code by @toku-sa-n in #714
reformat
returns aParseError
on error by @toku-sa-n in #715- Aviod using the internal module by @toku-sa-n in #718
- Remove an unnecessary
if
expression by @toku-sa-n in #719 - Fix typo by @toku-sa-n in #716
- Add a test for #103 by @toku-sa-n in #717
- Make
reformat
return aByteString
by @toku-sa-n in #720 - Simplify a case expression by @toku-sa-n in #721
- Remove unused files by @toku-sa-n in #722
- Remove an unused import by @toku-sa-n in #723
- Remove an unused function by @toku-sa-n in #724
- Remove the
text
dependency by @toku-sa-n in #725 - Bump haskell/actions from 2.3.7 to 2.3.8 by @dependabot in #726
- Fix not handling extension implications well by @toku-sa-n in #727
- Remove the default extensions for HIndent by @toku-sa-n in #728
- Fix the wrong hlint ci setting by @toku-sa-n in #730
- Export only the
HIndent
module by @toku-sa-n in #729 - Let language extensions be effective over CPP blocks by @toku-sa-n in #731
- Create the
ByteString
module by @toku-sa-n in #732 - Support ghcid by @toku-sa-n in #734
- Use
unlines'
by @toku-sa-n in #733 - Bump
haskell/actions/*
to v2.4.0 by @mihaimaruseac in #736 - Update scorecards
upload-sarif
action to latest by @mihaimaruseac in #737 - Add GHC 9.0.2 and replace GHC 9.2/9.4 with latest patches by @mihaimaruseac in #738
- Unify the
do
expression style by @toku-sa-n in #739 - Let
ghcid
trackTESTS.md
by @toku-sa-n in #740 - Format based on operator fixity by @toku-sa-n in #741
- Take the fixities of lens' operators into account by @toku-sa-n in #742
- Bump slsa-framework/slsa-github-generator from 1.5.0 to 1.6.0 by @dependabot in #743
- Update changelog for release by @mihaimaruseac in #744
New Contributors
- @dependabot made their first contribution in #688
- @NathanielB123 made their first contribution in #696
Full Changelog: v6.0.0...v6.1.0
Hindent - 6.0.0
Major changes
- The file parser has been switched from
haskell-src-exts
toghc-lib-parser
.
What's Changed
- Fix mojibake on test on Windows by @toku-sa-n in #592
- Remove all
\r
s when readingTESTS.md
by @toku-sa-n in #590 - Run CI on Windows by @toku-sa-n in #591
- Enable OpenSSF Scorecard code scanning alert and badge by @joycebrum in #595
- Explicitly import
Paths_hindent
by @toku-sa-n in #594 - Change the supported GHC versions. by @mihaimaruseac in #596
- Remove the support for GHC 9.4.1 on Windows by @toku-sa-n in #597
- Fix Scorecard Github Action by upgrading to 2.0.6 by @joycebrum in #605
- Fix
TESTS.md
according to markdownlint by @toku-sa-n in #606 - Reorganize module-related tests by @toku-sa-n in #611
- Create the "Class declarations" section in
TESTS.md
by @toku-sa-n in #612 - Create the "Type synonym declarations" section by @toku-sa-n in #613
- Reorganize tests related to class instance declarations by @toku-sa-n in #614
- Reorganize tests related to data declarations by @toku-sa-n in #615
- Reorganize tests related to lambda expressions by @toku-sa-n in #616
- Reorganize tests related to list comprehensions by @toku-sa-n in #617
- Reorganize tests related to record expressions by @toku-sa-n in #618
- Reorganize tests related to operators by @toku-sa-n in #619
- Reorganize tests related to type family by @toku-sa-n in #620
- Reorganize tests related to type signature declarations by @toku-sa-n in #621
- Reorganize tests related to case expressions by @toku-sa-n in #622
- Move a test to a proper section by @toku-sa-n in #623
- Reorganize tests related to function declarations by @toku-sa-n in #624
- Remove duplicated tests related to
TypeApplications
by @toku-sa-n in #625 - Reorganize "Expressions" section by @toku-sa-n in #626
- Remove the "Regression tests" section by @toku-sa-n in #627
- Track
stack.yaml.lock
by @toku-sa-n in #602 - Additional tests by @toku-sa-n in #629
- Workaround for a build failure on Mac by @toku-sa-n in #628
- Disable Scorecards by @mihaimaruseac in #630
- Swtich to GHC 9.2.5 in Cabal CI by @mihaimaruseac in #631
- Switch from
haskell-src-exts
toghc-lib-parser
by @toku-sa-n in #593 - Fix GHC 9.2 version in excludes by @mihaimaruseac in #633
- Migrate scorecards to newer versions of workflows by @mihaimaruseac in #634
- Format all files in
src/
withstack run -- src/**/*.hs
by @toku-sa-n in #636 - Remove cabal macos workaround by @mihaimaruseac in #635
- Enable scorecards workflow by @mihaimaruseac in #637
- Fix a comment in
badExtensions
by @toku-sa-n in #639 - Check the format of source files in
src/
on CI by @toku-sa-n in #598 - Do not convert LF to CRLF by @toku-sa-n in #642
- Create
HIndent.Config
by @toku-sa-n in #640 - Remove
Tests.hs
by @toku-sa-n in #643 - Print the exact error position by @toku-sa-n in #645
- Reorganize the directory structure by @toku-sa-n in #644
- Print unboxed sum type signatures correctly by @toku-sa-n in #646
- Write
package.yaml
instead ofhindent.cabal
by @toku-sa-n in #647 - Ensure the cabal file is up-to-date on CI by @toku-sa-n in #648
- Print unboxed expressions correctly by @toku-sa-n in #649
- Try 9.4.4 again by @mihaimaruseac in #652
- s/HIndent.Types/HIndent.Printer by @toku-sa-n in #654
- Add a test for #547 by @toku-sa-n in #655
- Switch patreon by @mihaimaruseac in #656
- Add a test for
NumericUnderscores
by @toku-sa-n in #657 - Update the result of
hindent --help
by @toku-sa-n in #659 - Add a test for
OverloadedLabels
by @toku-sa-n in #658 - Remove sponsorship for now by @mihaimaruseac in #660
- Reorganize the changelog by @toku-sa-n in #661
- Change how to format a data type with a record constructor by @toku-sa-n in #662
- Remove a newline after a pattern signature by @toku-sa-n in #663
- Break a long type application (not
TypeApplications
) by @toku-sa-n in #664 - Break a long type-level list into multiple lines by @toku-sa-n in #665
- Remove spaces around typed expression brackets by @toku-sa-n in #666
- Fix not printing data family instances inside a class inst by @toku-sa-n in #667
- Do not always break short class constraints by @toku-sa-n in #669
- Do not remove the space before the enclosing bracket by @toku-sa-n in #670
- Goodbye, Atom by @toku-sa-n in #671
- Do not insert unnecessary empty lines if a file contains only comments by @toku-sa-n in #672
- Forgot to add a changelog for #671 by @toku-sa-n in #673
- Fix a wrong option name by @toku-sa-n in #674
- Revamp CI by @mihaimaruseac in #678
- Add nix-shell by @mihaimaruseac in #679
- Create security policy by @mihaimaruseac in #680
- Prepare for the next release by @mihaimaruseac in #681
New Contributors
- @joycebrum made their first contribution in #595
Full Changelog: v5.3.4...v6.0.0
v5.3.3
What's Changed
- Fix broken link to Servant by @mattfbacon in #579
- Fix to build with Cabal 3.6 by @uhbif19 in #584
- Fix a compile error on GHC 9.2.2 by @toku-sa-n in #588
- Add support for GHC 9.2.2
- Test CI with GitHub Actions (WIP)
New Contributors
- @mattfbacon made their first contribution in #579
- @uhbif19 made their first contribution in #584
- @toku-sa-n made their first contribution in #588
Full Changelog: v5.3.2...v5.3.3
v5.3.4
This is the same as the 5.3.3 release, except I accidentally uploaded it to Hackage instead of the documentation for 5.3.3. Both issues fixed now.
hindent 5.3.2
This release follows after a transfer of ownership.
It mostly contains the fix for MonadFail
such that newer GHC versions work.
Future releases will have more complete release notes and possibly drop support for GHC versions pre-2018
Release 5.2.5
In this release, we upgrade haskell-src-exts dependency to >= 1.20.0
. Detail changelog as follows:
* Support get extensions from `.cabal` file
* Improve indention with record constructions and updates
* Fix `let ... in` bug
* Fix top-level lambda expressions in TemplateHaskell slices
* Update to haskell-src-exts dependency to version `>= 1.20.0`
Release 5.2.4
In this release, many bugs related to infix operators got fixed. The import
declarations and LANGUAGE
pragmas have also been optimized.
- Pretty print imports
- Fix pretty print for string literals for
DataKinds
- Support
--validate
option for checking the format without reformatting - Support parse
#include
,#error
,#warning
directives - Support read
LANGUAGE
pragma and parse the declared extensions from source - Treat
TypeApplications
extension as 'badExtensions' due to the@
symbol - Improve pretty print for unboxed tuples
- Fix many issues related to infix operators, includes TH name quotes,
INLINE
/NOINLINE
pragmas, infix type operator and infix constructor - Fix pretty print for operators in
INLINE
/NOINLINE
pragmas - Support for
EmptyCases
extension - Fix TH name quotes on operator names
- Optimize pretty print for many fundeps
- Fix extra linebreaks after short identifiers