We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Void
void
1 parent da12208 commit 7f4e169Copy full SHA for 7f4e169
src/Data/Void.purs
@@ -8,6 +8,17 @@ import Data.Show (class Show)
8
-- | `Void` is useful to eliminate the possibility of a value being created.
9
-- | For example, a value of type `Either Void Boolean` can never have
10
-- | a Left value created in PureScript.
11
+-- |
12
+-- | This should not be confused with the word, `void,` that commonly appears in
13
+-- | C-deriving languages, such as Java:
14
+-- | ```
15
+-- | public class Foo {
16
+-- | void doSomething() { System.out.println("hello world!"); }
17
+-- | }
18
19
20
+-- | In PureScript, one often uses `Unit` to achieve similar effects as
21
+-- | the lowercased `void` above.
22
newtype Void = Void Void
23
24
instance showVoid :: Show Void where
0 commit comments