Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P49 5.4.3例子执行不通过 #53

Open
tclfs opened this issue Jan 12, 2019 · 1 comment
Open

P49 5.4.3例子执行不通过 #53

tclfs opened this issue Jan 12, 2019 · 1 comment

Comments

@tclfs
Copy link

tclfs commented Jan 12, 2019

GHC版本是8.6.3。
if | False -> 2; | otherwise -> 3;
返回
parse error on input ‘|’错误

@winterland1989
Copy link
Owner

抱歉,我在新版的GHC试验了,需要去掉; , 如下:

if | False -> 2 | otherwise -> 3

感谢反馈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants