René's URL Explorer Experiment


Title: Declaring TH dependency in `.cabal` file · Issue #28 · Happstack/happstack-server · GitHub

Open Graph Title: Declaring TH dependency in `.cabal` file · Issue #28 · Happstack/happstack-server

X Title: Declaring TH dependency in `.cabal` file · Issue #28 · Happstack/happstack-server

Description: Currently, happstack has Flag template_haskell Description: Template Haskell is available on this system Default: True Manual: True ... Library: if (flag(template_haskell) && !(arch(arm))) Build-Depends: template-haskell cpp-options: -DT...

Open Graph Description: Currently, happstack has Flag template_haskell Description: Template Haskell is available on this system Default: True Manual: True ... Library: if (flag(template_haskell) && !(arch(arm))) Build-De...

X Description: Currently, happstack has Flag template_haskell Description: Template Haskell is available on this system Default: True Manual: True ... Library: if (flag(template_haskell) && !(arch(arm))) ...

Opengraph URL: https://github.com/Happstack/happstack-server/issues/28

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Declaring TH dependency in `.cabal` file","articleBody":"Currently, happstack has\n\n```\nFlag template_haskell\n    Description: Template Haskell is available on this system\n    Default: True\n    Manual: True\n\n...\n\nLibrary:\n  if (flag(template_haskell) \u0026\u0026 !(arch(arm)))\n    Build-Depends:     template-haskell\n    cpp-options:       -DTEMPLATE_HASKELL\n\n...\n\n  Extensions: TemplateHaskell\n```\n\nThere's a couple of problems here (with cabal-1.24 \u0026 GHC 8.0)\n\nIf the TH-flag is set to false (or arch=arm), this package still won't build when GHC doesn't support TH, because then `extensions: TemplateHaskell` will still be in effect, and GHC will fail complaining it doesn't support TH.\n\nAnd with cabal-1.24, the solver will already exclude packages during solving where `extensions: TemplateHaskell` when GHC doesn't support that extension.\n\nMoreover, arch(arm) is not the only platform lacking TH support. However, since cabal knows when your environment supports TH, you should let cabal decide.\n\nConsequently, I suggest the following definitions instead: \n\nUse an automatic flag for declaring TH support, and make sure this flag doesn't have any other pressure applied other than `other-extensions: TemplateHaskell` or `default-extensions: TemplateHaskell`, i.e.\n\n```\nFlag template_haskell\n    Description: Template Haskell is available on this system\n    Default: True\n    Manual: False\n\nLibrary:\n  -- the TH library is available even in environments lacking -XTemplateHaskell support\n  -- placing this outside the conditional allows adding upper bounds after-the-fact on hackage w/o adding solver-pressure to the flag\n  Build-Depends: template-haskell\n  if flag(template_haskell)\n    cpp-options:       -DTEMPLATE_HASKELL\n    -- other-extensions doesn't enable the extension; this only declares which LANGUAGE pragmas may be used\n    other-extensions: TemplateHaskell\n```\n\nthis will cause cabal (starting with 1.24) to set the `template_haskell` flag  depending on whether the compiler supports TH.\n\n/cc @bergmark @phadej\n","author":{"url":"https://github.com/hvr","@type":"Person","name":"hvr"},"datePublished":"2016-06-10T11:56:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/28/happstack-server/issues/28"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8615544b-1db3-5007-d90e-16bbbe4d07b1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA7AE:205885:1E556:2889B:6A4D7F2F
html-safe-nonce89a9c85436652a7b35737c778b1ee56d0cf5694fa1c79018868a2afee2c15d8d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0FFOjIwNTg4NToxRTU1NjoyODg5Qjo2QTREN0YyRiIsInZpc2l0b3JfaWQiOiI3NDUxMTI2MDQ2NzY4NTk0NzM1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacea74b264bef6db860647898adb08a58c7c8b02152660a119823bd83e47861d6a
hovercard-subject-tagissue:159619395
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Happstack/happstack-server/28/issue_layout
twitter:imagehttps://opengraph.githubassets.com/49173315b89cb886525008f77a9da92581852e22a322c3cb3575188e864e8326/Happstack/happstack-server/issues/28
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/49173315b89cb886525008f77a9da92581852e22a322c3cb3575188e864e8326/Happstack/happstack-server/issues/28
og:image:altCurrently, happstack has Flag template_haskell Description: Template Haskell is available on this system Default: True Manual: True ... Library: if (flag(template_haskell) && !(arch(arm))) Build-De...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamehvr
hostnamegithub.com
expected-hostnamegithub.com
Nonec6bf61c909482ec3072ef5d7a5a28f2a9d214788c9a44793eca1960048cb05ae
turbo-cache-controlno-preview
go-importgithub.com/Happstack/happstack-server git https://github.com/Happstack/happstack-server.git
octolytics-dimension-user_id1452068
octolytics-dimension-user_loginHappstack
octolytics-dimension-repository_id28725423
octolytics-dimension-repository_nwoHappstack/happstack-server
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id28725423
octolytics-dimension-repository_network_root_nwoHappstack/happstack-server
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6702a58b419a792226bd21ef0fb1bcb318bbcaa3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/Happstack/happstack-server/issues/28#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FHappstack%2Fhappstack-server%2Fissues%2F28
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FHappstack%2Fhappstack-server%2Fissues%2F28
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=Happstack%2Fhappstack-server
Reloadhttps://github.com/Happstack/happstack-server/issues/28
Reloadhttps://github.com/Happstack/happstack-server/issues/28
Reloadhttps://github.com/Happstack/happstack-server/issues/28
Please reload this pagehttps://github.com/Happstack/happstack-server/issues/28
Happstack https://github.com/Happstack
happstack-serverhttps://github.com/Happstack/happstack-server
Notifications https://github.com/login?return_to=%2FHappstack%2Fhappstack-server
Fork 31 https://github.com/login?return_to=%2FHappstack%2Fhappstack-server
Star 90 https://github.com/login?return_to=%2FHappstack%2Fhappstack-server
Code https://github.com/Happstack/happstack-server
Issues 17 https://github.com/Happstack/happstack-server/issues
Pull requests 5 https://github.com/Happstack/happstack-server/pulls
Actions https://github.com/Happstack/happstack-server/actions
Projects https://github.com/Happstack/happstack-server/projects
Wiki https://github.com/Happstack/happstack-server/wiki
Security and quality 0 https://github.com/Happstack/happstack-server/security
Insights https://github.com/Happstack/happstack-server/pulse
Code https://github.com/Happstack/happstack-server
Issues https://github.com/Happstack/happstack-server/issues
Pull requests https://github.com/Happstack/happstack-server/pulls
Actions https://github.com/Happstack/happstack-server/actions
Projects https://github.com/Happstack/happstack-server/projects
Wiki https://github.com/Happstack/happstack-server/wiki
Security and quality https://github.com/Happstack/happstack-server/security
Insights https://github.com/Happstack/happstack-server/pulse
Declaring TH dependency in .cabal filehttps://github.com/Happstack/happstack-server/issues/28#top
https://github.com/hvr
hvrhttps://github.com/hvr
on Jun 10, 2016https://github.com/Happstack/happstack-server/issues/28#issue-159619395
@bergmarkhttps://github.com/bergmark
@phadejhttps://github.com/phadej
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.