effect fail { final ctl fail :: reason: String -> Never } // `Never` fits wherever a value is expected. pub fn checked :: n: Int -> Int / { if n < 0 { fail "negative" } else { n } } pub fn first :: xs: List -> a / { match xs { [x, ..] -> x, [] -> fail "empty" } }