1

我在玩 Elm 并收到以下错误消息:

[1 of 1] Compiling Main                ( Main.elm )
Parse error at (line 3, column 1):
unexpected '\t'
expecting newline, spaces or end of input

制表符在 Elm 中是否像在 Python 中一样具有特殊含义?


例如http://share-elm.com/sprout/53d1a38ae4b07afa6f98344d

main : Element
main = flow down
    [ leftAligned (toText "A")
    , leftAligned (toText "B")
    , leftAligned (toText "C")
  ]
4

2 回答 2

5

它抱怨您使用制表符而不是空格来缩进。

当您将制表符替换为空格时,您将看到代码有效。

http://share-elm.com/sprout/53d1ad92e4b07afa6f983471

于 2014-07-25T01:07:00.137 回答
0

您是否有任何机会添加了一个制表符空间而不是一个新行?

于 2014-07-25T00:10:27.567 回答