Skip to main content

All Questions

Tagged with
173 votes
3 answers
56k views

What is the difference between Cabal and Stack?

Yesterday I learnt about a new Haskell tool called Stack. At the first blush, it looks like it does much the same job as Cabal. So, what is the difference between them? Is stack a replacement for ...
ZhekaKozlov's user avatar
  • 39.8k
73 votes
5 answers
18k views

Profiling builds with Stack

How do I tell stack to build my executable and all its dependencies with -prof? Simply adding it to ghc-options in the .cabal file is not enough, because it only tries to build the executable with ...
Sebastian Graf's user avatar
68 votes
3 answers
43k views

How to install a package using stack?

Using cabal, I could install hakyll with the command: cabal install hakyll How can I do the same thing using stack?
Ben's user avatar
  • 3,942
46 votes
3 answers
2k views

How to use a DLL in a Haskell project?

I would like to use an external library, RDFox, in a Haskell project. Context: I am working on Windows and Linux, both 64 bits, using GHC 7.10 and stack. RDFox is programmed in C++. RDFox shared ...
Der Vogel's user avatar
  • 460
41 votes
1 answer
8k views

How to install/use a local version of package using Stack?

The situation is, I am trying to install Netwire using Stack. However, there is a problem in the latest netwire 5.0.1, as reported by dhobbs: http://hub.darcs.net/ertes/netwire/issue/13 Since I don'...
Carl Dong's user avatar
  • 1,299
38 votes
2 answers
7k views

Generating documentation for my own code with Haddock and stack

I have annotated my code in Haddock style and would like to generate browse-able documentation. Since I am also using stack, I want to integrate the documentation generation into the workflow. However,...
Sam van Herwaarden's user avatar
35 votes
4 answers
9k views

Haskell Stack install package dependency from github

Is it possible to install a version of a package from github using Haskell stack? e.g. in a .cabal or a stack.yaml file, how can I point a dependency at a git repo/branch/revision?
Abraham P's user avatar
  • 15.5k
35 votes
1 answer
17k views

How to uninstall a Haskell package installed with stack?

How can I uninstall a Haskell package installed globally with stack tool? stack --help shows that uninstall command is deprecated. uninstall DEPRECATED: This command performs no ...
Kwang Yul Seo's user avatar
32 votes
2 answers
9k views

How do I check what version of a package is installed with stack?

Within my project's .cabal file I've got the following under the executable section: executable ArchPkgstatsScraper hs-source-dirs: app main-is: Main.hs ghc-options: -...
Chris Stryczynski's user avatar
32 votes
1 answer
9k views

Understanding Haskell's stack program and the resolver and LTS version

I am trying to understand how to use stack and stackage.org. When I first installed it and used it, stackage.org was at LTS-3.8 (the "resolver"). Since then, stackage.org now has LTS-3.11. First, I'd ...
user avatar
30 votes
1 answer
11k views

What goes in a Stack package.yaml file?

I notice that Stack supports using a package.yaml file that it will use to generate a .cabal file. For example, yi-core/package.yaml. Its structure seems very similar to a Cabal file, but not quite ...
Chris Martin's user avatar
  • 30.8k
29 votes
3 answers
20k views

Could not find module `Data.Map' -- It is a member of the hidden package

First, I created a new workspace: stack new xxxx stack init stack build then cd xxx\app stack ghci import Data.Map I can import other modules like Data.Char and Data.List, but I can't import Data....
aurexav's user avatar
  • 2,915
26 votes
2 answers
7k views

How to Run Multiple Test Files with Haskell Stack Project

I want to setup an existing Haskell project with Stack. The existing project uses multiple files under a test directory; these separate test files by default, Stack (or cabal?) appears to utilize a ...
1ijk's user avatar
  • 1,497
25 votes
3 answers
8k views

stack new command failing to download build plan for lts-14.1

Stack fails with a 404 HTTP status to download a build plan for lts-14.1: $ stack new my-project [...] Downloading lts-14.1 build plan ... RedownloadInvalidResponse Request { host ...
michid's user avatar
  • 10.9k
25 votes
2 answers
12k views

How to install Haskell (Platform or Stack) in 2018 on Linux?

I am trying to learn Haskell from the book Learn You a Haskell by Miran Lipovača. Both the book and haskell.org recommends installing the Haskell Platform but there is no download for Manjaro Linux (...
Klorax's user avatar
  • 579

15 30 50 per page
1
2 3 4 5
76