Skip to content

Can't compile unicode symbols #652

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

Closed
4lex1v opened this issue May 17, 2015 · 3 comments
Closed

Can't compile unicode symbols #652

4lex1v opened this issue May 17, 2015 · 3 comments

Comments

@4lex1v
Copy link

4lex1v commented May 17, 2015

When i type something with haskell-mode, it replaces std symbols with prettier unicode alternatives, e.g:

function :: Ord c => c -> (c, c)
with
function :: Ord c ⇒ c → (c, c)

But when i hit haskell-process-cabal-build i throws me these errors:

Not in scope: type constructor or class ‘⇒’
Not in scope: type constructor or class ‘→’

I've added an extension to .cabal file : extensions: UnicodeSyntax, but it didn't help. I like unicode symbols, but can't compile files.

@gracjan
Copy link
Contributor

gracjan commented May 17, 2015

Hi @4lex1v,

Try the following: Add this line at the top of Haskell source file:

{-# LANGUAGE UnicodeSyntax #-}

and report back. Also can you upload your source file somewhere, for example http://lpaste.net/ is a good place for Haskell code.

@geraldus
Copy link
Contributor

extensions: UnicodeSyntax

should it be default extensions:?

@4lex1v
Copy link
Author

4lex1v commented May 17, 2015

@geraldus Thank you, correct, it should be default-extensions and it should be placed under the library section.

@4lex1v 4lex1v closed this as completed May 17, 2015
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

3 participants