I'm trying to wrap my head around how programming works in Dhall. Consider the following union type:
let Object = < NoId | WithId : Text >
I want to write a function extractId
that returns an Optional Text
containing the Id (or None
), but I can't find a way to do the destructuring in Dhall.