Skip to main content
The 2024 Developer Survey results are live! See the results

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.

haskell-stack
0 votes
0 answers
25 views

How to use Niv to build a Stack project?

I'm working on a Haskell project using NixOS and Stack as the dependency manager. However, I'm having trouble specifying GHC version 8.8.4. To solve the version problem, I am trying to use Niv with ...
Fabian Matias Vega Alcota's user avatar
1 vote
1 answer
36 views

hint runStmt no output when redirected

Following this link and trying to stack run this module: module Main where import Language.Haskell.Interpreter main :: IO () main = do _ <- runInterpreter $ setImports ["Prelude"]...
sjb's user avatar
  • 55
0 votes
0 answers
75 views

Haskell program not finding student in database despite correct ID

I'm encountering an issue with my Haskell program where it's unable to find a student in the database despite providing the correct student ID. Details: Objective: My program is designed to search for ...
Clutchjam007's user avatar
0 votes
0 answers
54 views

Haskell, Stack, importing module shows error "Module not found" [duplicate]

If i write import in .hs file, it pops error saying no module found for "Lib" and "import Numeric.LinearAlgebra ( (><), linearSolve )". Also i got error saying ambiguous type....
user23791247's user avatar
1 vote
1 answer
44 views

Stack error when running benchmarks (tasty-bench)

I try to include some benchmarks in my Haskell package and running stack bench generates an error: Benchmark benchmarks: RUNNING... All Fibonacci numbers fifth: OK (4.28s) 247 ns ± ...
Stéphane Laurent's user avatar
0 votes
1 answer
59 views

How to specify c/c++ compiler on stack install command

I'm learning Haskell and I'm setting up my system for development. I'm on MacOS and trying to install hoogle locally with stack install hoogle fails because the compilation of some libraries fails ...
dec's user avatar
  • 11
0 votes
1 answer
134 views

Is it safe to downgrade Haskell stack version?

Suppose I'd like to build an old stack project from GitHub (which uses snapshot before lts-12.0), can I build it with latest stack? I did some experiments as follows. For example, hpack-convert uses ...
chansey's user avatar
  • 1,409
2 votes
1 answer
127 views

What am I doing wrong in my Haskell library installation/usage?

I want to install and run an example program from the Haskell neural library. I'm pretty new to this and am not sure on whether the issue is with my installation method, my environment or the library(...
college-account's user avatar
2 votes
1 answer
675 views

Haskell language server tries to use incorrect GHC version

I'm trying to use Haskell language server in Spacemacs. I installed HLS using ghcup. My operating system is Ubuntu 20.04.5. When opening a hs-file in Spacemacs, I get the following error message: No '...
phii's user avatar
  • 21
2 votes
1 answer
430 views

Haskell stack local install fails after installing GHC

I am trying to install stack locally (I am on a university account, and can not make a systemwide install). I am following the manual install instructions. I am on a Red Hat system. Here is the ...
Nate's user avatar
  • 12.7k
-1 votes
2 answers
88 views

Yesod fails to run on docker

I'm trying to build yesod according to the docs on docker: # Dockerfile FROM ubuntu:22.04 RUN apt-get update RUN apt-get install curl -y RUN curl -sSL https://get.haskellstack.org/ | sh RUN stack new ...
OrenIshShalom's user avatar
2 votes
2 answers
470 views

How to install package for Haskell with stack and cabal?

I'm attempting to install one small Haskell package. I set up a project using stack: stack new my-project simple This worked out fine. I'm able to build and run the code. But then I stumbled into ...
Rene Saarsoo's user avatar
  • 13.9k
0 votes
1 answer
189 views

Is possible code haskell and run it in github codespace?

I am discovering the github codespace and I think it is a wonderful tool to code and practice coding. As far as I know, the codespace can run python, java, js and html natively. Searching about the ...
Gabriel Monteiro Silva's user avatar
2 votes
2 answers
138 views

Scotty: No instance for MonadIO ScottyT (arising from a use of ‘liftIO’)

I am trying to learn HASKELL by myself, I have found this page https://www.parsonsmatt.org/2015/05/02/scotty_and_persistent.html and I have tried to use the code but I got an error: share [mkPersist ...
Aron's user avatar
  • 1,244
1 vote
2 answers
76 views

understand haskell logic behind odd's and even's index lists

I had a question in haskell that asks a function to divide a list in two different lists so the even indexs filled a list and the odd ones another. Example: func :: [Int] -> ([Int], [Int]) Then, ...
Gabriel Monteiro Silva's user avatar

15 30 50 per page
1
2 3 4 5
86