{"action":"created","issue":{"url":"https://api.github.com/repos/yesodweb/yesod/issues/1108","labels_url":"https://api.github.com/repos/yesodweb/yesod/issues/1108/labels{/name}","comments_url":"https://api.github.com/repos/yesodweb/yesod/issues/1108/comments","events_url":"https://api.github.com/repos/yesodweb/yesod/issues/1108/events","html_url":"https://github.com/yesodweb/yesod/issues/1108","id":119317206,"number":1108,"title":"Compiling scaffolded site with nightly-2015-11-25 doesn't pass type-check","user":{"login":"mrkkrp","id":8165792,"avatar_url":"https://avatars.githubusercontent.com/u/8165792?v=3","gravatar_id":"","url":"https://api.github.com/users/mrkkrp","html_url":"https://github.com/mrkkrp","followers_url":"https://api.github.com/users/mrkkrp/followers","following_url":"https://api.github.com/users/mrkkrp/following{/other_user}","gists_url":"https://api.github.com/users/mrkkrp/gists{/gist_id}","starred_url":"https://api.github.com/users/mrkkrp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrkkrp/subscriptions","organizations_url":"https://api.github.com/users/mrkkrp/orgs","repos_url":"https://api.github.com/users/mrkkrp/repos","events_url":"https://api.github.com/users/mrkkrp/events{/privacy}","received_events_url":"https://api.github.com/users/mrkkrp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-28T20:48:33Z","updated_at":"2015-11-29T16:31:18Z","closed_at":"2015-11-29T16:31:18Z","body":"I started with `yesod-prostgres` template. Next, I specified resolver `nightly-2015-11-25` because it contains update of one package that I really want to use. I don't know if this is related, but to compile the scaffolded site with this resolver I had to drop upper bound for `yesod-test` package (was `< 1.5.0`) because version of `yesod-test` in that resolver is 1.5.0.1.\r\n\r\nNow when I run `stack test` on tests from scaffolded site I get type error:\r\n\r\n```\r\n/home/mark/projects/programs/reproducing-that-disaster/test/Handler/HomeSpec.hs:7:5:\r\nCouldn't match type ‘(site0, wai-3.0.4.0:Network.Wai.Middleware)’\r\n               with ‘App’\r\nExpected type: hspec-core-2.2.0:Test.Hspec.Core.Spec.Monad.SpecM\r\n                 App ()\r\n  Actual type: SpecWith\r\n                 (Arg\r\n                    (Control.Monad.Trans.State.Lazy.StateT\r\n                       (YesodExampleData site0) IO ()))\r\nIn a stmt of a 'do' block:\r\n  it \"loads the index and checks it looks right\"\r\n  $ do { get HomeR;\r\n         statusIs 200;\r\n         htmlAllContain \"h1\" \"Welcome to Yesod\";\r\n         request\r\n         $ do { setMethod \"POST\";\r\n                setUrl HomeR;\r\n                .... };\r\n         .... }\r\nIn the second argument of ‘($)’, namely\r\n  ‘do { it \"loads the index and checks it looks right\"\r\n        $ do { get HomeR;\r\n               statusIs 200;\r\n               .... };\r\n        it \"leaves the user table empty\"\r\n        $ do { get HomeR;\r\n               statusIs 200;\r\n               .... } }’\r\nIn the expression:\r\n  withApp\r\n  $ do { it \"loads the index and checks it looks right\"\r\n         $ do { get HomeR;\r\n                statusIs 200;\r\n                .... };\r\n         it \"leaves the user table empty\"\r\n         $ do { get HomeR;\r\n                statusIs 200;\r\n                .... } }\r\n```\r\n\r\nI only can say that this is some sort of package incompatibility. I don't have enough knowledge of Yesod-ecosystem yet to tell how to work around this issue.\r\n\r\nWhat is causing this and can I make it work using the same resolver?\r\n"},"comment":{"url":"https://api.github.com/repos/yesodweb/yesod/issues/comments/160430532","html_url":"https://github.com/yesodweb/yesod/issues/1108#issuecomment-160430532","issue_url":"https://api.github.com/repos/yesodweb/yesod/issues/1108","id":160430532,"user":{"login":"gregwebs","id":1183,"avatar_url":"https://avatars.githubusercontent.com/u/1183?v=3","gravatar_id":"","url":"https://api.github.com/users/gregwebs","html_url":"https://github.com/gregwebs","followers_url":"https://api.github.com/users/gregwebs/followers","following_url":"https://api.github.com/users/gregwebs/following{/other_user}","gists_url":"https://api.github.com/users/gregwebs/gists{/gist_id}","starred_url":"https://api.github.com/users/gregwebs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregwebs/subscriptions","organizations_url":"https://api.github.com/users/gregwebs/orgs","repos_url":"https://api.github.com/users/gregwebs/repos","events_url":"https://api.github.com/users/gregwebs/events{/privacy}","received_events_url":"https://api.github.com/users/gregwebs/received_events","type":"User","site_admin":false},"created_at":"2015-11-29T16:31:18Z","updated_at":"2015-11-29T16:31:18Z","body":"you need to use the newer version of yesod-test (put it in extra-deps in stack.yaml)"}}