ghc-mod icon indicating copy to clipboard operation
ghc-mod copied to clipboard

Bug: Without extension file cannot be recognized

Open cblp opened this issue 10 years ago • 2 comments

$ head -n 1 ./test
#!/usr/bin/env runhaskell
$ ghc-mod check ./test
ghc-mod: target ‘./test’ is not a module name or a source file

ghc-mod version 5.2.1.2 compiled by GHC 7.8.4

cblp avatar Aug 20 '15 15:08 cblp

This is tricky since that error is coming from the GHC API I believe. But it's probably just related to guessTarget.

DanielG avatar Aug 21 '15 02:08 DanielG

See also #688

DanielG avatar Jan 03 '16 17:01 DanielG