Skip to content

Commit 9126bb8

Browse files
committed
Update nixpkgs pin; update GHC to 9.4.8
1 parent 832ee3e commit 9126bb8

File tree

12 files changed

+75
-237
lines changed

12 files changed

+75
-237
lines changed

.hlint.yaml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
- "-XDeriveGeneric"
2222
- "-XGeneralizedNewtypeDeriving"
2323
- "-XLambdaCase"
24-
- "-XNoCPP"
2524
- "-XOverloadedStrings"
2625
- "-XRecordWildCards"
2726
- "-XScopedTypeVariables"
@@ -2740,16 +2739,6 @@
27402739
name: "Use 'getSum' from Relude"
27412740
note: "'getSum' is already exported from Relude"
27422741
rhs: getSum
2743-
- warn:
2744-
lhs: Data.Semigroup.Option
2745-
name: "Use 'Option' from Relude"
2746-
note: "'Option' is already exported from Relude"
2747-
rhs: Option
2748-
- warn:
2749-
lhs: Data.Semigroup.getOption
2750-
name: "Use 'getOption' from Relude"
2751-
note: "'getOption' is already exported from Relude"
2752-
rhs: getOption
27532742
- warn:
27542743
lhs: Data.Semigroup.Semigroup
27552744
name: "Use 'Semigroup' from Relude"

.last-exported-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Last exported commit from parent repo: 9737839d92e3d170e213434fec8533a7f1375ea3
1+
Last exported commit from parent repo: a1a2bdf77db95b7be1cfb417fbef33008e7dde63

cabal.project

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
11
packages:
22
.
3-
source-repository-package
4-
type: git
5-
location: https://github.com/nmattia/niv.git
6-
tag: 5830a4dd348d77e39a0f3c4c762ff2663b602d4c
7-
post-checkout-command: hpack && exit 1

flake.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix-bootstrap.cabal

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cabal-version: 2.0
55
-- see: https://github.com/sol/hpack
66

77
name: nix-bootstrap
8-
version: 1.5.5.0
8+
version: 1.5.5.1
99
author: gchquser
1010
maintainer: [email protected]
1111
copyright: Crown Copyright
@@ -107,30 +107,30 @@ library
107107
StrictData
108108
ghc-options: -Wall -Wcpp-undef -Widentities -Wincomplete-patterns -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-deriving-strategies -Wmissing-export-lists -Wmissing-import-lists -Wmissing-signatures -Wpartial-fields -Wredundant-constraints
109109
build-depends:
110-
aeson ==2.0.3.0
110+
aeson ==2.1.2.1
111111
, aeson-pretty ==0.8.9
112-
, base ==4.15.1.0
112+
, base ==4.17.2.1
113113
, blaze-html ==0.9.1.2
114-
, dhall ==1.40.2
115-
, directory ==1.3.6.2
116-
, exceptions ==0.10.4
117-
, extra ==1.7.10
118-
, filepath ==1.4.2.1
119-
, lens ==5.0.1
120-
, megaparsec ==9.2.1
114+
, dhall ==1.42.1
115+
, directory ==1.3.7.1
116+
, exceptions ==0.10.5
117+
, extra ==1.7.14
118+
, filepath ==1.4.2.2
119+
, lens ==5.2.3
120+
, megaparsec ==9.3.1
121121
, mtl ==2.2.2
122122
, parser-combinators ==1.3.0
123-
, process ==1.6.13.2
123+
, process ==1.6.18.0
124124
, raw-strings-qq ==1.1
125125
, regex-compat ==0.95.2.1
126-
, relude ==1.0.0.1
127-
, silently ==1.2.5.2
128-
, singletons ==3.0.1
129-
, template-haskell ==2.17.0.0
126+
, relude ==1.2.1.0
127+
, silently ==1.2.5.3
128+
, singletons ==3.0.2
129+
, template-haskell ==2.19.0.0
130130
, terminal ==0.2.0.0
131-
, th-abstraction ==0.4.4.0
132-
, tomland ==1.3.3.1
133-
, yaml ==0.11.8.0
131+
, th-abstraction ==0.4.5.0
132+
, tomland ==1.3.3.2
133+
, yaml ==0.11.11.2
134134
mixins:
135135
base hiding (Prelude)
136136
if flag(prod)
@@ -156,9 +156,9 @@ executable app
156156
StrictData
157157
ghc-options: -Wall -Wcpp-undef -Widentities -Wincomplete-patterns -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-deriving-strategies -Wmissing-export-lists -Wmissing-import-lists -Wmissing-signatures -Wpartial-fields -Wredundant-constraints -O2 -threaded -rtsopts -with-rtsopts=-N
158158
build-depends:
159-
base ==4.15.1.0
159+
base ==4.17.2.1
160160
, nix-bootstrap
161-
, relude ==1.0.0.1
161+
, relude ==1.2.1.0
162162
mixins:
163163
base hiding (Prelude)
164164
if flag(prod)
@@ -231,17 +231,17 @@ test-suite nix-bootstrap-test
231231
StrictData
232232
ghc-options: -Wall -Wcpp-undef -Widentities -Wincomplete-patterns -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-deriving-strategies -Wmissing-export-lists -Wmissing-import-lists -Wmissing-signatures -Wpartial-fields -Wredundant-constraints
233233
build-tool-depends:
234-
hspec-discover:hspec-discover ==2.8.5
234+
hspec-discover:hspec-discover ==2.10.10
235235
build-depends:
236-
QuickCheck ==2.14.2
237-
, base ==4.15.1.0
238-
, dhall ==1.40.2
239-
, hspec ==2.8.5
236+
QuickCheck ==2.14.3
237+
, base ==4.17.2.1
238+
, dhall ==1.42.1
239+
, hspec ==2.10.10
240240
, hspec-expectations-pretty-diff ==0.7.2.6
241241
, nix-bootstrap
242242
, raw-strings-qq ==1.1
243-
, relude ==1.0.0.1
244-
, tomland ==1.3.3.1
243+
, relude ==1.2.1.0
244+
, tomland ==1.3.3.2
245245
mixins:
246246
base hiding (Prelude)
247247
if flag(prod)

