Skip to content

Fully support base-unicode-symbols #93

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

Open
langston-barrett opened this issue Jul 20, 2015 · 5 comments
Open

Fully support base-unicode-symbols #93

langston-barrett opened this issue Jul 20, 2015 · 5 comments

Comments

@langston-barrett
Copy link
Contributor

As a part of the Unicode support feature, I propose that stylish-haskell could support the functions in base-unicode-symbols.

Related code is in this file.

Related to #3 and #81.

I'd be interested in helping out, but I can't really understand the code in that file.

@MrDetonia
Copy link

I'd like to see this also.
The mentioned code is now in this file.

It seems currently only converting :: => and -> will work, and they only seem convert in type signatures for me. Example below:

getPort  SvHashTable  Server  IO (Maybe Port)
getPort ht sv = do
  se <- H.lookup ht sv
  case se of
       Nothing           -> return Nothing
       Just (port,_,_,_) -> return $ Just port

Could we get more conversions and more detection?

@langston-barrett langston-barrett changed the title Fully support base-unicode-syntax Fully support base-unicode-symbols Jul 2, 2016
@langston-barrett
Copy link
Contributor Author

@MrDetonia I think you're talking about the UnicodeSyntax language extension in #3, rather than the base-unicode-symbols package mentioned in this issue.

@jaspervdj
Copy link
Member

I prefer to have something that works without extra dependencies, so I'd rather just have very good UnicodeSyntax support.

@langston-barrett
Copy link
Contributor Author

@jaspervdj Maybe this could be an optional feature, disabled by default, like UnicodeSyntax?

@id-ekaagr
Copy link

id-ekaagr commented Oct 10, 2022

stylish haskell is even replacing unicode with ASCII characters on it's own (with UnicodeSyntax pragma on).

example :

data Maybes a where
 Nothings ∷ Maybes a
 Justs ∷ a -> Maybes a

converts to

data Maybes a where
 Nothings :: Maybes a
 Justs :: a -> Maybes a

makes it impossible to deal with.

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

4 participants