Closed gromakovsky closed 2 years ago
@gromakovsky I appreciate this change. But this is the breaking change since such code will no longer compile:
readMaybe (show x) == Just x
Maybe we can sneak in this change into next major release :smirk: :smiling_imp:
We have the following function:
readMaybe :: Read a => String -> Maybe a
. I find it weird, because:Universum
is to avoidString
as much as possible. However, this function's argument isString
.readEither :: (ToString a, Read b) => a -> Either Text b
, which takes anything convertible toString
as an argument. This function is very similar toreadMaybe
and I think their arguments should have same types.