{"action":"created","issue":{"url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/433","labels_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/433/labels{/name}","comments_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/433/comments","events_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/433/events","html_url":"https://github.com/kazu-yamamoto/ghc-mod/issues/433","id":53823212,"number":433,"title":"Part of ghc-mod commands doesn't seem to work..","user":{"login":"adamczykm","id":5013362,"avatar_url":"https://avatars.githubusercontent.com/u/5013362?v=3","gravatar_id":"","url":"https://api.github.com/users/adamczykm","html_url":"https://github.com/adamczykm","followers_url":"https://api.github.com/users/adamczykm/followers","following_url":"https://api.github.com/users/adamczykm/following{/other_user}","gists_url":"https://api.github.com/users/adamczykm/gists{/gist_id}","starred_url":"https://api.github.com/users/adamczykm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamczykm/subscriptions","organizations_url":"https://api.github.com/users/adamczykm/orgs","repos_url":"https://api.github.com/users/adamczykm/repos","events_url":"https://api.github.com/users/adamczykm/events{/privacy}","received_events_url":"https://api.github.com/users/adamczykm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-01-09T01:20:20Z","updated_at":"2015-08-24T06:36:51Z","closed_at":"2015-06-08T17:31:22Z","body":"Can you see the reason behind following issues? : \r\n\r\nIssue 1:\r\nI have a hole in my code:\r\n          maybeMap x f = _maybeMap_body\r\nBut ghc-mod insists: \"No holes\"\r\n\r\nIssue 2:\r\nI'm trying to have Eq type class functions completed with ghc-insert-template-or-signature (C-u M-t).\r\n         data ExampleType = ExampleType Int Int\r\n         instance Eq ExampleType where\r\nAnd I got: \"Cannot obtain initial code\"\r\n\r\nIssue 3:\r\nAnd want to complete case split with M-t:\r\n        maybeMap :: Maybe a -> (a -> b) -> (Maybe b)\r\n        maybeMap x f = _maybeMap_body\r\n =>\r\n        maybeMap :: Maybe a -> (a -> b) -> (Maybe b) \r\n        maybeMap Nothing f = _maybeMap_body\r\n        maybeMap (Just x) f = _maybeMap_body\r\n\r\nI only get it working if I save the file just before using the command.\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/comments/134061121","html_url":"https://github.com/kazu-yamamoto/ghc-mod/issues/433#issuecomment-134061121","issue_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/433","id":134061121,"user":{"login":"phadej","id":51087,"avatar_url":"https://avatars.githubusercontent.com/u/51087?v=3","gravatar_id":"","url":"https://api.github.com/users/phadej","html_url":"https://github.com/phadej","followers_url":"https://api.github.com/users/phadej/followers","following_url":"https://api.github.com/users/phadej/following{/other_user}","gists_url":"https://api.github.com/users/phadej/gists{/gist_id}","starred_url":"https://api.github.com/users/phadej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phadej/subscriptions","organizations_url":"https://api.github.com/users/phadej/orgs","repos_url":"https://api.github.com/users/phadej/repos","events_url":"https://api.github.com/users/phadej/events{/privacy}","received_events_url":"https://api.github.com/users/phadej/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T06:36:51Z","updated_at":"2015-08-24T06:36:51Z","body":"For some reason ghc-mod doesn't seem to work suddenly:\r\n- OSX\r\n- GHC 7.8.4\r\n- cabal-install version 1.18.1.0\r\n- using version 1.18.1.5 of the Cabal library\r\n- ghc-mod version 5.2.1.2 compiled by GHC 7.8.4\r\n- ghc emacs package: Version: 20150811.2352\r\n\r\nWhen I open first haskell file I see in messages buffer: \r\n```\r\nLoading symbols for Data.Monoid...done\r\n```\r\n\r\nand then nothing.\r\n\r\nE.g. when I try to show the type `Cannot determine type`. Neither from emacs or command line:\r\n```\r\n% ghc-mod type src/Data/Range.hs -v 85 37\r\n% echo $?\r\n0\r\n```\r\nThe position is pointing to `fromMaybe` symbol (Data.Maybe is imported).\r\n\r\n---\r\n\r\n- `ghc-mod browse Data.Monoid` works\r\n- `ghc-mod browse Data.Range` (module under development) doesn't.\r\n\r\nAny hints how to debug this further?\r\n\r\n---\r\n```\r\n% ghc-mod debug \r\nRoot directory:      /Users/ogre/Coding/public-haskell/range-set\r\nCurrent directory:   /Users/ogre/Coding/public-haskell/range-set\r\nCabal file:          Just \"/Users/ogre/Coding/public-haskell/range-set/range-set.cabal\"\r\nGHC options:         -global-package-db -user-package-db -XHaskell2010 -optP-include -optP/Users/ogre/Coding/public-haskell/range-set/dist/build/autogen/cabal_macros.h\r\nInclude directories: /Users/ogre/Coding/public-haskell/range-set /Users/ogre/Coding/public-haskell/range-set/dist/build /Users/ogre/Coding/public-haskell/range-set/dist/build/autogen /Users/ogre/Coding/public-haskell/range-set/src\r\nDependent packages:  base-4.7.0.2\r\nSystem libraries:    /usr/local/lib/ghc-7.8.4\r\n```"}}