Open YuMingLiao opened 5 years ago
The type inference problem is covered by #46 where there is thankfully an easy workaround by adding the type to the relation. The backend doesn't yet connect the type of the target relation and the "floating" relation, so relation{x Nothing}
, in general` is insufficiently typed.
Regarding the second issue, I think it should be resolved by switching from newtype
to data
. The backend definitely doesn't support newtype
structures, so even if you could get past this error, something else would go wrong. I'll think about how to resolve that.
Hi, @agentm
I was creating a schema by trying project-m36-typed example with
CrashSafePersistence
db, and then tried to test an insert by tutd. But I can't find a way to inputConstructedAtomType
in tutd. I can inputJust "something"
but notNothing
. It seems tutd can't infer Nothing's type.And in the meantime, I can't auto-derive some newtype Atomable from base Atoms.
It's due to some type role issue. And change
proxy
toProxy
may work (saw this advice somewhere). Is there any reason to have atoAtomType :: proxy a ->
... with a type variable instead of the Proxy type?