{"id":17177322,"url":"https://github.com/lexi-lambda/th-to-exp","last_synced_at":"2025-08-22T07:10:27.087Z","repository":{"id":56880350,"uuid":"73129825","full_name":"lexi-lambda/th-to-exp","owner":"lexi-lambda","description":"Deprecated. Use Language.Haskell.TH.Syntax.Lift instead.","archived":false,"fork":false,"pushed_at":"2017-07-31T18:01:26.000Z","size":8,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-13T17:09:26.476Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lexi-lambda.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-07T23:19:43.000Z","updated_at":"2020-01-21T16:00:43.000Z","dependencies_parsed_at":"2022-08-20T11:30:05.547Z","dependency_job_id":null,"html_url":"https://github.com/lexi-lambda/th-to-exp","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexi-lambda%2Fth-to-exp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexi-lambda%2Fth-to-exp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexi-lambda%2Fth-to-exp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexi-lambda%2Fth-to-exp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lexi-lambda","download_url":"https://codeload.github.com/lexi-lambda/th-to-exp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248750107,"owners_count":21155686,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T00:03:39.921Z","updated_at":"2025-04-13T17:09:35.666Z","avatar_url":"https://github.com/lexi-lambda.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# th-to-exp [![Build Status](https://travis-ci.org/lexi-lambda/th-to-exp.svg?branch=master)](https://travis-ci.org/lexi-lambda/th-to-exp)\n\n`th-to-exp` is a package that 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:\n\n```haskell\n\u003e toExp (Just 1)\nAppE (ConE GHC.Base.Just) (LitE (IntegerL 1))\n```\n\nThis is done by using a typeclass, `ToExp`, that can be automatically derived for types that have a `Generic` instance.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flexi-lambda%2Fth-to-exp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flexi-lambda%2Fth-to-exp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flexi-lambda%2Fth-to-exp/lists"}