EIO.adaptExcept -> EIO.adapt

This commit is contained in:
Greg Shuflin committed 2025-12-15 20:29:48 -08:00
1 parent 43f083ca95
commit e6bf480252
2 files changed
+1 -3

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ abbrev SDLIO := EIO SDLError
@[inline, always_inline]
def SDLIO.toIO (x : SDLIO α) : IO α :=
x.adaptExcept fun e => IO.userError s!"SDL Error: {e}"
x.adapt fun e => IO.userError s!"SDL Error: {e}"
instance : MonadLift SDLIO IO := ⟨SDLIO.toIO⟩