We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Unit
1 parent 95ef4e9 commit 2b47992Copy full SHA for 2b47992
src/Data/Unit.purs
@@ -7,6 +7,9 @@ import Data.Show (class Show)
7
-- |
8
-- | `Unit` is often used, wrapped in a monadic type constructor, as the
9
-- | return type of a computation where only the _effects_ are important.
10
+-- |
11
+-- | When returning a value of type `Unit` from an FFI function, it is
12
+-- | recommended to use `undefined`, or not return a value at all.
13
foreign import data Unit :: Type
14
15
-- | `unit` is the sole inhabitant of the `Unit` type.
0 commit comments