Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/haskell/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
我的Haskell代码有问题吗_Haskell_Functional Programming_Ghci - Fatal编程技术网

我的Haskell代码有问题吗

我的Haskell代码有问题吗,haskell,functional-programming,ghci,Haskell,Functional Programming,Ghci,我正在尝试使用ghci 7.8.3在Haskell中编写一些代码。 当我输入这个代码时,这是因为它应该是这样的: [x*2 | x <- [1..10]] -- notice | instead of ¦ [x*2|x[x*2|x这是因为它应该是这样的: [x*2 | x <- [1..10]] -- notice | instead of ¦ [x*2|x[x*2|x@Nicholas确保您拥有正确的键盘布局设置(最好是美国或英国)。@Nicholas确保您拥有正确的键盘布局设

我正在尝试使用ghci 7.8.3在Haskell中编写一些代码。
当我输入这个代码时,这是因为它应该是这样的:

[x*2 | x <- [1..10]] -- notice | instead of ¦

[x*2|x[x*2|x这是因为它应该是这样的:

[x*2 | x <- [1..10]] -- notice | instead of ¦

[x*2|x[x*2|x@Nicholas确保您拥有正确的键盘布局设置(最好是美国或英国)。@Nicholas确保您拥有正确的键盘布局设置(最好是美国或英国)。