GithubHelp home page GithubHelp logo

nvim-hs-ghcid's People

Contributors

saep avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

uuhan

nvim-hs-ghcid's Issues

Improve displaying of error messages

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.

support for current hackage ?

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 ?

Can't figure out where to put nvim-hs config

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

nvim-hs-2.3.2.0 breaks nvim-hs-ghcid-2.0.0.0

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.