Skip to content

Commit

Permalink
devel/ormolu: update to ormolu-0.7.7.0
Browse files Browse the repository at this point in the history
## Ormolu 0.7.7.0

* Use single-line layout for parens around single-line content. [Issue
  1120](tweag/ormolu#1120).

* Allow function arguments to be on the same line even if the full type
  (with constraints and foralls) are on multiple lines. [PR
  1125](tweag/ormolu#1125).

## Ormolu 0.7.6.0

* Fix Haddock comments on infix constructors. [Issue
  758](tweag/ormolu#758).

* Don't require a trailing newline in `.ormolu` files. [Issue
  1122](tweag/ormolu#1122).

* Remove unnecessary indentation from list comprehensions. [Issue
  966](tweag/ormolu#966).

## Ormolu 0.7.5.0

* Switched to `ghc-lib-parser-9.10`, with the following new syntactic features/behaviors:
  * GHC proposal [#575](https://github.com/ghc-proposals/ghc-proposals/blob/10290a668608d608c3f6c6010be265cf7a02e1fc/proposals/0575-deprecated-instances.rst): deprecated instances.
  * GHC proposal [#281](https://github.com/ghc-proposals/ghc-proposals/blob/10290a668608d608c3f6c6010be265cf7a02e1fc/proposals/0281-visible-forall.rst): visible forall in types of terms.
    Enabled by `RequiredTypeArguments` (enabled by default).
  * `LinearTypes`: `let` and `where` bindings can now be linear, in particular have multiplicity annotations.
  * Using `forall` as an identifier is now a parse error.
  * GHC proposal [#65](https://github.com/ghc-proposals/ghc-proposals/blob/10290a668608d608c3f6c6010be265cf7a02e1fc/proposals/0065-type-infix.rst): namespacing fixity declarations for type names and WARNING/DEPRECATED pragmas.
  * `TypeAbstractions` now supports `@`-binders in lambdas and function equations.
  * Support for the `GHC2024` language.

* Updated to `Cabal-syntax-3.12`.
  • Loading branch information
depressed-pho committed Jan 31, 2025
1 parent 1b1da6d commit d10aaff
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
13 changes: 7 additions & 6 deletions devel/ormolu/Makefile
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
# $NetBSD: Makefile,v 1.11 2024/05/09 01:32:20 pho Exp $
# $NetBSD: Makefile,v 1.12 2025/01/31 10:34:51 pho Exp $

DISTNAME= ormolu-0.7.4.0
DISTNAME= ormolu-0.7.7.0
PKGNAME= ${DISTNAME}
PKGREVISION= 1
CATEGORIES= devel

MAINTAINER= [email protected]
COMMENT= Formatter for Haskell source code
LICENSE= modified-bsd

HASKELL_UNRESTRICT_DEPENDENCIES+= \
ansi-terminal
Diff

# lib:ormolu
.include "../../devel/hs-ansi-terminal/buildlink3.mk"
.include "../../textproc/hs-Diff/buildlink3.mk"
.include "../../devel/hs-memotrie/buildlink3.mk"
.include "../../devel/hs-ansi-terminal/buildlink3.mk"
.include "../../devel/hs-choice/buildlink3.mk"
.include "../../devel/hs-file-embed/buildlink3.mk"
.include "../../devel/hs-ghc-lib-parser/buildlink3.mk"
.include "../../textproc/hs-megaparsec/buildlink3.mk"
.include "../../devel/hs-memotrie/buildlink3.mk"
.include "../../devel/hs-syb/buildlink3.mk"

# exe:ormolu
.include "../../devel/hs-ghc-lib-parser/buildlink3.mk"
.include "../../devel/hs-optparse-applicative/application.mk"
.include "../../devel/hs-th-env/buildlink3.mk"

Expand Down
11 changes: 6 additions & 5 deletions devel/ormolu/buildlink3.mk
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
# $NetBSD: buildlink3.mk,v 1.10 2024/05/09 01:32:20 pho Exp $
# $NetBSD: buildlink3.mk,v 1.11 2025/01/31 10:34:51 pho Exp $

BUILDLINK_TREE+= ormolu

.if !defined(ORMOLU_BUILDLINK3_MK)
ORMOLU_BUILDLINK3_MK:=

BUILDLINK_API_DEPENDS.ormolu+= ormolu>=0.7.4
BUILDLINK_ABI_DEPENDS.ormolu+= ormolu>=0.7.4.0nb1
BUILDLINK_API_DEPENDS.ormolu+= ormolu>=0.7.7
BUILDLINK_ABI_DEPENDS.ormolu+= ormolu>=0.7.7.0
BUILDLINK_PKGSRCDIR.ormolu?= ../../devel/ormolu

.include "../../devel/hs-ansi-terminal/buildlink3.mk"
.include "../../textproc/hs-Diff/buildlink3.mk"
.include "../../devel/hs-memotrie/buildlink3.mk"
.include "../../devel/hs-ansi-terminal/buildlink3.mk"
.include "../../devel/hs-choice/buildlink3.mk"
.include "../../devel/hs-file-embed/buildlink3.mk"
.include "../../devel/hs-ghc-lib-parser/buildlink3.mk"
.include "../../textproc/hs-megaparsec/buildlink3.mk"
.include "../../devel/hs-memotrie/buildlink3.mk"
.include "../../devel/hs-syb/buildlink3.mk"
.endif # ORMOLU_BUILDLINK3_MK

Expand Down
8 changes: 4 additions & 4 deletions devel/ormolu/distinfo
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$NetBSD: distinfo,v 1.4 2024/05/02 04:12:34 pho Exp $
$NetBSD: distinfo,v 1.5 2025/01/31 10:34:51 pho Exp $

BLAKE2s (ormolu-0.7.4.0.tar.gz) = 0abc11416a4c127226cfd907c12709305fce7fb865869aeabb5bc46d9fba7ca3
SHA512 (ormolu-0.7.4.0.tar.gz) = 2e5ec2b4a47ffb4e31c4461cbc4812b72a754b5dac32dc0ceedfdd780d1dfc5720f9e61bdb05f38936405603368ed7ea75b4d804254f31db43e0ab26c6d7a2c2
Size (ormolu-0.7.4.0.tar.gz) = 350867 bytes
BLAKE2s (ormolu-0.7.7.0.tar.gz) = 97b983bfa452c24ee628b060e9f8beb72a73f17b7caa2ae86e58de0b848df67e
SHA512 (ormolu-0.7.7.0.tar.gz) = b0f2e889dbffb06b753f80409cc6792dc0c2d9e26c8e6a38f6b673d55be7395586b8497347f00652608ba16d482464906373791f6424bc4d4ddb8ed607a0b824
Size (ormolu-0.7.7.0.tar.gz) = 361568 bytes

0 comments on commit d10aaff

Please sign in to comment.