arXiv.itsnick.co

an independent field guide to 23 million papers from arXiv & OpenAlex — not affiliated with arXiv.org

Author

Jan Bracker

6 papers · 2013–2016

2013: 32014: 12015: 12016: 1
2013peak 3 in 20132016

Frequent co-authors

Papers

showing 1–6 of 6 RSS

The constrained-monad problem

Neil Sculthorpe, Jan Bracker, George Giorgidze +1 more

Artificial Intelligence · Cronfa (Swansea University) · · cited 30× · DOI ↗ · more like this ·

In Haskell, there are many data types that would form monads were it not for the presence of type-class constraints on the operations on that data type. This is a frustrating problem in practice, because there is a considerable amount of support and infrastructure for monads that these data types cannot use. Using several examples, we show that a monadic computation can be restructured into a normal form such that the standard monad class can be used. The technique is not specific to monads, and we show how it can also be applied to other structures, such as applicative functors. One significant use case for this technique is domain-specific languages, where it is often desirable to compile a deep embedding of a computation to some other language, which requires restricting the types that can appear in that computation.

Supermonads: one notion to bind them all

Jan Bracker, Henrik Nilsson

Artificial Intelligence · Nottingham ePrints (University of Nottingham) · · cited 6× · DOI ↗ · more like this ·

Several popular generalizations of monads have been implemented in Haskell. Unfortunately, because the shape of the associated type constructors do not match the standard Haskell monad interface, each such implementation provides its own type class and versions of associated library functions. Furthermore, simultaneous use of different monadic notions can be cumbersome as it in general is necessary to be explicit about which notion is used where. In this paper we introduce supermonads: an encoding of monadic notions that captures several different generalizations along with a version of the standard library of monadic functions that work uniformly with all of them. As standard Haskell type inference does not work for supermonads due to their generality, our supermonad implementation is accompanied with a language extension, in the form of a plugin for the Glasgow Haskell Compiler (GHC)…

Polymonad programming in Haskell

Jan Bracker, Henrik Nilsson

Artificial Intelligence · Nottingham ePrints (University of Nottingham) · · cited 6× · DOI ↗ · more like this ·

Polymonads were recently introduced by Hicks et al. as a unified approach to programming with different notions of monads. Their work was mainly focused on foundational aspects of the approach. In this article, we show how to incorporate the notion of polymonads into Haskell, which is the first time this has been done in a full-scale language. In particular, we show how polymonads can be represented in Haskell, give a justification of the representation through proofs in Agda, and provide a plugin for the Glasgow Haskell Compiler (GHC) that enables their use in practice. Finally, we demonstrate the utility of our system by means of examples concerned with session types and the parameterized effect monad. This work provides a common representation of a number of existing approaches to generalized monads in Haskell.

A Web-Based Editor for Cloud-Based Programming

Jan Bracker

Information Systems · · cited 0× · OpenAlex ↗ · more like this ·

Today’s programmers and development tools still use concepts and work-flows that were introduced with the early operating systems. Programs are still structured in files and to reuse code a developer still has to search and integrate appropriate libraries all by herself. One way to solve these problems is to structure source code using the semantic concepts a language offers and store them in a database to allow structured access and a more advanced search and support for reuse. These ideas lead to the concept of a code cloud. Last year a group of students at the Christian-Albrechts-University developed such a code cloud; they called it Claude. It supports

Neil Sculthorpe The Constrained-Monad Problem Monads The Problem Constraint Kinds Restricted Type Classes Embedding and Normalisation Remarks

Neil Sculthorpe, Joint Work Jan Bracker, George Giorgidze +5 more

Artificial Intelligence · · cited 0× · OpenAlex ↗ · more like this ·

class Monad (m:: ∗ → ∗) where return:: a → m a (>> = ):: m a → (a → m b) → m b The Monad Laws return a>> = g ≡ g a (left-identity law) m>> = return ≡ m (right-identity law) (m>> = g)>> = h ≡ m>> = (λ x → g x>> = h) (associativity law)

Monadic Set Operations

Neil Sculthorpe, Joint Work Jan Bracker, George Giorgidze +4 more

Computational Theory and Mathematics · · cited 0× · OpenAlex ↗ · more like this ·

class Monad (m:: ∗ → ∗) where return:: a → m a (>> = ):: m a → (a → m b) → m b The Monad Laws return a>> = g ≡ g a (left-identity law) m>> = return ≡ m (right-identity law) (m>> = g)>> = h ≡ m>> = (λ x → g x>> = h) (associativity law)