[Haskell-cafe] Newtype, Data.Text and instance declarations...

Guy-Laurent Subri guy-laurent at subri.ch
Fri Apr 12 05:12:28 UTC 2019


Thank you, it makes perfect sense now. I don't know why I got confused
with the pattern matching. Maybe it just looked like casting and I got
the types wrong.

> In general, you can't use that kind of substitution with SQL Data Definition Language (e.g. CREATE
> TABLE), nor is it generally usable to replace table or column names, only values. You need to
> concatenate the actual table name into the command, not a SQL string-like value nor an embedded SQL
> placeholder.

I didn't know that. Thank you.

--
Guy-Laurent Subri


More information about the Haskell-Cafe mailing list