Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows installation, ambiguous occurrence ‘wM_SETICON’ #374

Open
new-user-name opened this issue Apr 9, 2023 · 1 comment
Open

Comments

@new-user-name
Copy link

new-user-name commented Apr 9, 2023

Windows 11, not WSL2, plain Windows installation from terminal.

src\Language\Haskell\Ghcid\Terminal.hs:66:21: error:
    Ambiguous occurrence ‘wM_SETICON’
    It could refer to
       either ‘Graphics.Win32.Message.wM_SETICON’,
              imported from ‘Graphics.Win32.Message’ at src\Language\Haskell\Ghcid\Terminal.hs:16:1-29
           or ‘Language.Haskell.Ghcid.Terminal.wM_SETICON’,
              defined at src\Language\Haskell\Ghcid\Terminal.hs:21:1
   |
66 |     sendMessage wnd wM_SETICON iCON_SMALL $ fromIntegral $ castPtrToUINTPtr icon
   |                     ^^^^^^^^^^

src\Language\Haskell\Ghcid\Terminal.hs:66:32: error:
    Ambiguous occurrence ‘iCON_SMALL’
    It could refer to
       either ‘Graphics.Win32.Message.iCON_SMALL’,
              imported from ‘Graphics.Win32.Message’ at src\Language\Haskell\Ghcid\Terminal.hs:16:1-29
           or ‘Language.Haskell.Ghcid.Terminal.iCON_SMALL’,
              defined at src\Language\Haskell\Ghcid\Terminal.hs:25:1
   |
66 |     sendMessage wnd wM_SETICON iCON_SMALL $ fromIntegral $ castPtrToUINTPtr icon
   |                                ^^^^^^^^^^

and so on. I know Windows and Haskell are enemies, but for some reason I need this build not under/against WSL2.

@new-user-name
Copy link
Author

Issue resolved.

-- wM_SETICON = 0x0080 :: WindowMessage
wM_GETICON = 0x007F :: WindowMessage

-- iCON_BIG = 1
-- iCON_SMALL = 0

in Terminal.hs, i.e. comment three lines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant