From 6918d7a62a7fafb9f11f4d41f09a1e3f46201d9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20G=C3=A9lineau?= Date: Sun, 19 Apr 2020 15:23:02 -0400 Subject: [PATCH] store the oldest supported lts in a separate file, fixes #218 this way, bumping the version bounds will be less error-prone: instead of changing stack.yaml's lts to the lowest-supported lts, running bump-lower-bounds.vim to bump the lower bounds, and then hopefully not forgetting to revert stack.yaml's lts to the highest-supported lts, I can bump stack-oldest-supported-lts.yaml's lts and then run bump-lower-bounds.vim, with no extra easy-to-forget step. --- bump-lower-bounds.vim | 4 ++-- stack-oldest-supported-lts.yaml | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 stack-oldest-supported-lts.yaml diff --git a/bump-lower-bounds.vim b/bump-lower-bounds.vim index c29a63a..c573484 100644 --- a/bump-lower-bounds.vim +++ b/bump-lower-bounds.vim @@ -1,6 +1,6 @@ -"for future reference, here is a vim macro which, when the cursos is on a line like +"for future reference, here is a vim macro which, when the cursor is on a line like " " - haskell-src-exts >= 1.0 " "will update the lower bound to match the version used by the current lts. -0dwdwEld$A '^isa€kbtack ls dependencies --test | grep '^V:!bash Wi>= 0i - j +0dwdwEld$A '^istack --stack-yaml=stack-oldest-supported-lts.yaml ls dependencies --test | grep '^V:!bash Wi>= 0i - j diff --git a/stack-oldest-supported-lts.yaml b/stack-oldest-supported-lts.yaml new file mode 100644 index 0000000..13bf305 --- /dev/null +++ b/stack-oldest-supported-lts.yaml @@ -0,0 +1,4 @@ +resolver: lts-8.0 +packages: +- . +extra-deps: []