<~ in elm 0.16.0 gives me a compile time error

北城以北 提交于 2019-12-04 04:18:58

问题


Very new to Elm but wanted to play around with the <~ operator. It seems when I run elm-make, <~ it is not recognized as an operator, and I get the error

Cannot find variable <~

Has this been deprecated ( I see it in the docs at elm-lang.org/docs/syntax#mapping ). Am I just using it incorrectly? Here is my code snippet that will not compile-

sqrtSig : Signal number
sqrtSig = sqrt <~ Mouse.x

回答1:


Yes, <~ and ~ were removed following this discussion



来源:https://stackoverflow.com/questions/33817365/in-elm-0-16-0-gives-me-a-compile-time-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!