2

I want to use HList: Heterogeneous lists, but the package seems not on Stackage.

I currently use stack. In this case what is the option besides going back to use Cabal?

sjakobi
  • 3,546
  • 1
  • 25
  • 43
Functor
  • 582
  • 1
  • 9
  • 1
    Possibly duplicate, or at least related: https://stackoverflow.com/questions/32016256/stack-init-package-not-found/32016828#32016828 – Koterpillar Mar 01 '22 at 03:01

1 Answers1

4

Use extra-deps in stack.yaml:

extra-deps:
- HList-0.5.2.0

Stack should prompt you to if you add the package as a dependency in the Cabal file.

Koterpillar
  • 7,883
  • 2
  • 25
  • 41