The ap-reflect package

[ Tags: bsd3, debug, library ] [ Propose Tags ]

The library provides a simple reflection technique, substituting functions like fmap and <*> with reflection-aware analogues. This library can be used with simple-reflect package.

[Skip to Readme]


Versions, 0.2, 0.3
Change log
Dependencies base (>=4.8 && <5) [details]
License BSD3
Author Oleg Baev
Category Debug
Home page
Bug tracker
Source repo head: git clone
Uploaded Mon Oct 3 18:39:38 UTC 2016 by NickolayKudasov
Distributions NixOS:0.3
Downloads 1005 total (29 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 2016-10-03 [all 1 reports]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees

Readme for ap-reflect-0.3

[back to package description]


Hackage package Build Status

Partial evaluation reflection a la simple-reflect.


You can install the ap-reflect from Hackage:

$ cabal install ap-reflect

or directly from the repository:

$ git clone
$ cd ap-reflect
$ cabal install

For some possibilities of using this library you may need to install simple-reflect. It is available from Hackage. Install it, by typing:

cabal install simple-reflect


Haddock documentation is available at


For example:

let (.+) = makeBinOp "+" (+)
mapM_ print . reductions $ (.+) -$- Just a -*- Just b


(+) <$> Just a <*> Just b
Just (a +) <*> Just b
Just (a + b)

You can find another examples of using this library at


  • Oleg Baev
  • Nickolay Kudasov


Contact me (Oleg Baev):