Skip to content

Commit 96b9706

Browse files
committed
fix issue on large mapping sequence
1 parent 110aebd commit 96b9706

File tree

4 files changed

+414
-256
lines changed

4 files changed

+414
-256
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,7 @@ bin/guida.js
1919
bin/guida.min.js
2020

2121
# Try
22-
try/public/app.js
22+
try/public/app.js
23+
24+
# Assets
25+
assets/some-application/index.html
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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

0 commit comments

Comments
 (0)