Skip to content

Commit afd959f

Browse files
authored
[serokell#206] Remove listToMaybe (serokell#258)
Problem: we export `listToMaybe` from `Data.Maybe`. It makes no sense because we have `safeHead` in `Universum.Container` which does the same thing. Solution: remove `listToMaybe` from export list.
1 parent 3c49271 commit afd959f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ Unreleased
44
* [#176](https://github.com/serokell/universum/issues/176):
55
Deprecate `note`.
66

7+
* [#206](https://github.com/serokell/universum/issues/206):
8+
Remove `listToMaybe`.
9+
_Migration guide:_ use `safeHead` directly with functions from
10+
`Universum.Container` instead.
11+
712
1.7.3
813
=====
914

src/Universum/Monad/Reexport.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ import Control.Monad.Trans.Identity (IdentityT (runIdentityT))
5757
import Control.Monad.Trans.Maybe (MaybeT (..), exceptToMaybeT, maybeToExceptT)
5858

5959
-- Maybe
60-
import Data.Maybe (Maybe (..), catMaybes, fromMaybe, isJust, isNothing, listToMaybe, mapMaybe,
60+
import Data.Maybe (Maybe (..), catMaybes, fromMaybe, isJust, isNothing, mapMaybe,
6161
maybe, maybeToList)
6262

6363
-- Either

0 commit comments

Comments
 (0)