Skip to content

Commit

Permalink
refactor: give IOError an escape hatch
Browse files Browse the repository at this point in the history
  • Loading branch information
brekk committed May 12, 2024
1 parent 6a9e4fb commit 2cc3c2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions prelude/__internal__/IO.mad
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import Error from "__IOError__"
import {
AddressAlreadyInUse,
ArgumentListToLong,
GeneralError,
PermissionDenied,
UnknownError,
} from "__IOError__"
Expand All @@ -24,6 +25,7 @@ export AddressAlreadyInUse
export ArgumentListToLong
export PermissionDenied
export UnknownError
export GeneralError

prettyCase :: (String -> String) -> String -> String
prettyCase = (color, str) => pipe(
Expand Down
1 change: 1 addition & 0 deletions prelude/__internal__/__IOError__.mad
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export type Error
| ArgumentListToLong
| PermissionDenied
| UnknownError
| GeneralError(String)

fromLibuvError :: Integer -> Error
export fromLibuvError = where {
Expand Down

0 comments on commit 2cc3c2a

Please sign in to comment.