File tree Expand file tree Collapse file tree 4 files changed +414
-256
lines changed
assets/some-application/src
src/Compiler/Generate/JavaScript Expand file tree Collapse file tree 4 files changed +414
-256
lines changed Original file line number Diff line number Diff line change @@ -19,4 +19,7 @@ bin/guida.js
19
19
bin /guida.min.js
20
20
21
21
# Try
22
- try /public /app.js
22
+ try /public /app.js
23
+
24
+ # Assets
25
+ assets /some-application /index.html
Original file line number Diff line number Diff line change
1
+ module MaybeMap exposing (main )
2
+
3
+ import Html exposing (Html )
4
+
5
+
6
+ andMap : Maybe a -> Maybe (a -> b ) -> Maybe b
7
+ andMap =
8
+ Maybe . map2 (|>)
9
+
10
+
11
+ type alias X =
12
+ { x1 : Int
13
+ , x2 : Int
14
+ , x3 : Int
15
+ , x4 : Int
16
+ , x5 : Int
17
+ , x6 : Int
18
+ , x7 : Int
19
+ , x8 : Int
20
+ , x9 : Int
21
+ , x10 : Int
22
+ , x11 : Int
23
+ , x12 : Int
24
+ , x13 : Int
25
+ , x14 : Int
26
+ , x15 : Int
27
+ , x16 : Int
28
+ , x17 : Int
29
+ , x18 : Int
30
+ , x19 : Int
31
+ , x20 : Int
32
+ , x21 : Int
33
+ , x22 : Int
34
+ , x23 : Int
35
+ , x24 : Int
36
+ }
37
+
38
+
39
+ main : Html msg
40
+ main =
41
+ let
42
+ foo a =
43
+ Just X
44
+ |> andMap a
45
+ |> andMap a
46
+ |> andMap a
47
+ |> andMap a
48
+ |> andMap a
49
+ |> andMap a
50
+ |> andMap a
51
+ |> andMap a
52
+ |> andMap a
53
+ |> andMap a
54
+ |> andMap a
55
+ |> andMap a
56
+ |> andMap a
57
+ |> andMap a
58
+ |> andMap a
59
+ |> andMap a
60
+ |> andMap a
61
+ |> andMap a
62
+ |> andMap a
63
+ |> andMap a
64
+ |> andMap a
65
+ |> andMap a
66
+ |> andMap a
67
+ |> andMap a
68
+ in
69
+ foo ( Just 1 )
70
+ |> Debug . toString
71
+ |> Html . text
You can’t perform that action at this time.
0 commit comments