我有一个elm 0.15的你好世界程序,
import Text exposing (asText)
main = asText "Hello"在使用elm-make h.elm编译到html时,它会抛出错误,
Error in basics2.elm:
Import Error: Could not import value 'Text.asText'.
It is not exported by module Text.注意:我使用的是import Text exposing (asText),而不是import Text (asText),因为ELM0.15编译器明确地指示我这样做。
发布于 2015-06-30 15:34:21
使用Graphics.Element.show而不是从榆树0.15开始
import Graphics.Element exposing (show)
main = show "Hello"https://stackoverflow.com/questions/31142315
复制相似问题