Skip to content

Commit

Permalink
Force GHC to treat files as Haskell source
Browse files Browse the repository at this point in the history
Makes GHC handle files without extension (e.g. runhaskell scripts)
correctly.
  • Loading branch information
swsnr committed Mar 28, 2014
1 parent c043140 commit 76b4cc1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.rst
Expand Up @@ -7,6 +7,7 @@ master (in development)

- #334: When stopping Flycheck, correctly kill running processes and cleanup
their temporary files
- Do not choke on files without extensions in `haskell-ghc`

0.18 (Mar 24, 2014)
-------------------
Expand Down
5 changes: 4 additions & 1 deletion flycheck.el
Expand Up @@ -4262,7 +4262,10 @@ See URL `http://www.haskell.org/ghc/'."
flycheck-ghc-no-user-package-database)
(option-list "-package-db" flycheck-ghc-package-databases)
(option-list "-i" flycheck-ghc-search-path s-prepend)
source)
;; Force GHC to treat the file as Haskell file, even if it doesn't
;; have an extension. Otherwise GHC would fail on files without an
;; extension
"-x" "hs" source)
:error-patterns
((warning line-start (file-name) ":" line ":" column ":"
(or " " "\n ") "Warning:" (optional "\n")
Expand Down

0 comments on commit 76b4cc1

Please sign in to comment.