{"action":"created","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/515","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/515/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/515/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/515/events","html_url":"https://github.com/commercialhaskell/stack/issues/515","id":92970834,"number":515,"title":"undefined reference to `snoymanzmblogzmexamplezm0zi0zi0_HandlerziEcho_getEchoR1_info'","user":{"login":"codygman","id":225847,"avatar_url":"https://avatars.githubusercontent.com/u/225847?v=3","gravatar_id":"","url":"https://api.github.com/users/codygman","html_url":"https://github.com/codygman","followers_url":"https://api.github.com/users/codygman/followers","following_url":"https://api.github.com/users/codygman/following{/other_user}","gists_url":"https://api.github.com/users/codygman/gists{/gist_id}","starred_url":"https://api.github.com/users/codygman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codygman/subscriptions","organizations_url":"https://api.github.com/users/codygman/orgs","repos_url":"https://api.github.com/users/codygman/repos","events_url":"https://api.github.com/users/codygman/events{/privacy}","received_events_url":"https://api.github.com/users/codygman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-04T04:43:35Z","updated_at":"2015-07-04T06:40:52Z","closed_at":null,"body":"[Repo with code to reproduce](https://github.com/codygman/stack-yesod-issue)\r\n\r\noutput:\r\n\r\n```shell\r\n~/programming/haskell/yesod/snoyman-blog-example $ stack build\r\nsnoyman-blog-example-0.0.0: build\r\nBuilding snoyman-blog-example-0.0.0...\r\nPreprocessing library snoyman-blog-example-0.0.0...\r\nIn-place registering snoyman-blog-example-0.0.0...\r\nPreprocessing executable 'snoyman-blog-example' for\r\nsnoyman-blog-example-0.0.0...\r\nLinking .stack-work/dist/x86_64-linux/Cabal-1.18.1.5/build/snoyman-blog-example/snoyman-blog-example ...\r\n/home/cody/programming/haskell/yesod/snoyman-blog-example/.stack-work/dist/x86_64-linux/Cabal-1.18.1.5/build/libHSsnoyman-blog-example-0.0.0.a(Application.o): In function `s1wzy_info':\r\n(.text+0x2bf8): undefined reference to `snoymanzmblogzmexamplezm0zi0zi0_HandlerziEcho_getEchoR1_info'\r\n/home/cody/programming/haskell/yesod/snoyman-blog-example/.stack-work/dist/x86_64-linux/Cabal-1.18.1.5/build/libHSsnoyman-blog-example-0.0.0.a(Application.o): In function `S1wG6_srt':\r\n(.data+0xa78): undefined reference to `snoymanzmblogzmexamplezm0zi0zi0_HandlerziEcho_getEchoR1_closure'\r\ncollect2: error: ld returned 1 exit status\r\n\r\n--  While building package snoyman-blog-example-0.0.0 using:\r\n      /home/cody/.stack/programs/x86_64-linux/ghc-7.8.4/bin/runhaskell -package=Cabal-1.18.1.5 -clear-package-db -global-package-db -package-db=/home/cody/.stack/snapshots/x86_64-linux/lts-2.16/7.8.4/pkgdb/ /tmp/stack18014/Setup.hs --builddir=.stack-work/dist/x86_64-linux/Cabal-1.18.1.5/ build\r\n    Process exited with code: ExitFailure 1\r\n```\r\n\r\nI tried running `stack clean` as well as deleting my dist directory to no avail. I'm now trying to delete the .stack-work directory. That didn't seem to fix things either.\r\n\r\nI've figured out that adding this handler seemed to cause the issue:\r\n\r\n```haskell\r\n{-# LANGUAGE TemplateHaskell #-}\r\nmodule Handler.Echo where\r\n\r\nimport Import\r\n\r\ngetEchoR :: String -> Handler Html\r\ngetEchoR theText = do\r\n  defaultLayout $ do\r\n    [whamlet|<h1>#{theText}|]\r\n```\r\n\r\nI'm also using yesod devel as per the instructions [here](http://www.yesodweb.com/blog/2015/06/stack-support-yesod-devel).\r\n"},"comment":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/comments/118471081","html_url":"https://github.com/commercialhaskell/stack/issues/515#issuecomment-118471081","issue_url":"https://api.github.com/repos/commercialhaskell/stack/issues/515","id":118471081,"user":{"login":"codygman","id":225847,"avatar_url":"https://avatars.githubusercontent.com/u/225847?v=3","gravatar_id":"","url":"https://api.github.com/users/codygman","html_url":"https://github.com/codygman","followers_url":"https://api.github.com/users/codygman/followers","following_url":"https://api.github.com/users/codygman/following{/other_user}","gists_url":"https://api.github.com/users/codygman/gists{/gist_id}","starred_url":"https://api.github.com/users/codygman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codygman/subscriptions","organizations_url":"https://api.github.com/users/codygman/orgs","repos_url":"https://api.github.com/users/codygman/repos","events_url":"https://api.github.com/users/codygman/events{/privacy}","received_events_url":"https://api.github.com/users/codygman/received_events","type":"User","site_admin":false},"created_at":"2015-07-04T06:40:52Z","updated_at":"2015-07-04T06:40:52Z","body":"Also experienced the issue with `Version 0.1.1.0, Git revision 38fa3cf7eb61017a321e91b5367ad49bae50d3a9`. I'm beginning to wonder if this is a Cabal or GHC issue, so trying out building this with cabal-install."}}