Comments (9)
In the meantime, I use this Build system:
{
"cmd": ["/home/niklas/.cabal/bin/hdevtools", "check", "-g", "-Wall", "$file"],
"file_regex": "^(.*?):(\\d+):(\\d+):", // Don't end with $ to also parse Warnings
"selector": "source.haskell"
}
Update: Made it parse warnings
Update: Made it recognize the column number
You can jump through the errors with Sublime's inbuilt F4
/ Shift+F4
keyboard shortcuts.
from sublimehaskell.
There are hdevtools.py module with call_hdevtools_and_wait
same as call_ghcmod_and_wait
It can be easily used to check file.
But seems that hdevtools check
shows only errors, does it?
from sublimehaskell.
If you pass -g -Wall
you will get warnings.
However, we have to watch out that like in ghci, the warnings will only be shown once (at the first successful compile), and then only as soon as you change something in the file (doing that and re-checking is super fast in hdevtools though).
from sublimehaskell.
Also relevant: bitc/hdevtools#18 (Using multiple files with same htdevtools instance)
from sublimehaskell.
What kind of cache do you mean there? hdevtools doesn't make any special caches, the only benefit is that it doesn't initialize&configure ghc every time.
from sublimehaskell.
I just mean the information that is loaded into memory - probably the same as would be loaded in a ghci session:
:l Module1 -- takes long to load
:l Module2 -- takes long
:l Module1 -- takes long again
It would be nice if you could load both modules at the same time, getting the speed benefit hdevtools gives you across multiple modules.
from sublimehaskell.
GHC.setTarget
allows to specify several modules, but I don't know If
setTarget ["Module1"]
...
setTarget ["Module1", "Module2"]
will reload "Module1" or just add "Module2".
from sublimehaskell.
@mvoidex I implemented your suggestion for hdevtools and ghc-mod.
This allows us to type check whole projects really fast.
from sublimehaskell.
Closing this issue. Assuming it was implemented.
from sublimehaskell.
Related Issues (20)
- Consider moving Hasky (Dark).tmTheme to its own SublimeHaskell/Hasky repo HOT 1
- msg: File *.hs not found HOT 1
- Error/Hint highlighting in editor gone
- Error in README HOT 1
- Wrong Module Checking
- Hasky Theme removes sidebar HOT 1
- 3 syntax highlighting errors HOT 2
- I press a char a, a tip ANN? HOT 1
- Default stack target
- Haskell (improved) Mode Highlighting Errors HOT 2
- Waive hints
- Insert type command inserts incomplete type
- This, and hsdev and hdocs, are still the best! HOT 2
- Whys is SublimeHaskell so cpu consuming? HOT 2
- Installing hsdev-0.3.3.1 on PixelBook fails (workaround)
- Can I disable 'Uncategorized' errors? HOT 3
- Could not find module Test.Hspec HOT 1
- Hints keep reappearing even after issues have been fixed HOT 1
- fail to use hsdev-0.3.4.* HOT 5
- Installing hsdev, using stack, fails on MacBook Air M2.
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 sublimehaskell.