Error on creating Haskell project
See original GitHub issueFreshly installed the plugin and stack
Plugin version: 1.0.0-beta73
Stack version: 2.3.1
Error Message: Error adding module to project: null
Seems similar to #250
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
Error creating new project with Haskell Stack - Stack Overflow
I have Stack Version 1.5.1 and GHC 8.0.2. What could be causing this? I'm really at a loss. I haven't found anything documented...
Read more >User's guide (introductory) - The Haskell Tool Stack
To build your project, Stack uses a project-level configuration file, ... However, rerunning stack build shows us the following error message. Command:.
Read more >Error building stack project with ghc-9.2 on M1 (ghc configure ...
Hi, I tried today to build my stack project using nightly stack resolver (for ghc-9.2.2) and I get an error during ghc configure:...
Read more >GHC 9.2.1 on an m1 Mac error: `ffitarget_arm64.h` file not found
I'm seeing this error when building an existing project: Failed to build wcwidth-0.0.2. Build log ( /Users/stu/.cabal/logs/ghc- ...
Read more >Build a Haskell Cabal Project - YouTube
Build a Hello World Haskell project with Cabal. What is Main Haskell module in Hello World Cabal project ?SUBSCRIBE and LIKE for more...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We get an error if the Project Name has “spaces” or even and underscore “_”. For now the workaround can be
Additional Notes: IntelliJ IDEA 2020.2 Haskell 8.6.3 OS MacOS 10.15.6 Plugin version 1.0.0-beta78
@rikvdkleij I tested it, and
stack new <packagename>
works on the command line.However, a bit more experimenting showed what the actual problem is. I was just getting started with a book on Haskell, and was trying to create a project/package called “Chapter-01”. Which
stack new
on the command line explains is an invalid package name, leading to it not creating the project, and the subsequent missing Cabal file.Perhaps a check on the project/package name would be helpful for people new to Haskell.