Open epost opened 5 years ago
todo:
Desired output:
Department (1) | secretary | name
----------------------------------
a.worksIn a a.worksIn.name
Employee (2) | manager | worksIn | age | first | last
--------------------------------------------------------
a a a.worksIn a.age a.first a.last
b b b.worksIn b.age b.first b.last
nat (2)
--------
a.age
b.age
string (5)
-----------
a.worksIn.name
Current situation
Output looks something like this:
Here,
algebra
is a section heading, andshow
-like output, such asRight ("e","a2")
is mixed with pretty-printed output like the section heading and-------
.TODO
-> String
functions should distinguish betweenpretty-printing
andshow
, which should be the inverse ofread
.Ryan's suggestions:
TTerm
(inInstance.hs
) a newtype with a customShow
Show Term
(inTerm.hs
) we can strip quotes from printed strings using filter, provided the quotes aren't needed (e.g., no spaces)Fix
Show
instances:Schema
Entity
Attribute
Instance
Algebra
Term
Typeside
Mapping
Query
Transform
XxxEx
andXxxRaw
ones