Skip to content

Commit

Permalink
Update to lts-20 resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrisbin committed Jul 14, 2023
1 parent d0ab113 commit 5942f18
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 76 deletions.
23 changes: 12 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# Bring system up to date after a pull
update: setup setup.lint setup.tools db.migrate build lint test
update: setup setup.tools db.migrate build lint test

# Initialize from a fresh clone
bootstrap: \
setup \
setup.lint \
setup.tools \
setup.ngrok \
db.setup \
Expand Down Expand Up @@ -58,20 +57,22 @@ setup:
stack install --copy-compiler-tool \
dbmigrations-postgresql

.PHONY: setup.lint
setup.lint:
stack install --copy-compiler-tool \
hlint \
weeder-2.3.1

.PHONY: setup.tools
setup.tools:
stack install --copy-compiler-tool \
apply-refact \
dhall \
brittany-0.14.0.2 \
fast-tags \
stylish-haskell \
apply-refact
hlint \
weeder-2.4.0
@# install fourmolu-0.12 using a 9.6 resolver, then move it to the 9.2
@# compiler-tools-bin
stack \
--resolver nightly-2023-06-26 install \
--copy-compiler-tool fourmolu-0.13.0.0
cp -v \
"$$(stack --resolver nightly-2023-06-26 path --compiler-tools-bin)/fourmolu" \
"$$(stack path --compiler-tools-bin)/fourmolu"

.PHONY: setup.ngrok
setup.ngrok:
Expand Down
1 change: 1 addition & 0 deletions package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ ghc-options:
- -Wno-all-missed-specialisations
- -Wno-missing-exported-signatures # re-enables missing-signatures
- -Wno-missing-import-lists
- -Wno-missing-kind-signatures
- -Wno-missing-safe-haskell-mode
- -Wno-prepositive-qualified-module
- -Wno-unsafe
Expand Down
10 changes: 5 additions & 5 deletions restyled.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ library
TypeApplications
TypeFamilies
ViewPatterns
ghc-options: -fignore-optim-changes -fwrite-ide-info -Weverything -Wno-all-missed-specialisations -Wno-missing-exported-signatures -Wno-missing-import-lists -Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module -Wno-unsafe
ghc-options: -fignore-optim-changes -fwrite-ide-info -Weverything -Wno-all-missed-specialisations -Wno-missing-exported-signatures -Wno-missing-import-lists -Wno-missing-kind-signatures -Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module -Wno-unsafe
build-depends:
Blammo
, QuickCheck
Expand Down Expand Up @@ -258,7 +258,7 @@ executable restyled.io
TypeApplications
TypeFamilies
ViewPatterns
ghc-options: -fignore-optim-changes -fwrite-ide-info -Weverything -Wno-all-missed-specialisations -Wno-missing-exported-signatures -Wno-missing-import-lists -Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module -Wno-unsafe -threaded -rtsopts -with-rtsopts=-T
ghc-options: -fignore-optim-changes -fwrite-ide-info -Weverything -Wno-all-missed-specialisations -Wno-missing-exported-signatures -Wno-missing-import-lists -Wno-missing-kind-signatures -Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module -Wno-unsafe -threaded -rtsopts -with-rtsopts=-T
build-depends:
base
, restyled
Expand Down Expand Up @@ -296,7 +296,7 @@ executable seed-db
TypeApplications
TypeFamilies
ViewPatterns
ghc-options: -fignore-optim-changes -fwrite-ide-info -Weverything -Wno-all-missed-specialisations -Wno-missing-exported-signatures -Wno-missing-import-lists -Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module -Wno-unsafe -threaded -rtsopts -with-rtsopts=-T
ghc-options: -fignore-optim-changes -fwrite-ide-info -Weverything -Wno-all-missed-specialisations -Wno-missing-exported-signatures -Wno-missing-import-lists -Wno-missing-kind-signatures -Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module -Wno-unsafe -threaded -rtsopts -with-rtsopts=-T
build-depends:
base
, restyled
Expand Down Expand Up @@ -334,7 +334,7 @@ executable sync-marketplace
TypeApplications
TypeFamilies
ViewPatterns
ghc-options: -fignore-optim-changes -fwrite-ide-info -Weverything -Wno-all-missed-specialisations -Wno-missing-exported-signatures -Wno-missing-import-lists -Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module -Wno-unsafe -threaded -rtsopts -with-rtsopts=-T
ghc-options: -fignore-optim-changes -fwrite-ide-info -Weverything -Wno-all-missed-specialisations -Wno-missing-exported-signatures -Wno-missing-import-lists -Wno-missing-kind-signatures -Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module -Wno-unsafe -threaded -rtsopts -with-rtsopts=-T
build-depends:
base
, restyled
Expand Down Expand Up @@ -401,7 +401,7 @@ test-suite test
TypeApplications
TypeFamilies
ViewPatterns
ghc-options: -fignore-optim-changes -fwrite-ide-info -Weverything -Wno-all-missed-specialisations -Wno-missing-exported-signatures -Wno-missing-import-lists -Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module -Wno-unsafe
ghc-options: -fignore-optim-changes -fwrite-ide-info -Weverything -Wno-all-missed-specialisations -Wno-missing-exported-signatures -Wno-missing-import-lists -Wno-missing-kind-signatures -Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module -Wno-unsafe
build-depends:
QuickCheck
, aeson-qq
Expand Down
2 changes: 1 addition & 1 deletion src/Restyled/AWS.hs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ instance HasAWS AWS.Env where
instance HasAWS env => HasAWS (HandlerData child env) where
awsEnvL = envL . siteL . awsEnvL

