saep / nvim-hs-ghcid Goto Github PK
View Code? Open in Web Editor NEWGhcid integration plugin for nvim-hs
License: Other
Ghcid integration plugin for nvim-hs
License: Other
It's currently impossible to see whether this plugin is started properly. I'm not sure how this can be improved, possibly by wring to some kind of hidden message buffer.
The default quick fix list of vim doesn't seem to support multi line error messages, so apart from showing where the error is, the text isn't very well presented for complex errors.
I might be wrong about this, though. Otherwise, it might be nice to improve this situation.
I would like to try this plugin on nixos but I can't because the bounds don't include the newer/current nvim-hs(-contrib) which are at version 2.
Using Parsec parser
Configuring nvim-hs-ghcid-1.0.0.0...
CallStack (from HasCallStack):
die', called at libraries/Cabal/Cabal/Distribution/Simple/Configure.hs:950:20 in Cabal-2.4.0.1:Distribution.Simple.Configure
configureFinalizedPackage, called at libraries/Cabal/Cabal/Distribution/Simple/Configure.hs:460:12 in Cabal-2.4.0.1:Distribution.Simple.Configure
configure, called at libraries/Cabal/Cabal/Distribution/Simple.hs:596:20 in Cabal-2.4.0.1:Distribution.Simple
confHook, called at libraries/Cabal/Cabal/Distribution/Simple/UserHooks.hs:67:5 in Cabal-2.4.0.1:Distribution.Simple.UserHooks
configureAction, called at libraries/Cabal/Cabal/Distribution/Simple.hs:178:19 in Cabal-2.4.0.1:Distribution.Simple
defaultMainHelper, called at libraries/Cabal/Cabal/Distribution/Simple.hs:115:27 in Cabal-2.4.0.1:Distribution.Simple
defaultMain, called at Setup.hs:2:8 in main:Main
Setup: Encountered missing dependencies:
nvim-hs >=1.0 && <2, nvim-hs-contrib >=1.0 && <2
Would it be possible to push an update on hackage please ?
Hello !
I am attempting to set up my environment ( haskell beginner ) however even after browsing nvimhs.vim I can't figure out where to put the so called config file
import Neovim
import qualified Neovim.Ghcid as Ghcid
main :: IO ()
main = neovim defaultConfig
{ plugins = defaultPlugins defaultConfig ++ [ Ghcid.plugin ]
}
Can you be very explicit about where this goes ? It is definitely not trivial for a newbie ! thx
I recommend that you release a new version of nvim-hs-ghcid
that works with the latest nvim-hs
. The build failure I'm observing is:
[1 of 2] Compiling Neovim.Ghcid.Plugin
/private/tmp/nvim-hs-ghcid-2.0.0.0/Neovim/Ghcid/Plugin.hs:121:17: error:
• Couldn't match expected type: Either
(Doc AnsiStyle) Neovim.Context.Internal.FunctionMapEntry
with actual type: Maybe a0
• In the pattern: Nothing
In a \case alternative: Nothing -> return $ return ()
In the second argument of ‘(>>=)’, namely
‘\case
Nothing -> return $ return ()
Just (Left a) -> return a
Just (Right rk) -> return $ Resource.release rk’
|
121 | Nothing ->
| ^^^^^^^
/private/tmp/nvim-hs-ghcid-2.0.0.0/Neovim/Ghcid/Plugin.hs:124:17: error:
• Couldn't match expected type: Either
(Doc AnsiStyle) Neovim.Context.Internal.FunctionMapEntry
with actual type: Maybe (Either (Neovim GhcidEnv ()) b0)
• In the pattern: Just (Left a)
In a \case alternative: Just (Left a) -> return a
In the second argument of ‘(>>=)’, namely
‘\case
Nothing -> return $ return ()
Just (Left a) -> return a
Just (Right rk) -> return $ Resource.release rk’
|
124 | Just (Left a) ->
| ^^^^^^^^^^^^^
/private/tmp/nvim-hs-ghcid-2.0.0.0/Neovim/Ghcid/Plugin.hs:127:17: error:
• Couldn't match expected type: Either
(Doc AnsiStyle) Neovim.Context.Internal.FunctionMapEntry
with actual type: Maybe (Either a1 Resource.ReleaseKey)
• In the pattern: Just (Right rk)
In a \case alternative:
Just (Right rk) -> return $ Resource.release rk
In the second argument of ‘(>>=)’, namely
‘\case
Nothing -> return $ return ()
Just (Left a) -> return a
Just (Right rk) -> return $ Resource.release rk’
|
127 | Just (Right rk) ->
| ^^^^^^^^^^^^^^^
-- While building package nvim-hs-ghcid-2.0.0.0 (scroll up to its section to see the error) using:
/Volumes/Extreme_SSD/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_3.8.1.0_ghc-9.4.3 --verbose=1 --builddir=.stack-work/dist/x86_64-osx/Cabal-3.8.1.0 build lib:nvim-hs-ghcid exe:nvim-hs-ghcid --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
I was able to reproduce this locally like so:
stack unpack nvim-hs-ghcid-2.0.0.0 && cd nvim-hs-ghcid-2.0.0.0
edit stack.yaml # add the following stack.yaml
stack build --test --bench --no-run-benchmarks --fast
# stack.yaml
resolver: nightly-2022-12-12
extra-deps:
- nvim-hs-2.3.2.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.