Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit b0c2549

Browse files
committed
Merge pull request #6 from cryogenian/effects-and-decode
decodeJson instances, capitalized effect types
2 parents e360c3f + c89ce6b commit b0c2549

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+2693
-117
lines changed

MODULES.md

Lines changed: 758 additions & 58 deletions
Large diffs are not rendered by default.

example/DynamicLineBar.purs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import Data.Maybe
88
import Data.Array hiding (init)
99
import Data.String.Regex
1010
import Data.Date
11+
import Data.Time
1112
import Data.Traversable
1213
import Data.Foldable
1314
import Utils (precise, getElementById)
@@ -57,7 +58,7 @@ xTimeAxis = do
5758
replace onlyDigRgx "" <$>
5859
toLocaleTimeString <$>
5960
toJSDate <$>
60-
fromEpochMilliseconds (start - i * 2000)
61+
fromEpochMilliseconds (start - (Milliseconds (i * 2000)))
6162

6263
return $ mapfn <$> (1..10)
6364

src/ECharts/AddData.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ function addDataImpl(data, chart) {
4545
return chart.addData.apply(chart, data);
4646
};
4747
}
48-
""" :: forall e. Fn2 Json EChart (Eff (dataAdd::AddData|e) EChart)
48+
""" :: forall e. Fn2 Json EChart (Eff (dataAdd::ADD_DATA|e) EChart)
4949

50-
addData :: forall e. AdditionalData -> EChart -> Eff (dataAdd::AddData|e) EChart
50+
addData :: forall e. AdditionalData -> EChart -> Eff (dataAdd::ADD_DATA|e) EChart
5151
addData d chart = runFn2 addDataImpl (encodeJson d) chart
5252

0 commit comments

Comments
 (0)