Зигохистоморфный
мне кажется это баг, что тут 2 c
>> view (cosmos . _Object . to HS.keys) "{\"a\":1, \"b\": 2, \"a1\": {\"c\":3}}"
["a","b","a1","c","c"]
MĐĦĐ
Hello, is there any English Haskell group?
MĐĦĐ
I can only find this place
Алексей
Alexander
You can always learn Russian, it may be easier than you expect
Alexander
It may be even easier than to learn Haskell
Alexander
😉
MĐĦĐ
Alexander
Unfortunatelly telegram is not very popular in English speaking countries, so russian-speaking ones are larger
Alexander
Also the most popular haskell community chat is still on irc freenode
Alexander
Maybe but I have not seen much Chinese chats, maybe they are just in the different world, there was big community from Iran or some countries like that
Leonid 🦇
> secret and safe
> telegram
w96k
MĐĦĐ
Я тоже удивился
lol, maybe it's the country difference. In China, you know, if you say something wrong on the IMs of mainland companies, they can ban your account without any reason. Also, government can watch you and quickly find you if they want.
MĐĦĐ
Because by our laws, the companies have to provide your personal information to gov if gov ask them to do so.
Leonid 🦇
Telegram is not very safe or secret
w96k
w96k
Leonid 🦇
no social score tho
Alexander
Ryner Reinhardt
w96k
Not even close
Its on different level, but if you host something in russia you will have to give personal data on request
w96k
https://habr.com/ru/info/transparency/
Alexander
That is true for every country that have government
w96k
ФСБ Запрос информации о пользователе Запросов: 2
⬝ Удовлетворено: 2
w96k
Misha
для такого
type ValidatorT conf m r = ExceptT SomeError (StateT ValidationWarning (ReaderT conf m)) r
есть какие-то best practices? Типа “ридер всегда сверху”, “не делай так никогда” или какие-то еще?
Misha
сделал ридер сверху все-таки
Misha
и lift3 = lift . lift . lift
Misha
адово
Alexander
в этот момент кто-то решил придумать mtl
Alexander
И началось...
Misha
вооот
Misha
а вот теперь мне надо читать снова про mtl, но уже понимая, чего я хочу избежать
Alexander
Не надо
Alexander
Ошибка mtl в том, что оно ради этой задачи делалось
Misha
ну блин
x <- lift $ except <$> lift2 (try (B.readFile destination))
вот такое как-то не очень
Alexander
Ну изучай mtl но это такое
Alexander
там много невидных подводных камней
Misha
В принципе конечно такой писанины конечное количество
Alexander
которые тебя заманят, а потом съедят
Alexander
😛
Misha
Ну попробую так, а там посмотрим
Alexander
A64m
конечно
саша
Эх, вот бы ещё было что-то решающее проблему вербозности этих мтл-лайк. Шоб написал Has '[Reader Settings, Writer Counter, Logger] m => m () и всё
A64m
лет на 15
Алексей ayaye :)
Alexander
Да там миллион проблем
саша
Alexander
Не вижу чем Reader Settings... проще чем MonadReader Settings
саша
Alexander
Тогда уж Every '[Reader Settings,...] m
саша
не понял логики
Alexander
или ForAll ну что все констрейнты выполняются для m
Alexander
Has обычно не с констреинтами используется
Kakadu
Народ, я могу сделать какой-нибудь standalone Deriving Via чтобы по инстансу монады у меня сам сгенерировался инстанс аппикатива и функтора? Не хочу писать бойлерплейт
Anonymous
A64m
A64m
instance Monad m => Applicative (WrappedMonad m) where
pure = WrapMonad . pure
когда лепишь pure вместо return не приходя в сознание
Alexander
I будь лаконичен
Alexander
🙂
Misha
Denis
не стоит заморачиваться
Misha
окей 🙂
Alexander
и использовать ValidationT от typeable ; )
Denis
надо документацию написать, а то стыдно
Зигохистоморфный
есть еще http://hackage.haskell.org/package/monad-validate
Denis
но вообще библиотека полнофункциональная и мы давным-давно используем
Denis
(я бы даже рекомендовал)
Misha
А мне надо разный