compiler crashes with "Run Time Error: index out of range"
This can be reproduced with the nightly Linux-x64 iTasks compiler, but ONLY with the iTasks branch https://gitlab.science.ru.nl/clean-and-itasks/iTasks-SDK/-/tree/editmode-only-in-generic-editor NOT with the master iTasks branch.
The most minimal definition resulting in the crash I could find is:
test :: Task (?(Either (?a) (?a, ?a, ?a))) | iTask a
test = withShared ?None \sds -> viewSharedInformation [ViewAs f] sds
where
f (?Just (Right (_, _, _))) = ()