Title: Get spurious ambiguous import error from hdevtools with the following code · Issue #74 · hdevtools/hdevtools · GitHub
Open Graph Title: Get spurious ambiguous import error from hdevtools with the following code · Issue #74 · hdevtools/hdevtools
X Title: Get spurious ambiguous import error from hdevtools with the following code · Issue #74 · hdevtools/hdevtools
Description: This is a small sample that should show the problem. from a frankly horrific nearly 1000 line test utils file in our repository. running hdevtools check should show the behaviour. debug shows it picking up the relevant stack and cabal fi...
Open Graph Description: This is a small sample that should show the problem. from a frankly horrific nearly 1000 line test utils file in our repository. running hdevtools check should show the behaviour. debug shows it pi...
X Description: This is a small sample that should show the problem. from a frankly horrific nearly 1000 line test utils file in our repository. running hdevtools check should show the behaviour. debug shows it pi...
Opengraph URL: https://github.com/hdevtools/hdevtools/issues/74
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Get spurious ambiguous import error from hdevtools with the following code","articleBody":"This is a small sample that should show the problem. from a frankly horrific nearly 1000 line test utils file in our repository.\r\n\r\nrunning `hdevtools check` should show the behaviour.\r\n\r\ndebug shows it picking up the relevant stack and cabal files.\r\n\r\nI think the dependencies needed in your cabal are:\r\n\r\n , hspec-webdriver\r\n , webdriver\r\n\r\n\r\n\r\n```\r\n import Test.Hspec.WebDriver as Reexported\r\n import Test.WebDriver\r\n\r\n waitForPageLoadAfter :: WD a -\u003e WD a\r\n waitForPageLoadAfter action = do\r\n waitForCompleteReadyState\r\n waitForSetLoadedFlag\r\n clearLoadedFlag\r\n result \u003c- action\r\n waitForPageLoad (0 :: Int)\r\n return result\r\n```\r\n\r\nI get an error reported from hdevtools about WD being ambiguous as it could be from either import... however stack builds this fine presumably as they both refer to the same thing. Unfortunately for me, I can't just import either of them qualified to work around the issue - there's a mess whereby some of each's functions are being used in this file.\r\n\r\nHaving a perceived problem like this stops me using any type or info queries in the file and it basically gets used in all of our selenium tests so it's basically disabling type information for me in an entire project!\r\n\r\nAlso sorry I haven't come back with any more information on the template haskell thing - I'll try and get a decent sample back at some point, just I'm busy + it's not causing me pain right now!\r\n\r\nCheers\r\n\r\nJonny\r\n","author":{"url":"https://github.com/JonnyRa","@type":"Person","name":"JonnyRa"},"datePublished":"2017-11-28T16:28:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/74/hdevtools/issues/74"}
| 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:a9886543-95c8-4344-4cdf-fcb953fcf430 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8ABA:DDB35:2529B00:2F724BB:6991B747 |
| html-safe-nonce | 02cb79bc2f225e5dd32aa4118b03068584bf69fec2772ba1b93b0fdb59943ab2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUJBOkREQjM1OjI1MjlCMDA6MkY3MjRCQjo2OTkxQjc0NyIsInZpc2l0b3JfaWQiOiI1NjcwMzcyOTE0Mzc5MjA4NTE5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0a5b34b0a0eda5fda0779ec41300e8c3a9aebb5d007c83266deb4cd5f47538a7 |
| hovercard-subject-tag | issue:277449344 |
| 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/74/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9b45cdeb53027274bc889c45cd30f98c925ebf50fef44fd6b8c3bd6e63840e43/hdevtools/hdevtools/issues/74 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9b45cdeb53027274bc889c45cd30f98c925ebf50fef44fd6b8c3bd6e63840e43/hdevtools/hdevtools/issues/74 |
| og:image:alt | This is a small sample that should show the problem. from a frankly horrific nearly 1000 line test utils file in our repository. running hdevtools check should show the behaviour. debug shows it pi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JonnyRa |
| 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