I'm working on a project and I need a little help, please!
type CSV = String
type Table = [[String]]
table_csv :: Table -> CSV
csv_table :: CSV -> Table
data query = CSV CSV | Table Table | List [String]
How can I enroll "query" in class Show? For Table, use table_csv, and for List and String, use default.
instance Show query where
...
I know that first CSV refers to constructor name, and second to type CSV.
table_csv and csv_table are already implemented by me. Thanks a lot!