Proceedings of the ACM on Programming Languages · 2019 · 14 citations · 23 references
ComputingComputer ScienceCompilersProgramming LanguagesSystems ProgrammingApplication Programming InterfacesData-flow AnalysisFunctional ProgrammingIntermediate RepresentationStatic AnalysisType SystemsAbstract SemanticsAbstractionAbstraction MechanismsApplicative FunctorsFunctorsMonadic SemanticsMonadsPure Functions
Applicative functors and monads have conquered the world of functional programming by providing general and powerful ways of describing effectful computations using pure functions. Applicative functors provide a way to compose independent effects that cannot depend on values produced by earlier computations, and all of which are declared statically. Monads extend the applicative interface by making it possible to compose dependent effects, where the value computed by one effect determines all subsequent effects, dynamically. This paper introduces an intermediate abstraction called selective applicative functors that requires all effects to be declared statically, but provides a way to select which of the effects to execute dynamically. We demonstrate applications of the new abstraction on several examples, including two industrial case studies.
23
Notions of computation and monads
Eugenio Moggi · Information and Computation · 1991 · 1.7K citations
Philip Wadler · 1989 · 776 citations
John Hughes · Science of Computer Programming · 2000 · 517 citations
Applicative programming with effects
Conor McBride, Ross Paterson · Journal of Functional Programming · 2007 · 402 citations · Full text