fix: close status for empty

This commit is contained in:
Sofia Rodrigues
2026-03-03 08:31:33 -03:00
parent bd10d0193e
commit 61d7c151da

View File

@@ -162,7 +162,7 @@ instance : Writer Full where
instance : Writer Empty where
send _ _ _ := throw <| .userError "cannot send"
close _ := pure ()
isClosed _ := pure false
isClosed _ := pure true
hasInterest _ := pure false
getKnownSize _ := pure (some (.fixed 0))
setKnownSize _ _ := pure ()