Comments (9)
Fwiw, if you M-x package-install haskell-snippets
, you get autocompletion via https://github.com/haskell/haskell-snippets/blob/master/snippets/haskell-mode/lang-pragma
from dante.
I do have completion of LANGUAGE pragmas, when using the standard haskell-mode
package combined with company
auto-completion package. Just make sure that company-capf
is part of the local variable company-backends
:
(add-hook 'dante-mode-hook
(lambda ()
(company-mode)
(set (make-local-variable 'company-backends)
'(company-capf))))
from dante.
The best method is to use autofix: use the extension first then use autofix on the error.
from dante.
@Fresheyeball structured-haskell-mode also does this (I think ā¦ at least, some mode Iām using does) and should work fine with Dante.
from dante.
@sellout I'm using the structured-haskell-mode
for this now. But I would rather have better separation of concerns. structured-haskell-mode
does it through stack
I'd like it to be independent.
from dante.
The way that company mode is structured, you can add a completer which only completes pragmas. (This functionality has nothing to do with GHCi and thus I do not think that it belongs in dante.)
from dante.
I do have completion of LANGUAGE pragmas, when using the standard
haskell-mode
package combined withcompany
auto-completion package. Just make sure thatcompany-capf
is part of the local variablecompany-backends
:
The issue I found with this is that company-capf
and dante-company
fight about who should get to complete a symbol. I submitted #118 in order to have dante-company
punt when asked to complete inside a comment, which allows the haskell-mode
pragma completion to kick in with just the standard dante config.
from dante.
The fix for this has been merged, so the issue can probably be closed if someone would like to confirm it works for them with the stock company
configuration.
from dante.
Yep, this works. Thanks @purcell.
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.