Skip to content

Parsing problem with ghc-8.2.1 #1553

Closed
@ruomad

Description

@ruomad

It seems the messages when loading a file have changed with ghc-8.2.1.
I got the error "Unexpected response from haskell process".
After looking into it, I fixed it by changing the regex in haskell-load.el. My patch is :

--- Source/hs/haskell-load.el 2017-09-06 12:24:28.341913600 +0200
+++ .emacs.d/elpa/haskell-mode-20170903.948/haskell-load.el 2017-09-06 12:30:54.954209500 +0200
@@ -107,11 +107,11 @@
(let* ((ok (cond
((haskell-process-consume
process

  •            "Ok, modules loaded: \\(.+\\)\\.$")
    
  •            "Ok, \\([[:digit:]]+ \\)?modules? loaded[.:]\\(.*\\)$")
              t)
             ((haskell-process-consume
               process
    
  •            "Failed, modules loaded: \\(.+\\)\\.$")
    
  •            "Failed, \\([[:digit:]]+ \\)?modules? loaded[.:]\\(.*\\)$")
              nil)
             (t
              (error (message "Unexpected response from haskell process.")))))
    

I didn't check it's working on previous ghc versions, but it's meant to do it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions