Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/Data/Unit.purs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import Data.Show (class Show)
-- |
-- | `Unit` is often used, wrapped in a monadic type constructor, as the
-- | return type of a computation where only the _effects_ are important.
-- |
-- | When returning a value of type `Unit` from an FFI function, it is
-- | recommended to use `undefined`, or not return a value at all.
foreign import data Unit :: Type

-- | `unit` is the sole inhabitant of the `Unit` type.
Expand Down