Skip to main content

Showing 1–2 of 2 results for author: Malakhovski, J

Searching in archive cs. Search in all archives.
.
  1. arXiv:1905.10728  [pdf, ps, other

    cs.PL cs.LO cs.SE

    Programming with Applicative-like expressions

    Authors: Jan Malakhovski, Sergei Soloviev

    Abstract: The fact that Applicative type class allows one to express simple parsers in a variable-less combinatorial style is well appreciated among Haskell programmers for its conceptual simplicity, ease of use, and usefulness for semi-automated code generation (metaprogramming). We notice that such Applicative computations can be interpreted as providing a mechanism to construct a data type with "ports"… ▽ More

    Submitted 26 May, 2019; originally announced May 2019.

    Comments: 18 pages

  2. arXiv:1810.13430  [pdf, ps, other

    cs.PL cs.LO cs.SE

    Exceptionally Monadic Error Handling

    Authors: Jan Malakhovski

    Abstract: We notice that the type of catch :: c a -> (e -> c a) -> c a operator is a special case of monadic bind operator (>>=) :: m a -> (a -> m b) -> m b, the semantics (surprisingly) matches, and this observation has many interesting consequences. For instance, the reader is probably aware that the monadic essence of the (>>=) operator of the error monad $λA.E \lor A$ is to behave like identity monad… ▽ More

    Submitted 30 January, 2019; v1 submitted 31 October, 2018; originally announced October 2018.

    Comments: fixed several typos, added more references, better abstract, and a bunch of random changes here and there (mostly clarifications and terminology)