Comments (6)
AFAIU GHC simply ignores the warning flags that it does not understand. So I'll just activate the flag by default.
from dante.
Some context:
- https://www.reddit.com/r/haskell/comments/7a9d8b/why_is_cabal_so_bad_at_managing_modules/dp8tv3z/
- https://downloads.haskell.org/~ghc/8.2.1/docs/html/users_guide/using-warnings.html#ghc-flag--Wmissing-home-modules
from dante.
You can now customize dante-load-flags
. Should we have -Wwarn=missing-home-modules
in there?
from dante.
P-p-perhaps, if this is the correct way around this.
from dante.
It seems like the warning does not really hurt. Without more info I'd leave the users to customize this themselves. (Note -Wall is now disabled by default.)
from dante.
Does Dante have a good way of only adding flags for certain versions of GHC? This flag/warning is new for 8.2, so I'd imagine using the flag for prior versions would error out the ghci invocation.
Otherwise, if I understand the situation correctly, this warning will be tripped every time because of the nature of how Dante loads Haskell snippets in the REPL instance. So it makes sense to me to put in -Wwarn=missing-home-modules
as a default flag.
from dante.
Related Issues (20)
- I wrote a blog post "How I use dante" HOT 1
- lcr-resume invalid function with emacs 27 HOT 22
- Crash upon opening .hs file HOT 7
- Donations/sponsorships? HOT 2
- Jump to definition and Info unreliable. Configuration of test targets hard to get right HOT 13
- Error while checking syntax automatically: (error "Buffer *dante:<name>::<path>/* has no process") HOT 1
- Tooltip errors don't display hole fits every time HOT 1
- hlint-enabling snippet adds haskell-hlint many times
- Dante forgets directory variables (dante-methods) from time to time HOT 1
- Problem with global-flycheck-mode enabled HOT 1
- dir-local dante-target HOT 6
- Bad formating if no newline present
- Unable to get dante working with SimulaVR HOT 2
- How is this related to the haskell-language-server? HOT 2
- Setting up Dante Targets for enabling jump to definition and repl HOT 1
- Using Dante with stack script HOT 9
- Support for Emacs 27 dropped in 6d212f3 HOT 5
- Warnings and errors disappear after asking flycheck to reload unchanged buffer. HOT 1
- Complains about no loading method applies, even if all variables are set.
- dante doesn't install with Aquamacs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dante.