# th-to-exp: Provides a way to persist data from compile-time to runtime.

This package provides a way to persist data from compile-time to runtime by
producing Template Haskell expressions that evaluate to particular values. For
example, if you have a value `Just 1`

, then `toExp (Just 1)`

will produce the
*expression* `[e| Just 1 |]`

, which can be used in a splice. For a more direct
example, here’s what that looks like without the quasiquote notation:

`>>>`

AppE (ConE GHC.Base.Just) (LitE (IntegerL 1))`toExp (Just 1)`

This is done by using a typeclass, `ToExp`

, that can be automatically derived
for types that have a `Generic`

instance.

[Skip to Readme]

Versions | 0.0.1.0, 0.0.1.1 |
---|---|

Change log | CHANGELOG.md |

Dependencies | base (>=4.9.0.0 && <5), template-haskell (>=2.11.0.0 && <2.13) [details] |

License | ISC |

Author | |

Maintainer | Alexis King |

Category | Template Haskell |

Home page | https://github.com/lexi-lambda/th-to-exp#readme |

Bug tracker | https://github.com/lexi-lambda/th-to-exp/issues |

Source repo | head: git clone https://github.com/lexi-lambda/th-to-exp |

Uploaded | by lexi_lambda at Mon Jul 31 18:01:03 UTC 2017 |

Distributions | NixOS:0.0.1.1 |

Downloads | 621 total (39 in the last 30 days) |

Rating | 2.0 (votes: 1) [estimated by rule of succession] |

Your Rating | |

Status | Docs available [build log] Last success reported on 2017-07-31 [all 1 reports] Hackage Matrix CI |

## Downloads

- th-to-exp-0.0.1.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)