diff options
Diffstat (limited to 'src/parser.rs')
-rw-r--r-- | src/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.rs b/src/parser.rs index 298e09d..9051bfb 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -40,7 +40,7 @@ pub fn parse_lambda(input: &str) -> Result<Expression> { } // fixme: brackets are necessary here rule function() -> Type = "(" f:kind() " "* "->" " "* t:kind() ")" { - Type::Function { from: Box::new(f), to: Box::new(t) } + Type::Function(Box::new(f), Box::new(t)) } rule kind() -> Type = k:(function() / primitive()) { |