The ap-reflect package

[Tags:bsd3, library]

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]

Properties

Versions 0.1.0.0, 0.2
Change log CHANGELOG.md
Dependencies base (>=4.7 && <5) [details]
License BSD3
Author Oleg Baev
Maintainer odbaev@yandex.ru
Stability Unknown
Category Debug
Home page https://github.com/cmc-msu-ai/ap-reflect
Bug tracker https://github.com/cmc-msu-ai/ap-reflect/issues
Source repository head: git clone https://github.com/cmc-msu-ai/ap-reflect.git
Uploaded Wed Feb 4 15:39:39 UTC 2015 by NickolayKudasov
Distributions NixOS:0.2
Downloads 397 total (11 in the last 30 days)
Votes
0 []
Status Docs available [build log]
Last success reported on 2015-02-04 [all 1 reports]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for ap-reflect

Readme for ap-reflect-0.2

ap-reflect

Build Status

Partial evaluation reflection a la simple-reflect.

Installation

You can install the ap-reflect from Hackage:

$ cabal install ap-reflect

or directly from the repository:

$ git clone https://github.com/cmc-msu-ai/ap-reflect
$ 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

Documentation

Haddock documentation is available at http://cmc-msu-ai.github.io/ap-reflect/doc/html/ap-reflect/

Usage

For example:

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

Result:

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

You can find another examples of using this library at https://github.com/cmc-msu-ai/ap-reflect/tree/master/examples

Contributors

  • Oleg Baev
  • Nickolay Kudasov

Contribution

Contact me (Oleg Baev): odbaev@yandex.ru