elm

    0热度

    1回答

    试图使用Svg和Svg.Attributes。收到错误消息 I cannot find module 'Svg'. Module 'Main' is trying to import it. Potential problems could be: * Mispelled the module name * Need to add a source directory

    0热度

    1回答

    分析任何字符,除了少数的最好办法,就是用noneOf组合子, 遗憾的是它不工作,如果我以下列方式结合起来: Combine.parse (Combine.parens <| Combine.many <| Combine.Char.noneOf ['"', '\\']) "()" Err ((),{ data = "()", input = "", position = 2 },["expec

    1热度

    1回答

    如何检测映像是否无法加载到Elm中? 我使用img [ src "/path/to/image" ],并且想知道图像是否加载失败。 在计划的旧JavaScript中,我将注册为onError事件img,但我在Elm中看不到onError。

    0热度

    1回答

    我试图用榆树显示快速排序的排序过程 [ 5, 8, 6, 2, 4, 1, 0, 3, 10, 7, 9 ] [2,4,1,0,3] 5 [8,6,10,7,9] [1,0] 2 [4,3] [6,7] 8 [10,9] [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] 现在,我可以拿到第2行,但我不能确定如何在递归的方式接近这一点。 list_to_ht

    5热度

    1回答

    我试图在我的机器上安装elm(Ubuntu 16.04.2 LTS)。 根据该链接上的说明运行$ npm install -g elm,我收到一个权限错误。所以我用sudo再试一次,即$ sudo npm install -g elm。 这给出了另一个权限错误,即 $ sudo npm install -g elm npm WARN deprecated [email protected]: U

    -1热度

    1回答

    大多数单元测试框架支持在断言中有一个字符串,当断言失败时它会被打印出来。到目前为止,我在榆树测试中看不到这种能力?(!)

    0热度

    1回答

    以下测试结果属性“href”属性在运行时异常: test "search yields profile" <| \_ -> let -- Setup location = Navigation.Location "" "" "" "" "" "" "" "" "" "" "" (model, _) = Home.init

    0热度

    1回答

    有没有办法用Elm为页面构建组件,并在同一个Elm文件中编译两个组件,以及使用相同的代码加载两次相同的组件? 你知道我该怎么做吗?

    2热度

    1回答

    我一直在阅读过Richard Feldman's Elm SPA app example,和我看到这样的一些东西examples: type Username = Username String 和我当它有意义的使用类似的东西不知道,一个单值联合类型,与只是一个类型别名是这样的: type alias Username = String 什么时候适合只使用一个单值工会与

    0热度

    2回答

    请帮助 - 查询首先打印旧消息。我需要改变顺序。 $query = "SELECT post_title, `post_content`, `post_name` FROM wp_posts WHERE post_date > '$start' AND post_date < '$end' AND post_type='news' AND post_status = 'publish'";