Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.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
Elm 找不到可变文本。颜色_Elm - Fatal编程技术网

Elm 找不到可变文本。颜色

Elm 找不到可变文本。颜色,elm,Elm,在尝试编译Elm教程中的Pong时,我遇到了一个错误,无法找到变量Text.color textGreen = rgb 160 200 160 txt f = leftAligned << f << monospace << Text.color textGreen << toText msg = "SPACE to start, WS and &uarr;&darr; to move" 错误是指我试图设置Text.color时提

在尝试编译Elm教程中的Pong时,我遇到了一个错误,无法找到变量Text.color

textGreen = rgb 160 200 160
txt f = leftAligned << f << monospace << Text.color textGreen << toText
msg = "SPACE to start, WS and &uarr;&darr; to move"
错误是指我试图设置Text.color时提供的第二行。 提前感谢您提供的任何帮助。

你有文本导入吗?导入文本,您列出的代码将被编译

你的txt函数真的是你期望的类型吗


>txt f=leftAligned如果没有完整的模块源代码和精确的编译器输出,很难找到根本原因。