FiraCode icon indicating copy to clipboard operation
FiraCode copied to clipboard

linear haskell `#->` operator

Open ghost opened this issue 5 years ago • 6 comments

in linear haskell, ->. is used as the linear version of the standard arrow ->. this bugs me + others as it doesn’t look anything like the inherent mathematical symbol (U+22B8 MULTIMAP ). visually speaking, it’s a stretch, so if it’s too jarring perhaps keep the tip the arrow for a ->o-style thing with the tip de-emphasized

while being an extremely small use case, it would make the lives of three people out there slightly more beautiful

ghost avatar Dec 14 '19 20:12 ghost

Ok, I’ll look into it

tonsky avatar Dec 16 '19 13:12 tonsky

it’s been revealed that in upcoming GHC 12, linear types are finally officially coming to haskell! although, the operator is now #-> could you do something with that?

chroma04 avatar Jun 23 '20 14:06 chroma04

I’m not sure... #-> looks pretty decent right now

tonsky avatar Jun 23 '20 15:06 tonsky

Yes please provide for "⊸" character, it looks quite out of place at the moment because it falls back to a different font (Noto Sans Mono in this case):

image

hellwolf avatar Jun 30 '23 08:06 hellwolf

Slightly reviving this - Please add. It's not a terribly complicated character, but it always looks out of place in my code.

jake-87 avatar Aug 19 '23 05:08 jake-87

Scala Libretto also contains similar linear functions aka lollipop. Ligatures will be welcome to make it somewhat consistent with Linear Haskell ⊸ operator.

ploddi avatar Sep 05 '23 15:09 ploddi