Chris Penner - Alternative by example - A typeclass for parsing, concurrency, logic programming

Поділитися
Вставка
  • Опубліковано 8 лис 2022
  • Special thanks to the Haskell Foundation for supporting the production of this video!
    Haskell Love 2021 schedule: emamo.com/event/haskell-love
    Haskell Love twitter: / _haskellove
    This talk is a deep-dive on the Alternative typeclass from `Control.Applicative`, which provides a monoid over applicative functors, we love monoids, and we love applicatives, what do we get when we combine the two?
    We'll start off by exploring the typeclass and its laws by showing off some helpful examples, and develop some intuition at the same time. Next we'll look at a few examples of several unique instances of Alternative: lists, parsers, routing, MaybeT, STM and more!
    Scattered throughout we'll learn some fun and unexpected uses of combinators and how they interact in ways that are unexpected but are still useful. Did you know that parser combinators double as useful concurrency primitives!?
  • Наука та технологія

КОМЕНТАРІ •