arrowp-qq: quasiquoter translating arrow notation into Haskell 98

[ development, library, program ] [ Propose Tags ]

A quasiquoter built on top of the arrowp package.


[Skip to Readme]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1, 0.1.1, 0.2, 0.2.0.1, 0.2.1, 0.2.1.1, 0.3.0
Dependencies array, base (<5), containers, haskell-src, template-haskell (<2.12), transformers [details]
License LicenseRef-GPL
Author Jose Iborra <pepeiborra@gmail.com>
Maintainer Jose Iborra <pepeiborra@gmail.com>
Category Development
Home page http://www.haskell.org/arrows/
Source repo head: darcs get http://github.com/pepeiborra/arrowp
Uploaded by PepeIborra at 2017-06-14T12:59:25Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 5215 total (22 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-06-14 [all 1 reports]

Readme for arrowp-qq-0.1

[back to package description]
A prototype quasiquoter for arrow notation packaged by Jose Iborra,
based on the arrowp preprocessor developed by Ross Paterson <ross@soi.city.ac.uk>.

Note that recent versions of GHC support this notation directly, and
give better error messages to boot. But the translation produced by GHC
is in some cases not as good as it could be.

RUNNING THE ARROW QUASI QUOTER


addA :: Arrow a => a b Int -> a b Int -> a b Int
addA f g = [proc| x -> do
		y <- f -< x
		z <- g -< x
		returnA -< y + z |]