Skip to content

Commit da12208

Browse files
Expand on 'uninhabitated data type' meaning for Void
1 parent e7de566 commit da12208

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Data/Void.purs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ module Data.Void (Void, absurd) where
22

33
import Data.Show (class Show)
44

5-
-- | An uninhabited data type.
5+
-- | An uninhabited data type. In other words, one can never create
6+
-- | a runtime value of type `Void` becaue no such value exists.
67
-- |
78
-- | `Void` is useful to eliminate the possibility of a value being created.
89
-- | For example, a value of type `Either Void Boolean` can never have

0 commit comments

Comments
 (0)