nix/haskell-env.nix

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414
{nixpkgs}: let
1515
# haskell package set
16-
baseHaskellPackages = nixpkgs.haskell.packages.ghc902;
16+
baseHaskellPackages = nixpkgs.haskell.packages.ghc948;
1717

1818
# dev tools
1919
haskellEnv = baseHaskellPackages.ghcWithPackages (
@@ -23,15 +23,10 @@
2323
haskell-language-server
2424
]
2525
);
26-
setUpHaskellLanguageServer = nixpkgs.writeShellScriptBin "setUpHaskellLanguageServer" ''
27-
sed=${nixpkgs.gnused}/bin/sed
28-
${builtins.readFile ../scripts/set-up-haskell-language-server.sh}
29-
'';
3026
in {
3127
inherit baseHaskellPackages;
3228
haskellDevTools = [
3329
haskellEnv
34-
setUpHaskellLanguageServer
3530
# cabal uses wget but doesn't package it. This ensures a compatible version is used,
3631
# as devcontainers otherwise package the busybox version by default, which accepts
3732
# different arguments.

package.yaml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
name: nix-bootstrap
15-
version: 1.5.5.0
15+
version: 1.5.5.1
1616
author: gchquser
1717
maintainer: [email protected]
1818
copyright: Crown Copyright
@@ -28,10 +28,10 @@ default-extensions:
2828
- StrictData
2929
dependencies:
3030
- name: base
31-
version: "== 4.15.1.0"
31+
version: "== 4.17.2.1"
3232
mixin:
3333
- hiding (Prelude)
34-
- relude == 1.0.0.1
34+
- relude == 1.2.1.0
3535
flags:
3636
prod:
3737
default: false
@@ -58,28 +58,28 @@ when:
5858
library:
5959
source-dirs: src
6060
dependencies:
61-
- aeson == 2.0.3.0
61+
- aeson == 2.1.2.1
6262
- aeson-pretty == 0.8.9
6363
- blaze-html == 0.9.1.2
64-
- directory == 1.3.6.2
65-
- dhall == 1.40.2
66-
- exceptions == 0.10.4
67-
- extra == 1.7.10
68-
- filepath == 1.4.2.1
69-
- lens == 5.0.1
70-
- megaparsec == 9.2.1
64+
- directory == 1.3.7.1
65+
- dhall == 1.42.1
66+
- exceptions == 0.10.5
67+
- extra == 1.7.14
68+
- filepath == 1.4.2.2
69+
- lens == 5.2.3
70+
- megaparsec == 9.3.1
7171
- mtl == 2.2.2
7272
- parser-combinators == 1.3.0
73-
- process == 1.6.13.2
73+
- process == 1.6.18.0
7474
- raw-strings-qq == 1.1
7575
- regex-compat == 0.95.2.1
76-
- silently == 1.2.5.2
77-
- singletons == 3.0.1
78-
- template-haskell == 2.17.0.0
76+
- silently == 1.2.5.3
77+
- singletons == 3.0.2
78+
- template-haskell == 2.19.0.0
7979
- terminal == 0.2.0.0
80-
- th-abstraction == 0.4.4.0
81-
- tomland == 1.3.3.1
82-
- yaml == 0.11.8.0
80+
- th-abstraction == 0.4.5.0
81+
- tomland == 1.3.3.2
82+
- yaml == 0.11.11.2
8383
executables:
8484
app:
8585
main: Main.hs
@@ -96,12 +96,12 @@ tests:
9696
main: Spec.hs
9797
source-dirs: test
9898
dependencies:
99-
- dhall == 1.40.2
100-
- hspec == 2.8.5
99+
- dhall == 1.42.1
100+
- hspec == 2.10.10
101101
- hspec-expectations-pretty-diff == 0.7.2.6
102102
- nix-bootstrap
103-
- QuickCheck == 2.14.2
103+
- QuickCheck == 2.14.3
104104
- raw-strings-qq == 1.1
105-
- tomland == 1.3.3.1
105+
- tomland == 1.3.3.2
106106
build-tools:
107-
- hspec-discover == 2.8.5
107+
- hspec-discover == 2.10.10

scripts/set-up-haskell-language-server.sh

Lines changed: 0 additions & 58 deletions
This file was deleted.

src/Bootstrap/Data/BuildPlan.hs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import Bootstrap.Error
2828
import Bootstrap.Monad (MonadBootstrap)
2929
import Bootstrap.Terminal (promptYesNo, withAttribute, withAttributes)
3030
import Control.Exception (IOException)
31-
import Control.Monad.Catch (MonadCatch, catchAll, try)
31+
import Control.Monad.Catch (catchAll, try)
3232
import Data.Char (toLower)
3333
import Data.Tree (Tree (Node, rootLabel, subForest))
3434
import Language.Haskell.TH (Quote)
@@ -61,9 +61,9 @@ getOverwriteStatus :: MonadIO m => FilePath -> Text -> m OverwriteStatus
6161
getOverwriteStatus path newContents = liftIO do
6262
doesFileExist path >>= \case
6363
True ->
64-
readFileText path `catchAll` const (pure "") >>= \oldContents ->
64+
readFileBS path `catchAll` const (pure "") >>= \oldContents ->
6565
pure $
66-
if oldContents == newContents
66+
if oldContents == encodeUtf8 newContents
6767
then NoContentChange
6868
else WillOverwrite
6969
False -> pure NothingToOverwrite
@@ -190,7 +190,7 @@ bootstrap BuildPlan {..} =
190190
r2 <- bootstrapFile (second contents f)
191191
pure (r1, r2)
192192

193-
createParentDir :: (MonadCatch m, MonadIO m) => FilePath -> ExceptT Text m ()
193+
createParentDir :: MonadIO m => FilePath -> ExceptT Text m ()
194194
createParentDir path =
195195
let dir = takeDirectory path
196196
in ExceptT $
@@ -201,7 +201,7 @@ createParentDir path =
201201
)
202202
<$> liftIO (try $ createDirectoryIfMissing True dir)
203203

204-
bootstrapFile :: (MonadCatch m, MonadIO m) => (FilePath, Text) -> ExceptT Text m ()
204+
bootstrapFile :: MonadIO m => (FilePath, Text) -> ExceptT Text m ()
205205
bootstrapFile (path, contents) =
206206
ExceptT $
207207
first

src/Bootstrap/Monad.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ type MonadBootstrap m =
2929
Quote m
3030
)
3131

32-
instance (Monad (TerminalT m a), MonadIO (TerminalT m a)) => Quote (TerminalT m a) where
32+
instance (Monad a, MonadIO (TerminalT m a)) => Quote (TerminalT m a) where
3333
newName = liftIO . newName

0 commit comments

Comments
 (0)