version: 2
jobs:
  build:
    docker:
      - image: fpco/stack-build:lts-11.11
    steps:
      - checkout
      - restore_cache:
          keys:
            - v1-.stack-{{ checksum "stack.yaml" }}-{{ checksum "licensor.cabal" }}
            - v1-.stack-{{ checksum "stack.yaml" }}
            - v1-.stack-
      - run:
          name: Build dependencies
          command: stack build --only-dependencies
      - save_cache:
          key: v1-.stack-{{ checksum "stack.yaml" }}-{{ checksum "licensor.cabal" }}
          paths:
            - ~/.stack/
      - run:
          name: Build package
          command: stack build

version: 2
jobs:
  build:
    docker:
      - image: fpco/stack-build:lts-11.11
    steps:
      - checkout
      - restore_cache:
          keys:
            - v1-.stack-{{ checksum "stack.yaml" }}-{{ checksum "package.yaml" }}
            - v1-.stack-{{ checksum "stack.yaml" }}
            - v1-.stack-
      - run:
          name: Build dependencies
          command: stack build --only-dependencies
      - save_cache:
          key: v1-.stack-{{ checksum "stack.yaml" }}-{{ checksum "package.yaml" }}
          paths:
            - ~/.stack/
      - run:
          name: Build package
          command: stack build

Use hpack in cache key
Use hpack in cache key
