I'm a trying to get into Haskell. The Function itself (without pattern matching) works, but with the pattern matching I get this error:
error: parse error on input ‘->’
|
23 | print_is_even ∷ Bool -> String
|
print_is_even ∷ Bool -> String
print_is_even x = if x==True then "Is even" else "Not even"
Either turn on the UnicodeSyntax extension, or use :: instead of ∷.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With