haskell运算符允许使用哪些字符? [英] What characters are permitted for haskell operators?

查看:136
本文介绍了haskell运算符允许使用哪些字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有完整的允许字符列表,或者是一个规则,用于确定标识符与运算符可以使用的内容?

解决方案

我正在寻找的是完整的角色列表。根据其他答案,完整列表是:

Unicode标点符号:



Unicode符号:



但是不包括以下在Haskell中具有特殊含义的字符:

 (),; []`{} _:''


Is there a complete list of allowed characters somewhere, or a rule that determines what can be used in an identifier vs an operator?

解决方案

What I was looking for was the complete list of characters. Based on the other answers, the full list is;

Unicode Punctuation:

Unicode Symbols:

But excluding the following characters with special meaning in Haskell:

(),;[]`{}_:"'

这篇关于haskell运算符允许使用哪些字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