8

I need to import Graphics.UI.Gtk and GHC suggests:

Perhaps you need to add ‘text’ to the build-depends in your .cabal file.

but I use stack, so I add gtk to extra-deps, execute stack build and get ../gtk/: getDirectoryContents:openDirStream: does not exist (No such file or directory).

How can I add dependency with stack?

Slaus
  • 2,086
  • 4
  • 26
  • 41

1 Answers1

1

You need to specify the version number of your extra deps in the stack.yaml file, something like:

extra-deps
- gtk-X.Y.Z
Didier
  • 430
  • 6
  • 15