Skip to content

stack config set resolver foo doesn't edit in-line #3136

@decentral1se

Description

@decentral1se

Seems to me that it should edit in-line? resolver: should stay where it is?

λ ~/hobby/stack/ master stack config set resolver "$(stackage latest nightly)"
/home/lwm/hobby/stack/stack.yaml has been updated.
diff --git a/stack.yaml b/stack.yaml
index 53efef8..9a8a456 100644
--- a/stack.yaml
+++ b/stack.yaml
@@ -1,18 +1,10 @@
-resolver: lts-8.5
-# docker:
-#   enable: true
-#   repo: fpco/stack-full
-# image:
-#   containers:
-#     - base: "fpco/stack-base" # see ./etc/docker/stack-base/Dockerfile
-#       name: "fpco/stack-test"
-nix:
-  # --nix on the command-line to enable.
-  enable: false
-  packages:
-    - zlib
 flags:
   stack:
     hide-dependency-versions: true
+nix:
+  packages:
+  - zlib
+  enable: false
 extra-deps:
 - store-0.4.1
+resolver: nightly-2017-04-24

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions