Skip to content

Commit 1524f42

Browse files
authored
Merge pull request #105 from chexxor/patch-1
Add short motivation of Void type
2 parents 756ef60 + f573415 commit 1524f42

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Data/Void.purs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ module Data.Void (Void, absurd) where
22

33
import Data.Show (class Show)
44

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.
510
newtype Void = Void Void
611

712
instance showVoid :: Show Void where

0 commit comments

Comments
 (0)