Closed arianvp closed 6 years ago
Perhaps we should be able to provide our own consTable
?
ala:
consTable = $ [ ( ''Int , "KInt")
, ( ''Char , "KChar")
, ( ''Integer , "KInteger")
, ( ''Float , "KFloat")
, ( ''Bool , "KBool")
, ( ''String , "KString")
, ( ''Double , "KDouble")
, (''Text, "KTexT")
]
deriveFamily 'Stat consTable
yes! we should be able to do that. I will try implementing that today!
We should also derive TestEquality
for any Singl
that we generate, as we need that for stuff like generic equality, and diffs.
This error was due to the fact that
Text
from thetext
package is an ADT defined in terms ofByteArray#
. How can I convince thederiveFamily
machinery to pick it as an atom instead?