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.
2 parents 756ef60 + f573415 commit 1524f42Copy full SHA for 1524f42
src/Data/Void.purs
@@ -2,6 +2,11 @@ module Data.Void (Void, absurd) where
2
3
import Data.Show (class Show)
4
5
+-- | An uninhabited data type.
6
+-- |
7
+-- | `Void` is useful to eliminate the possibility of a value being created.
8
+-- | For example, a value of type `Either Void Boolean` can never have
9
+-- | a Left value created in PureScript.
10
newtype Void = Void Void
11
12
instance showVoid :: Show Void where
0 commit comments