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]
Versions 0.1, 0.1.1, 0.2, 0.2.0.1, 0.2.1, 0.2.1.1
Dependencies array, base (<5), containers, haskell-src, template-haskell (<2.13), 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 Thu Jul 27 21:55:12 UTC 2017
Distributions NixOS:0.2.1.1
Downloads 1510 total (24 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-07-27 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for arrowp-qq-0.1.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 |]