Title: cannot satisfy -package-id XXX with library + executable in one cabal file · Issue #77 · hdevtools/hdevtools · GitHub
Open Graph Title: cannot satisfy -package-id XXX with library + executable in one cabal file · Issue #77 · hdevtools/hdevtools
X Title: cannot satisfy -package-id XXX with library + executable in one cabal file · Issue #77 · hdevtools/hdevtools
Description: When project is represented as a library + one or more executables depending on that library in a cabal file (stack seems to have this as default) and there's a problem in the library part of the code hdevtools will die with a rather con...
Open Graph Description: When project is represented as a library + one or more executables depending on that library in a cabal file (stack seems to have this as default) and there's a problem in the library part of the c...
X Description: When project is represented as a library + one or more executables depending on that library in a cabal file (stack seems to have this as default) and there's a problem in the library part of t...
Opengraph URL: https://github.com/hdevtools/hdevtools/issues/77
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"cannot satisfy -package-id XXX with library + executable in one cabal file","articleBody":"When project is represented as a library + one or more executables depending on that library in a cabal file (stack seems to have this as default) and there's a problem in the library part of the code hdevtools will die with a rather confusing error: \r\n\r\n```\r\ncannot satisfy -package-id foo-0.0.0.0-xxxxxxxxxxxxxx\r\n (use -v for more information)\r\n```\r\nwhen invoked manually or when invoked via a plugin like ale or syntastic for vim won't show anything at all. It will behave the same way when invoked for executable parts of the project (this makes sense - executable needs library to work/typecheck) or on the library itself - which means typechecker won't work if library fails to compile.\r\n\r\nA workaround is to remove executable parts from cabal file. A proper fix - try to distinguish between library and executables?","author":{"url":"https://github.com/pacak","@type":"Person","name":"pacak"},"datePublished":"2018-03-19T23:53:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":16},"url":"https://github.com/77/hdevtools/issues/77"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:07beef93-a2c9-1c7e-368a-9d1db15136ba |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AAFE:173A10:D07F18:10DCE44:69923435 |
| html-safe-nonce | a85c852b8607cd622f3bc6c4669dd489a3d1a2f490bce2e874b40ebf6a0d99ca |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQUZFOjE3M0ExMDpEMDdGMTg6MTBEQ0U0NDo2OTkyMzQzNSIsInZpc2l0b3JfaWQiOiI1MTk3MTMxNzcxMDcwNzg4NjYxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c1139904259243d179c478e40e07d32ddafad32976ec1a8d0b3f4ba627b9e5f6 |
| hovercard-subject-tag | issue:306679393 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/hdevtools/hdevtools/77/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3b6e1ba98239b16661bef7d3cff6b9a343b238893eeca0bc78b8450170210411/hdevtools/hdevtools/issues/77 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3b6e1ba98239b16661bef7d3cff6b9a343b238893eeca0bc78b8450170210411/hdevtools/hdevtools/issues/77 |
| og:image:alt | When project is represented as a library + one or more executables depending on that library in a cabal file (stack seems to have this as default) and there's a problem in the library part of the c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pacak |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/hdevtools/hdevtools git https://github.com/hdevtools/hdevtools.git |
| octolytics-dimension-user_id | 15984814 |
| octolytics-dimension-user_login | hdevtools |
| octolytics-dimension-repository_id | 46735551 |
| octolytics-dimension-repository_nwo | hdevtools/hdevtools |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 46735551 |
| octolytics-dimension-repository_network_root_nwo | hdevtools/hdevtools |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width