Skip to content

Instantly share code, notes, and snippets.

@milesfrain
milesfrain / db.purs
Last active October 17, 2020 23:05 — forked from MrFincher/db.purs
Now compiles (although some additional debug still required), see https://try.ps.ai/?gist=540b36954ee840f8c32a95bfa4324d1f
data Column v = Column String
data Table columnRow = Table {name :: String, columns :: Record columnRow}
data Select tableColumns selectedColumns = Select
(Record tableColumns -> Record selectedColumns)
(Table tableColumns)
data ToStr = ToStr