Skip to content

Commit

Permalink
feat(parser): Add more operator characters
Browse files Browse the repository at this point in the history
This pulls all operators allowed in Haskell 2010
  • Loading branch information
Marwes committed Dec 19, 2017
1 parent 77f8ec0 commit 6a54edb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/src/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ fn get_return_type(env: &TypeEnv, alias_type: &ArcType, arg_count: usize) -> Arc
}

pub fn is_operator_char(c: char) -> bool {
"#+-*/&|=<>:.@".chars().any(|x| x == c)
"!#$%&*+-./<=>?@\\^|-~:".chars().any(|x| x == c)
}

pub fn is_constructor(s: &str) -> bool {
Expand Down

0 comments on commit 6a54edb

Please sign in to comment.