Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cygwin compatibility (cygpath) #95

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ar-nelson
Copy link

Cygwin Vim currently breaks ghcmod-vim because there isn't a (recent) Cygwin version of Haskell, therefore Vim and ghc-mod use different path formats (Unix vs. Windows). This patch fixes those compatibility issues. Specifically:

  • Unix/Windows paths are translated as needed, using vimproc and cygpath, but only when has("win32unix") is true.
  • Reading ghc-mod output takes into account that the path format may be different from Vim's (includes backslashes in path regex).
  • Carriage returns are removed from ghc-mod output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant