vim-ghcid-quickfix icon indicating copy to clipboard operation
vim-ghcid-quickfix copied to clipboard

Quickfix List output from GHCid looks strange

Open kozross opened this issue 4 years ago • 2 comments

I'm using Vim on Windows. When I have code like this:

module AI.AutoMark where

foo :: Int -> String -> Int

My Quickfix List looks like this:

|| [0K
|| Loading cabal new-repl ...[0K[?25l
|| [0K[?25h[?1005l[?1000h[?1002h[?1003h[?1015h[?1006h
|| Build profile: -w ghc-8.4.4 -O2[0K[?25l
|| In order, the following will be built (use -v for more details):[0K
||  - automark-1.0.0.0 (lib) (file src\AI\AutoMark.hs changed)[0K
|| [0K[?25h
|| Preprocessing library for automark-1.0.0.0..[0K[?25l
|| [0K[?25h
|| GHCi, version 8.4.4: http://www.haskell.org/ghc/  :? for help[0K[?25l
|| [0K[?25h
|| ;[1 of 1] Compiling AI.AutoMark      ( src\AI\AutoMark.hs, interpreted )[0K[?25l
|| [0K
.\src\AI\AutoMark.hs|3 col 1| error:[0K
||     The type signature for `foo' lacks an accompanying binding[0K
||   |[0K
|| 3 | foo :: Int -> String -> Int[0K
||   | ^^^[0K
|| Failed, no modules loaded.[0K
|| [0K
.\src\AI\AutoMark.hs|3 col 1| error:[0K
||     The type signature for `foo' lacks an accompanying binding[0K
||   |[0K
|| 3 | foo :: Int -> String -> Int[0K
||   | ^^^[0K
|| [0K
|| [0K
|| [0K
|| [0K
|| [0K
|| [0K
|| [0K
|| [0K
|| [0K
|| [0K
|| [0K
|| [0K
|| [0K
|| [0K
|| [0K
|| [0K
|| [0K
|| [0K
|| [0K
|| [0K
|| [0K
|| [0K
|| [0K
|| [0K
|| [0K
|| [0K
|| [0K
|| [0K[?25h[?25l
|| [0K
|| [0K[?25h

It doesn't look that way if I run GHCid in my PowerShell terminal manually.

kozross avatar Nov 01 '19 02:11 kozross

Thank you for reporting!

But sorry, I don't have Windows development environment... And I cannot understand why it is happened...

I'm glad if you can fix this.

Would you like this? :bow:

aiya000 avatar Nov 02 '19 06:11 aiya000

I know precisely this end of nothing about Windows anything - I am forced to use Windows at work, and I use vim (and a bunch of other things) to make it at least somewhat tolerable.

kozross avatar Nov 03 '19 22:11 kozross