diff options
author | David Feuer <David.Feuer@gmail.com> | 2023-03-01 15:24:44 -0500 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2023-03-03 11:40:47 -0500 |
commit | 45af8482e3f7d2d8234265982e14ff9b0d4dfa65 (patch) | |
tree | da3d0fcf837b64d3aec5e0ea77b2d1b9a62f1093 | |
parent | 2f97c86151d7eed115ddcbdee1842684aed63176 (diff) | |
download | haskell-45af8482e3f7d2d8234265982e14ff9b0d4dfa65.tar.gz |
Export getSolo from Data.Tuple
Proposed in
[CLC proposal #113](https://github.com/haskell/core-libraries-committee/issues/113)
and
[approved by the CLC](https://github.com/haskell/core-libraries-committee/issues/113#issuecomment-1452452191)
-rw-r--r-- | docs/users_guide/9.8.1-notes.rst | 1 | ||||
-rw-r--r-- | libraries/base/Data/Tuple.hs | 3 | ||||
-rw-r--r-- | libraries/base/changelog.md | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/docs/users_guide/9.8.1-notes.rst b/docs/users_guide/9.8.1-notes.rst index a4230ffcca..e64fc49dcc 100644 --- a/docs/users_guide/9.8.1-notes.rst +++ b/docs/users_guide/9.8.1-notes.rst @@ -46,6 +46,7 @@ Runtime system ``base`` library ~~~~~~~~~~~~~~~~ +- ``Data.Tuple`` now exports ``getSolo :: Solo a -> a``. ``ghc-prim`` library ~~~~~~~~~~~~~~~~~~~~ diff --git a/libraries/base/Data/Tuple.hs b/libraries/base/Data/Tuple.hs index 4c3de9c4c5..dd2e98d4ef 100644 --- a/libraries/base/Data/Tuple.hs +++ b/libraries/base/Data/Tuple.hs @@ -17,6 +17,7 @@ module Data.Tuple ( Solo (..) + , getSolo , fst , snd , curry @@ -25,7 +26,7 @@ module Data.Tuple ) where import GHC.Base () -- Note [Depend on GHC.Tuple] -import GHC.Tuple (Solo (..)) +import GHC.Tuple (Solo (..), getSolo) default () -- Double isn't available yet diff --git a/libraries/base/changelog.md b/libraries/base/changelog.md index bef533f263..6772033780 100644 --- a/libraries/base/changelog.md +++ b/libraries/base/changelog.md @@ -7,6 +7,8 @@ * Refactor `generalCategory` to stop very large literal string being inlined to call-sites. ([CLC proposal #130](https://github.com/haskell/core-libraries-committee/issues/130)) * Add INLINABLE pragmas to `generic*` functions in Data.OldList ([CLC proposal #129](https://github.com/haskell/core-libraries-committee/issues/130)) + * Export `getSolo` from `Data.Tuple`. + ([CLC proposal #113](https://github.com/haskell/core-libraries-committee/issues/113)) ## 4.18.0.0 *TBA* |