haskell-stack Questions
2
Solved
I used the default stack new to setup a project that has a server and a client as separate executables. I altered the package.yaml file in what seems like the right way (As of April 21, 2020 "There...
Logrolling asked 23/4, 2020 at 1:14
3
Solved
when I type stack run I get no error message but when I type stack ghci I get this error about multiple files use the same name , how I can solve it ?
(base) wejden@wejdenaydi:~/wejden$ stack ghci
...
Biscuit asked 13/5, 2021 at 13:12
5
Solved
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 wit...
Nehemiah asked 20/8, 2015 at 16:24
2
Solved
Is there a way to make intellisense work for additional modules (anything outside the prelude) like Quicktest or Random in VS Code?
I am using:
VSCode: Version 1.55.0
the extension "Haskell v...
Cupid asked 4/4, 2021 at 21:52
2
Solved
When I run stack ghci on a brand-new project, it fails to load:
$ stack new repro simple
Downloading template "simple" to create project "repro" in repro\ ...
(Additional output omitted to make ...
Jiggle asked 29/9, 2019 at 15:18
2
I am trying to set an enverionment for Haskell and I installed stack. After the installation I realized the GHC 8.6.4 version is not the one that I need (8.0.2).
compiler-exe: /home/manny/.stack/...
Salcedo asked 27/4, 2019 at 7:52
3
Solved
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 ...
Calvert asked 25/9, 2016 at 6:14
1
Solved
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...
Trike asked 6/2, 2020 at 7:6
4
Solved
In my Haskell project when I stack run, it is showing the following, but still runs. What warning is this? How can I get rid of it?
Stack has not been tested with GHC versions above 8.6, and using...
Nicki asked 19/2, 2020 at 20:23
4
Solved
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?
Carboloy asked 14/7, 2016 at 14:55
1
I work with Haskell stack and found the --file-watch opton, but was then surprised that it works for build but not for run. Searching on the web indicates that there are some ways to achieve the ef...
Uncut asked 3/4, 2021 at 8:56
1
Solved
I'm getting an error when attempting to compile Haskell tests using test-framework on Windows.
Steps to reproduce
Create a new library using Stack:
$ stack new repro simple-library
Then navigate i...
Insuperable asked 20/11, 2021 at 11:44
2
Solved
When I open some haskell project in VS Code I get this message:
Couldn't figure out what GHC version the project is using:
/home/andrej/.config/Code - OSS/User/globalStorage/haskell.haskell/haskell...
Cespitose asked 24/6, 2021 at 14:44
2
Stack (under Windows) sometimes throws the following exception when trying to download files (e.g., during stack setup or while downloading a build plan):
TlsException (HandshakeFailed (Error_Prot...
Felske asked 18/9, 2015 at 14:27
1
I've written an application in Haskell and it's starting to become slightly useful to users. However my application isn't targeted at technically adept folks, let alone Haskell developers, so build...
Bearable asked 12/8, 2021 at 17:11
4
I'm trying to install IHaskell in jupyter, directly from instructions here.
I ran the following.
sudo apt-get install -y python3-pip git libtinfo-dev libzmq3-dev libcairo2-dev libpango1.0-dev li...
Pruchno asked 3/11, 2018 at 23:25
4
I'd like to try out the Writer monad in ghci. As advised here, I tried to use only stack to manage GHC and packages, and avoid a global installation.
From a fresh Ubuntu 15.04 install, after insta...
Dupaix asked 23/7, 2015 at 16:46
3
Using cabal, I could install hakyll with the command:
cabal install hakyll
How can I do the same thing using stack?
Viscus asked 24/6, 2015 at 15:16
3
Solved
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 = "raw.github...
Kenric asked 15/8, 2019 at 22:29
2
Solved
Is there a way to put {-# LANGUAGE <feature> #-} pragmas in either the:
<project>.cabal, or
stack.yaml
file, to avoid repeating the same header code in every *.hs file of a project?...
Gyrostat asked 31/1, 2018 at 0:0
1
I'm trying to compile the behead.hs script from the pandoc tutorial on Ubuntu 20.04 (WSL1).
I can successfully compile it with
stack exec -- ghc behead.hs or
stack --resolver lts-16.25 exec -- ghc ...
Synn asked 8/12, 2020 at 10:49
1
I want to check if some package is installed globally by stack. How to do that?
Fern asked 16/7, 2017 at 9:20
2
Solved
I am attempting to build a project which uses Euterpea.
Running stack build I get the following error, suggesting that I need to add Euterpea to the build-depends section of my .cabal file.
$ sb
...
Alexandrite asked 9/12, 2017 at 3:20
2
Solved
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...
Sacerdotal asked 6/4, 2017 at 19:16
2
Solved
I'd like some guidance on what's the (best) way to have Haskell work on Archlinux.
By work I mean all, in terms of the ghci command line tool, installing packages I don't have - such as vector-spac...
Exuviae asked 9/1, 2021 at 14:19
1 Next >
© 2022 - 2024 — McMap. All rights reserved.