Skip to content

Commit 82baf92

Browse files
committed
parseCSV runs in Web Browser yay!
1 parent 9b5afbd commit 82baf92

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ node_modules
77
# Generated files
88
.psci
99
output
10+
.psc-ide-port

test.html

+16-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,26 @@
33
</body>
44
<script type=module>
55
// Import Main Module
6-
import { main, doBoth, parseCSV, exampleContent2 } from './output/Main/index.js';
6+
import { main, doBoth, doRunParser, parseCSV, exampleContent2 } from './output/Main/index.js';
7+
8+
// For Testing: Export the PureScript Functions
9+
window.main = main;
10+
window.doBoth = doBoth;
11+
window.doRunParser = doRunParser;
12+
window.parseCSV = parseCSV;
13+
window.exampleContent2 = exampleContent2;
714

815
// Run Main Function
916
main();
1017

1118
// Run parseCSV
12-
// TODO: console.log({parseCSV: parseCSV(exampleContent2)});
19+
const result =
20+
doRunParser({show : console.log})
21+
("bbbb")
22+
(parseCSV)
23+
(exampleContent2)
24+
();
25+
window.result = result;
26+
console.log({result});
1327
</script>
1428
</html>

0 commit comments

Comments
 (0)