Skip to content

Commit b3c889b

Browse files
committed
Update docs for the Partial type class
1 parent a1e22ec commit b3c889b

File tree

1 file changed

+5
-2
lines changed
  • src/Language/PureScript/Docs

1 file changed

+5
-2
lines changed

src/Language/PureScript/Docs/Prim.hs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,11 @@ boolean = primType "Boolean" $ unlines
172172
partial :: Declaration
173173
partial = primClass "Partial" $ unlines
174174
[ "The Partial type class is used to indicate that a function is *partial,*"
175-
, "that is, it will throw an error for some inputs. For more information,"
176-
, "see [the Partial type class guide](https://github.com/purescript/documentation/blob/master/guides/The-Partial-type-class.md)."
175+
, "that is, it is not defined for all inputs. In practice, attempting to use"
176+
, "a partial function with a bad input will usually cause an error to be"
177+
, "thrown, although it is not safe to assume that this will happen in all"
178+
, "cases. For more information, see"
179+
, "[the Partial type class guide](https://github.com/purescript/documentation/blob/master/guides/The-Partial-type-class.md)."
177180
]
178181

179182
fail :: Declaration

0 commit comments

Comments
 (0)