discover :: (MonadIO m, MonadLoggerIO m) => m Env
discover :: MonadLoggerIO m => m Env
discover = do
loggerIO <- askLoggerIO
env <- liftIO $ AWS.newEnv AWS.discover
Expand Down
22 changes: 10 additions & 12 deletions stack.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: lts-19.10
resolver: lts-20.26
extra-deps:
- github: brendanhay/amazonka
commit: f73a957d05f64863e867cf39d0db260718f0fadd # main, as of SSO support
Expand All @@ -9,21 +9,19 @@ extra-deps:
- lib/services/amazonka-sso
- lib/services/amazonka-sts

# https://github.com/hasura/monad-validate/pull/5
- github: LeapYear/monad-validate
commit: 5b181b7c57d6e2c975c533b0a0072e9aeb15fb99
- monad-validate-1.2.0.1

- Blammo-1.1.2.0
# - Blammo-1.1.2.0

# For Blammo
- envparse-0.5.0
- monad-logger-aeson-0.3.1.0
- context-0.2.0.1
# # For Blammo
# - envparse-0.5.0
# - monad-logger-aeson-0.3.1.0
# - context-0.2.0.1

# For weeder
- algebraic-graphs-0.5
# # For weeder
# - algebraic-graphs-0.5

# # For dbmigrations-postgresql
# For dbmigrations-postgresql
- HDBC-postgresql-2.5.0.1
- dbmigrations-2.0.0

Expand Down
55 changes: 8 additions & 47 deletions stack.yaml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -70,51 +70,12 @@ packages:
subdir: lib/services/amazonka-sts
url: https://github.com/brendanhay/amazonka/archive/f73a957d05f64863e867cf39d0db260718f0fadd.tar.gz
- completed:
name: monad-validate
hackage: monad-validate-1.2.0.1@sha256:5a100da896f11ca4b7c123da85decbedeb46c37054a097f258ac911e715cb68d,2587
pantry-tree:
sha256: 2520040223ec05c14da5f1d2ac7a38e5ed2caf0ec307bce4566924da54c28166
size: 869
sha256: 3cf178595f6dee0cbf73d1263327b38f69df1e9ae406429e4252be634fa88f1e
size: 18146
url: https://github.com/LeapYear/monad-validate/archive/5b181b7c57d6e2c975c533b0a0072e9aeb15fb99.tar.gz
version: 1.2.0.0
sha256: 034ee4de9765e38b763f5d73b236cc112205728e680cefbfe12d2882accc3264
size: 611
original:
url: https://github.com/LeapYear/monad-validate/archive/5b181b7c57d6e2c975c533b0a0072e9aeb15fb99.tar.gz
- completed:
hackage: Blammo-1.1.2.0@sha256:64b0114d67aacda2a77ed64cf1a1af030090907a4b1457a0f49ddf5a3be59303,4045
pantry-tree:
sha256: 0712ebf2a7af368499f0bea836f0619c01280324caf3dc52107a5ce91bbbb1ac
size: 1490
original:
hackage: Blammo-1.1.2.0
- completed:
hackage: envparse-0.5.0@sha256:ba9ad793ed2fcfce644b3ebb8eb6c2fef2e44924f75e1b324956340e664c416e,2849
pantry-tree:
sha256: 419a6843224ad32755064276f8e36500c71238db1b5807a2c9596fa4ed909a5a
size: 1181
original:
hackage: envparse-0.5.0
- completed:
hackage: monad-logger-aeson-0.3.1.0@sha256:dbb1f816d00a820982094362551e20582de0a27c337d430fa7080dcacbe66f34,5193
pantry-tree:
sha256: 6e213a5fd0d3cd17fb4011b0c7181373bd836a86ae82fea5700b44cfc3d9eb01
size: 5103
original:
hackage: monad-logger-aeson-0.3.1.0
- completed:
hackage: context-0.2.0.1@sha256:b5a1390a5ad11b7edd0449c9ef96823f082bff4988bd09583e37a4e93e9aad10,1891
pantry-tree:
sha256: ebb043dd007864588c6b1676a0d30e521deab4353a3f19716f6f6f7d52b62817
size: 952
original:
hackage: context-0.2.0.1
- completed:
hackage: algebraic-graphs-0.5@sha256:6eeec5ed1687ff7aa916e7bf9f02f51aaabde6f314dc0b7b1a84156974d7da73,8071
pantry-tree:
sha256: cca4a0348bb126506cacd8436948a68aad62e75d45df8c71f4090a00e69b45ee
size: 4128
original:
hackage: algebraic-graphs-0.5
hackage: monad-validate-1.2.0.1
- completed:
hackage: HDBC-postgresql-2.5.0.1@sha256:37bb911cd996d12c91fa711002877f32f91bcc488de76d85a05865c3af9dc580,3032
pantry-tree:
Expand Down Expand Up @@ -145,7 +106,7 @@ packages:
hackage: HsSyck-0.53
snapshots:
- completed:
sha256: 005f204647467d65c4ab549a5ca35d54b3d90a84a99a4ffc5d421a4018854fe2
size: 618509
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/19/10.yaml
original: lts-19.10
sha256: 5a59b2a405b3aba3c00188453be172b85893cab8ebc352b1ef58b0eae5d248a2
size: 650475
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/20/26.yaml
original: lts-20.26

0 comments on commit 5942f18

Please sign in to comment.