Last active
August 29, 2015 14:00
-
-
Save trillioneyes/11088670 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import XMonad.ManageHook ((-->)) | |
hands :: Int | |
hands = 5 + undefined | |
complaint :: Int -> String | |
complaint _ = "Lots of things are red now for no reason. Also, strings aren't highlighted right." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- With this workaround, the file is highlighted correctly. | |
import XMonad.ManageHook ((--> | |
)) | |
-- Interestingly, when (-->) is used as an operator, there's no problem: | |
example :: a | |
example = hands --> complaint -- "complaint" doesn't have comment markup! | |
-- I wonder if it's just the parentheses? | |
example' :: a | |
example' = (-->) hands complaint | |
-- Since both of these cases are free from the problem, I think we can conclude the error is somewhere in the import list processing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment