Questions tagged [haskell-stack]

Questions about the Stack, a build tool for the Haskell language. Do not use this tag for general Haskell questions that do not involve Stack.

stack is a modern, cross-platform build tool for Haskell code. It covers management of Haskell environment and project dependencies, building, testing and benchmarking.

1268 questions
0
votes
0 answers

Install stack project extra-deps with stack

How can I build project a with dependency b when both are not found in stack indices? I used stack install on b, added extra-deps but still failed to build a. Didn't see b in your package indices. Updating and trying again. Why b is not in my…
sevo
  • 4,559
  • 1
  • 15
  • 31
0
votes
2 answers

Stack cannot find libpq when given directory

I am trying to set up a stack project that uses the postgresql-simple package among others. When trying to stack build, all of the dependencies for postgresql-simple installed without issue, but stack is having trouble installing postgresql-simple…
parker.sikand
  • 1,371
  • 2
  • 15
  • 32
0
votes
2 answers

Stack GHCI doesn't have modules imported through Stack

I created a new project using the stack new Proj-Name simple command, and in a file I created within the /src directory imported a module outside of GHC's base library, import System.Process. Running stack build was successful, and the file worked…
Nicholas Montaño
  • 935
  • 10
  • 24
0
votes
1 answer

Tag lts-3.1 not found pulling to docker a fresh yesod scaffold

I'm trying to deploy a simple yesod web site using stack docker. My steps: stack yesod init ... stack exec -- yesod devel works fine. export DOCKER_HOST=myhost and test docker info runs ok. add docker: \n enable: true to stack.yaml. Then, fail $…
josejuan
  • 9,338
  • 24
  • 31
0
votes
2 answers

Synastic errors - Vim, Stack, Haskell development

I am using stack for my Haskell development and Syntastic for my error checking when editing in Vim. I have not installed the haskell-platform, instead, I use a stack build --install-ghc to get my environment up and running using the supported GHC,…
user2913694
-1
votes
1 answer

why i got error while launching stack build?

I am new in haskell programming. For my university project our teacher send us the project and ask us to run these command : "stack init" then "stack build" when i am running stack build a got this error : Project.cabal was modified manually.…
-1
votes
1 answer

How do I add a library to a Stack project? (Haskell)

I know this question has probably been asked a thousand times, but I'm currently learning Haskell, and I'm making a little random number generator / guessing game. I got all the terminal input and output working, and started trying to figure out…
-1
votes
1 answer

transformers-0.5.6.2 from stack configuration does not match >=0.3 && ==0.2.*

I'm trying to include quickcheck-instances package for testing. Here is how my dependencies field in package.yaml looks like: dependencies: - blackjack - quickcheck-instances >= 0.3.25 && < 0.4 - QuickCheck >= 2.14.2 && < 2.15 Here is how my…
Xwtek
  • 1,151
  • 1
  • 9
  • 19
-1
votes
1 answer

Haskell interpreter eval to create functions

I am trying to implement eval on function expressions to be able to create functions on my interpreter. So far I have this : data Exp = FunExp String Exp| AppExp Exp Exp data Val = Closure String Exp Env eval (FunExp v body) env = Closure v body…
-1
votes
1 answer

How could i find path to file by his name?

Sooo guys I have to find path to the file by his name I've found this func. findExecutable but it's not working F.e: fileName <- getLine ("file.txt") filePath <- findExecutable fileName case filePath of Nothing -> error "I…
Ashot Bes
  • 39
  • 7
-1
votes
1 answer

Haskell. Implement a function that takes a string as input and expands its compressed representation

Implement a function (myData2Fun) that takes a string as input and expands its compressed representation according to the rules for encoding series lengths. The essence of compression is that consecutive identical characters are combined into one…
-1
votes
1 answer

Installing bhoogle through stack

I'm here And see: Command Line UI There is a terminal/curses based UI available through cabal install bhoogle. I'd like to install with stack rather than cabal. I run $ stack install hoogle Copied executables to /home/username/.local/bin: -…
Mittenchops
  • 18,633
  • 33
  • 128
  • 246
-1
votes
1 answer

How to specific binding port for Haskell app ?

When I run and app using stack, it said $ stack exec duckling-example-exe no port specified, defaulting to port 8000 Listening on http://0.0.0.0:8000 However, I would like to bind the port to $PORT (in order to host on heroku). How should I do so…
Haha TTpro
  • 5,137
  • 6
  • 45
  • 71
-1
votes
1 answer

Basic error in Paskell

I've just started to try and learn Haskell, and I have encountered a problem. I am using windows CMD and I have created a program.hs .txt file for my first program, which includes a simple a + b function. I have written answer = a + b in the txt…
-1
votes
1 answer

Why does stack give wierd charcter encoding in error output on windows?

I have a file tmp.hs with the following content: {- stack script --resolver lts-10.3 -} when I run stack tmp.hs I get the following output ?[;1mC:\Users\ludvig.hult\Source\adventofcode2016\Day1\tmp.hs:0:53:…
LudvigH
  • 3,662
  • 5
  • 31
  • 49
1 2 3
84
85