Skip to content
Merged
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions changelog.d/20260712_165906_unisay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Changed

- `Data.Unit.unit` is pinned to the shared foreign singleton
(`@inline unit never`). The value is a table constructor (`{}`), so the
former `always` pragma duplicated the allocation at every use site; `never`
keeps one shared table, matching the foreign-table sharing the compiler now
performs by default (purescript-lua/purescript-lua#176).
2 changes: 1 addition & 1 deletion src/Data/Unit.purs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- @inline unit always
-- @inline unit never
module Data.Unit where

-- | The `Unit` type has a single inhabitant, called `unit`. It represents
Expand Down