{"action":"created","issue":{"url":"https://api.github.com/repos/haskell/haskell-mode/issues/764","labels_url":"https://api.github.com/repos/haskell/haskell-mode/issues/764/labels{/name}","comments_url":"https://api.github.com/repos/haskell/haskell-mode/issues/764/comments","events_url":"https://api.github.com/repos/haskell/haskell-mode/issues/764/events","html_url":"https://github.com/haskell/haskell-mode/issues/764","id":95063376,"number":764,"title":"Highlight hyperlinks in \"haskell-compile\" when using stack","user":{"login":"k-bx","id":107968,"avatar_url":"https://avatars.githubusercontent.com/u/107968?v=3","gravatar_id":"","url":"https://api.github.com/users/k-bx","html_url":"https://github.com/k-bx","followers_url":"https://api.github.com/users/k-bx/followers","following_url":"https://api.github.com/users/k-bx/following{/other_user}","gists_url":"https://api.github.com/users/k-bx/gists{/gist_id}","starred_url":"https://api.github.com/users/k-bx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k-bx/subscriptions","organizations_url":"https://api.github.com/users/k-bx/orgs","repos_url":"https://api.github.com/users/k-bx/repos","events_url":"https://api.github.com/users/k-bx/events{/privacy}","received_events_url":"https://api.github.com/users/k-bx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-14T23:12:32Z","updated_at":"2015-07-14T23:22:25Z","closed_at":null,"body":"The new haskell stack tool outputs compilation errors shifted by 4 spaces right, which breaks highlighting of errors, since `haskell-compilation-error-regexp-alist` has a regex that must start a line with no spaces.\r\n\r\nExample compilation output that's not highlighted:\r\n\r\n```\r\n-*- mode: haskell-compilation; default-directory: \"~/workspace/protocol-buffers/\" -*-\r\nHsCompilation started at Wed Jul 15 02:09:36\r\n\r\ncd /Users/kb/workspace/protocol-buffers/ && stack build\r\nhprotoc-2.1.3-0bfa2fc6ae7966890c323cb09dc4b57f: unregistering (missing dependencies: alex, protocol-buffers, protocol-buffers-descriptor)\r\nprotocol-buffers-2.1.3-a9fbe21f68c562356c7d2b85e44d031e: unregistering (local file changes)\r\nprotocol-buffers-descriptor-2.1.3-c816db2c5a31354b20177edcb197fe2f: unregistering (missing dependencies: protocol-buffers)\r\nprotocol-buffers-2.1.3: build\r\nalex-3.1.4: configure\r\nalex-3.1.4: build\r\nalex-3.1.4: install\r\nProgress: 2/4\r\n--  While building package protocol-buffers-2.1.3 using:\r\n      /usr/local/bin/runhaskell -package=Cabal-1.18.1.5 -clear-package-db -global-package-db -package-db=/Users/kb/.stack/snapshots/x86_64-osx/lts-2.16/7.8.4/pkgdb/ /var/folders/7l/3ys9j0lx20j6z69lm6s_9r780000gn/T/stack41978/Setup.hs --builddir=.stack-work/dist/x86_64-osx/Cabal-1.18.1.5/ build\r\n    Process exited with code: ExitFailure 1\r\n    Logs have been written to: \"/Users/kb/workspace/protocol-buffers/.stack-work/logs/protocol-buffers-2.1.3.log\"\r\n\r\n    Building protocol-buffers-2.1.3...\r\n    Preprocessing library protocol-buffers-2.1.3...\r\n    [10 of 10] Compiling Text.ProtocolBuffers ( Text/ProtocolBuffers.hs, .stack-work/dist/x86_64-osx/Cabal-1.18.1.5/build/Text/ProtocolBuffers.o )\r\n    \r\n    Text/ProtocolBuffers.hs:54:1: parse error on input ‘import’\r\n\r\nHsCompilation exited abnormally with code 1 at Wed Jul 15 02:09:54\r\n```\r\n\r\nYou can see that part `Text/ProtocolBuffers.hs:54:1: parse error on input ‘import’` is not being highlighed as a hyperlink.\r\n\r\nI propose improving `haskell-compilation-error-regexp-alist` variable by allowing spaces in line-beginning.\r\n\r\nI'm really bad at elisp (especially its regexes, string, escaping syntax etc), so probably would be better if some of you would fix this. I quick-fixed this by removing `^` symbol to just match anywhere, not at line-beginning, but better would be to explicitly only allow spaces.\r\n\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/haskell/haskell-mode/issues/comments/121424891","html_url":"https://github.com/haskell/haskell-mode/issues/764#issuecomment-121424891","issue_url":"https://api.github.com/repos/haskell/haskell-mode/issues/764","id":121424891,"user":{"login":"k-bx","id":107968,"avatar_url":"https://avatars.githubusercontent.com/u/107968?v=3","gravatar_id":"","url":"https://api.github.com/users/k-bx","html_url":"https://github.com/k-bx","followers_url":"https://api.github.com/users/k-bx/followers","following_url":"https://api.github.com/users/k-bx/following{/other_user}","gists_url":"https://api.github.com/users/k-bx/gists{/gist_id}","starred_url":"https://api.github.com/users/k-bx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k-bx/subscriptions","organizations_url":"https://api.github.com/users/k-bx/orgs","repos_url":"https://api.github.com/users/k-bx/repos","events_url":"https://api.github.com/users/k-bx/events{/privacy}","received_events_url":"https://api.github.com/users/k-bx/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T23:22:25Z","updated_at":"2015-07-14T23:22:25Z","body":"Just in case someone takes this, regex for skipping \"Loading module\" spam also could get this kind of an improvement!"}}