- Notifications
You must be signed in to change notification settings - Fork 90
/
Copy pathUnit.purs
14 lines (12 loc) · 554 Bytes
/
Unit.purs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
moduleData.Unitwhere
-- | The `Unit` type has a single inhabitant, called `unit`. It represents
-- | values with no computational content.
-- |
-- | `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.
foreignimportdataUnit :: Type
-- | `unit` is the sole inhabitant of the `Unit` type.
foreignimportunit::Unit