Skip to content

Commit d669ff5

Browse files
committed
Merge branch 'j-nava-master'
2 parents 15cdaf6 + 195604a commit d669ff5

File tree

5 files changed

+14
-16
lines changed

5 files changed

+14
-16
lines changed

frameworks/non-keyed/halogen/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<title>Halogen v5.0.0</title>
5+
<title>Halogen v6.1.3</title>
66
<link href="/css/currentStyle.css" rel="stylesheet" />
77
</head>
88
<body>

frameworks/non-keyed/halogen/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Purescript Halogen JS Benchmark",
55
"main": "index.js",
66
"js-framework-benchmark": {
7-
"frameworkVersion": "5.0.0"
7+
"frameworkVersion": "6.1.3"
88
},
99
"scripts": {
1010
"postinstall": "spago install",
@@ -24,7 +24,7 @@
2424
"url": "https://github.com/krausest/js-framework-benchmark.git"
2525
},
2626
"devDependencies": {
27-
"purescript": "0.13.6",
28-
"spago": "0.14.0"
27+
"purescript": "0.14.5",
28+
"spago": "0.20.3"
2929
}
3030
}

frameworks/non-keyed/halogen/packages.dhall

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
let upstream =
2-
https://github.com/purescript/package-sets/releases/download/psc-0.13.6-20200331/packages.dhall sha256:350af1fdc68c91251138198f03ceedc4f8ed6651ee2af8a2177f87bcd64570d4
2+
https://github.com/purescript/package-sets/releases/download/psc-0.14.5-20211116/packages.dhall sha256:7ba810597a275e43c83411d2ab0d4b3c54d0b551436f4b1632e9ff3eb62e327a
33

4-
let overrides =
5-
{ halogen =
6-
upstream.halogen // { version = "v5.0.0-rc.8" }
7-
}
4+
let overrides = {=}
85

96
let additions = {=}
107

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{ name = "js-framework-benchmark-halogen"
2-
, dependencies = [ "halogen" ]
2+
, dependencies = [ "aff", "arrays", "effect", "halogen", "maybe", "prelude" ]
33
, packages = ./packages.dhall
44
, sources = [ "src/**/*.purs" ]
55
}

frameworks/non-keyed/halogen/src/Main.purs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module Main where
22

3+
import Prim hiding (Row)
34
import Prelude
45

56
import Data.Array as Array
@@ -39,7 +40,7 @@ type Row =
3940
, label :: String
4041
}
4142

42-
app :: forall q i o. H.Component HH.HTML q i o Aff
43+
app :: forall q i o. H.Component q i o Aff
4344
app = H.mkComponent
4445
{ initialState
4546
, render
@@ -121,9 +122,9 @@ renderActionButton { id, label, action } =
121122
[ HH.button
122123
[ HP.type_ HP.ButtonButton
123124
, class_ "btn btn-primary btn-block"
124-
, HP.id_ id
125+
, HP.id id
125126
, HP.attr (HH.AttrName "ref") "text"
126-
, HE.onClick \_ -> Just action
127+
, HE.onClick \_ -> action
127128
]
128129
[ HH.text label ]
129130
]
@@ -139,8 +140,8 @@ renderRow selectedId row =
139140
[ ]
140141
)
141142
[ HH.td colMd1 [ HH.text (show row.id) ]
142-
, HH.td colMd4 [ HH.a [ HE.onClick \_ -> Just (Select row.id) ] [ HH.text row.label ] ]
143-
, HH.td colMd1 [ HH.a [ HE.onClick \_ -> Just (Remove row.id) ] removeIcon ]
143+
, HH.td colMd4 [ HH.a [ HE.onClick \_ -> Select row.id ] [ HH.text row.label ] ]
144+
, HH.td colMd1 [ HH.a [ HE.onClick \_ -> Remove row.id ] removeIcon ]
144145
, spacer
145146
]
146147

@@ -181,7 +182,7 @@ jumbotron =
181182
[ class_ "row" ]
182183
[ HH.div
183184
[ class_ "col-md-6" ]
184-
[ HH.h1_ [ HH.text "Halogen 5.0.0 (non-keyed)" ] ]
185+
[ HH.h1_ [ HH.text "Halogen 6.1.3 (non-keyed)" ] ]
185186
, HH.div [ class_ "col-md-6" ] do
186187
map (HH.lazy renderActionButton) buttons
187188
]

0 commit comments

Comments
 (0)