How to install d3js Haskell package?

I'd just like to try the Haskell d3js package. Here's what I tried: stack install d3js But it gives the error: Error: While constructing the build plan, the following exceptions were encountered: In the dependencies for d3js- base-...
more »

2017-08-15 17:08 (2) Answers

intero-goto-definition doesn't include libraries?

I am trying to use M-. to go to the definition of a function, but it seems like intero-goto-definition only works the library I am currently developing, not on ones that I am importing. Here is my stack.yaml: flags: {} extra-package-dbs: [] package...
more »

2017-08-11 21:08 (1) Answers

Stack test output garbled on MINGW64

I'm running GHC using Stack on Windows 10, and using Git Bash (MINGW64) for much of my daily workflow. That includes using GHC and GHCi, which generally works fine. However, when I run stack test from MINGW64, the output is garbled by ANSI color cod...
more »

2017-08-10 10:08 (1) Answers

`stack test` not returning any results

I have a stack project set up but when I run stack test I do not get any output or errors. However if I run the test file directly runhaskell Tests.hs, I get my desired results. c:\storeCredit>stack test storeCredit- test (suite: storeCr...
more »

2017-08-07 17:08 (0) Answers

How to upgrade stack ghc

stack ghc -- --version The Glorious Glasgow Haskell Compilation System, version 7.10.3 I want to upgrade to ghc 8. How can I tell stack to upgrade ghc? ...
more »

2017-08-04 06:08 (1) Answers

Instruct stack to use the already installed MinGW

I have msys2 installed separately from GHC. MinGW toolchain is installed inside of the msys environment. Now I'm running into issues with some native libraries that work when I use them outside of Haskell, but don't work when ran from Haskell code. ...
more »

2017-08-02 14:08 (0) Answers

Cloud Haskell query

I am trying to execute the code on I get the following error $ ghc -threaded Main.hs [1 of 1] Compiling M...
more »

2017-07-31 21:07 (0) Answers

How to add memory profiling options to stack test

when running stack test --profile it automatically adds the -p rts option. I am trying to do some memory profiling on my test suite and so would like to add the hc, or hy rts option. This doesn't seem to work stack test --profile --ghc-options="+RT...
more »

2017-07-29 17:07 (1) Answers

Stack and git are incompatible in Windows 7?

I have been using Stack for dependencies management and building system for Haskell programs in Windows 7 Pro without problems. stack --version Version 1.3.2, Git revision 3f675146590da4f3edf768b89355f798229da2a5 x86_64 hpack-0.15.0 I have...
more »

2017-07-28 00:07 (0) Answers

Conditional selection of integer simple in Stack

Due to licensing constraints, we need to use the integer-simple variant of GHC when compiling in Windows platforms. Currently this is specified in our stack.yaml file: ghc-variant: integersimple # ... extra-deps: - text- # Override default fl...
more »

2017-07-18 12:07 (1) Answers

Stack unsupported version

I'm trying to build libssh2-hs with stack (lts-3.20) and I get some errors: $ stack build No compiler found, expected minor version match with ghc-7.10.2 (x86_64-ncurses6) (based on resolver setting in /home/black/programmation/haskell/libssh2-hs/st...
more »

2017-07-08 17:07 (1) Answers

Haskell : Syntax error

I am use Haskell stack. module Len () where my_nthele :: String -> Integer -> Char my_nthele [] n = '' my_nthele (x:xs) n | n == 0 = x | otherwise = my_nthele xs (n-1) Haskell interpreter shows "src/Len.hs:5...
more »

2017-06-22 01:06 (1) Answers