Skip to content

Commit 7e9e06e

Browse files
authored
Merge pull request #132 from serokell/release
Release preparations
2 parents 141b9b1 + 8b6ccc6 commit 7e9e06e

9 files changed

+59
-28
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
## Unreleased
1111

12+
## 0.6.0 -- 2023-10-31
13+
1214
* Fix escaping of interpolations after dollar signs.
1315
* Fix nixfmt trying to allocate temp files that aren't used.
1416
* Don't write if files didn't change, fixing treefmt compatibility

MAINTENANCE.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!-- © 2023 piegames <git@piegames.de>
2+
-
3+
- SPDX-License-Identifier: MPL-2.0
4+
-->
5+
6+
# Maintainer documentation
7+
8+
## Making a new release
9+
10+
- Check the commit log if anything is missing from the change log.
11+
- Check dependency versions in `nixfmt.cabal`, bump upper bounds if possible.
12+
- Bump the version.
13+
- Give it a git tag.
14+
- Upload to hackage using `cabal sdist`. See https://hackage.haskell.org/upload for details.

README.md

-5
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ Haskell dependencies will be built by Cabal.
4848
* `nixfmt file.nix` – format the file in place
4949

5050

51-
## For Contributors
52-
53-
We welcome issues and pull requests on GitHub.
54-
55-
5651
## About Serokell
5752

5853
`nixfmt` is maintained and funded with :heart: by

flake.lock

+31-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
inputs = {
1010
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
11-
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-22.05";
11+
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.05";
1212

1313
flake-utils.url = "github:numtide/flake-utils";
1414

nixfmt.cabal

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ cabal-version: 2.0
66
-- SPDX-License-Identifier: MPL-2.0
77

88
name: nixfmt
9-
version: 0.5.0
9+
version: 0.6.0
1010
synopsis: An opinionated formatter for Nix
1111
description:
1212
A formatter for Nix that ensures consistent and clear formatting by forgetting
@@ -41,11 +41,11 @@ executable nixfmt
4141
else
4242
buildable: True
4343
build-depends:
44-
base >= 4.12.0 && < 4.17
44+
base >= 4.12.0 && < 4.19
4545
, cmdargs >= 0.10.20 && < 0.11
4646
, nixfmt
47-
, unix >= 2.7.2 && < 2.8
48-
, text >= 1.2.3 && < 1.3
47+
, unix >= 2.7.2 && < 2.9
48+
, text >= 1.2.3 && < 2.2
4949

5050
-- for System.IO.Atomic
5151
, directory >= 1.3.3 && < 1.4
@@ -86,11 +86,11 @@ library
8686

8787
hs-source-dirs: src
8888
build-depends:
89-
base >= 4.12.0 && < 4.17
90-
, megaparsec >= 9.0.1 && < 9.3
89+
base >= 4.12.0 && < 4.19
90+
, megaparsec >= 9.0.1 && < 9.6
9191
, parser-combinators >= 1.0.3 && < 1.4
9292
, scientific >= 0.3.0 && < 0.4.0
93-
, text >= 1.2.3 && < 1.3
93+
, text >= 1.2.3 && < 2.2
9494
default-language: Haskell2010
9595
ghc-options:
9696
-Wall
@@ -113,7 +113,7 @@ executable js-interface
113113
-Wredundant-constraints
114114
-Wno-orphans
115115
build-depends:
116-
base >= 4.12.0 && < 4.17
116+
base >= 4.12.0 && < 4.19
117117
, ghcjs-base >= 0.2.0 && < 0.3
118118
, nixfmt
119119
hs-source-dirs: js/

src/Nixfmt.hs

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
module Nixfmt
88
( errorBundlePretty
99
, ParseErrorBundle
10+
, Width
1011
, format
1112
, formatVerify
1213
) where

src/Nixfmt/Parser/Float.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
- SPDX-License-Identifier: MPL-2.0
55
-}
66

7-
{-# LANGUAGE TypeFamilies, TypeApplications, ScopedTypeVariables #-}
7+
{-# LANGUAGE TypeFamilies, TypeApplications, ScopedTypeVariables, TypeOperators #-}
88

99
module Nixfmt.Parser.Float (floatParse) where
1010

src/Nixfmt/Predoc.hs

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ module Nixfmt.Predoc
2424
, hardline
2525
, emptyline
2626
, newline
27+
, DocE
2728
, Doc
2829
, Pretty
2930
, pretty

0 commit comments

Comments
 (0)