{"action":"created","issue":{"url":"https://api.github.com/repos/hdevtools/hdevtools/issues/18","repository_url":"https://api.github.com/repos/hdevtools/hdevtools","labels_url":"https://api.github.com/repos/hdevtools/hdevtools/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/hdevtools/hdevtools/issues/18/comments","events_url":"https://api.github.com/repos/hdevtools/hdevtools/issues/18/events","html_url":"https://github.com/hdevtools/hdevtools/issues/18","id":154676865,"number":18,"title":"Can't compile with Cabal-1.24","user":{"login":"winterland1989","id":1295998,"avatar_url":"https://avatars.githubusercontent.com/u/1295998?v=3","gravatar_id":"","url":"https://api.github.com/users/winterland1989","html_url":"https://github.com/winterland1989","followers_url":"https://api.github.com/users/winterland1989/followers","following_url":"https://api.github.com/users/winterland1989/following{/other_user}","gists_url":"https://api.github.com/users/winterland1989/gists{/gist_id}","starred_url":"https://api.github.com/users/winterland1989/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/winterland1989/subscriptions","organizations_url":"https://api.github.com/users/winterland1989/orgs","repos_url":"https://api.github.com/users/winterland1989/repos","events_url":"https://api.github.com/users/winterland1989/events{/privacy}","received_events_url":"https://api.github.com/users/winterland1989/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-13T10:02:09Z","updated_at":"2016-05-13T10:25:34Z","closed_at":null,"body":"After i upgrade my cabal, hdevtools stop to build, here is the log:\r\n\r\n```\r\nResolving dependencies...\r\nDownloading hdevtools-0.1.3.0...\r\nConfiguring hdevtools-0.1.3.0...\r\nBuilding hdevtools-0.1.3.0...\r\nFailed to install hdevtools-0.1.3.0\r\nBuild log ( /Users/winter/.cabal/logs/hdevtools-0.1.3.0.log ):\r\ncabal: Entering directory '/var/folders/ms/09vyhx954x75spmp3_klwb4m0000gn/T/cabal-tmp-38732/hdevtools-0.1.3.0'\r\nConfiguring hdevtools-0.1.3.0...\r\nBuilding hdevtools-0.1.3.0...\r\nPreprocessing executable 'hdevtools' for hdevtools-0.1.3.0...\r\n[ 1 of 13] Compiling Paths_hdevtools  ( dist/build/autogen/Paths_hdevtools.hs, dist/build/hdevtools/hdevtools-tmp/Paths_hdevtools.o )\r\n[ 2 of 13] Compiling FindSymbol       ( src/FindSymbol.hs, dist/build/hdevtools/hdevtools-tmp/FindSymbol.o )\r\n[ 3 of 13] Compiling Info             ( src/Info.hs, dist/build/hdevtools/hdevtools-tmp/Info.o )\r\n[ 4 of 13] Compiling Util             ( src/Util.hs, dist/build/hdevtools/hdevtools-tmp/Util.o )\r\n[ 5 of 13] Compiling Types            ( src/Types.hs, dist/build/hdevtools/hdevtools-tmp/Types.o )\r\n[ 6 of 13] Compiling Stack            ( src/Stack.hs, dist/build/hdevtools/hdevtools-tmp/Stack.o )\r\n[ 7 of 13] Compiling Daemonize        ( src/Daemonize.hs, dist/build/hdevtools/hdevtools-tmp/Daemonize.o )\r\n[ 8 of 13] Compiling CommandArgs      ( src/CommandArgs.hs, dist/build/hdevtools/hdevtools-tmp/CommandArgs.o )\r\n[ 9 of 13] Compiling Cabal            ( src/Cabal.hs, dist/build/hdevtools/hdevtools-tmp/Cabal.o )\r\n\r\nsrc/Cabal.hs:173:17:\r\n    Couldn't match type ‘GhcOptions -> [String]’ with ‘[String]’\r\n    Expected type: IO (Either String [String])\r\n      Actual type: IO (Either String (GhcOptions -> [String]))\r\n    In a stmt of a 'do' block:\r\n      return $ Right $ renderGhcOptions ghcInfo ghcOpts\r\n    In the expression:\r\n      do { let mbLibName = pkgLibName pkgDescr;\r\n           let ghcOpts'\r\n                 = foldl' mappend mempty\r\n                   $ map (getComponentGhcOptions localBuildInfo)\r\n                     $ flip allComponentsBy (\\ c -> ...) . localPkgDescr\r\n                       $ localBuildInfo\r\n               ghcOpts = ...;\r\n           (ghcInfo, _, _) <- GHC.configure\r\n                                silent Nothing Nothing defaultProgramConfiguration;\r\n           return $ Right $ renderGhcOptions ghcInfo ghcOpts }\r\n    In a case alternative:\r\n        Just _\r\n          -> do { let mbLibName = ...;\r\n                  let ghcOpts' = ...\r\n                      ....;\r\n                  (ghcInfo, _, _) <- GHC.configure\r\n                                       silent Nothing Nothing defaultProgramConfiguration;\r\n                  .... }\r\n\r\nsrc/Cabal.hs:173:59:\r\n    Couldn't match expected type ‘Distribution.System.Platform’\r\n                with actual type ‘GhcOptions’\r\n    In the second argument of ‘renderGhcOptions’, namely ‘ghcOpts’\r\n    In the second argument of ‘($)’, namely\r\n      ‘renderGhcOptions ghcInfo ghcOpts’\r\ncabal: Leaving directory '/var/folders/ms/09vyhx954x75spmp3_klwb4m0000gn/T/cabal-tmp-38732/hdevtools-0.1.3.0'\r\ncabal: Error: some packages failed to install:\r\nhdevtools-0.1.3.0 failed during the building phase. The exception was:\r\nExitFailure 1\r\n```\r\n\r\nIs there a easy fix for this?"},"comment":{"url":"https://api.github.com/repos/hdevtools/hdevtools/issues/comments/219007167","html_url":"https://github.com/hdevtools/hdevtools/issues/18#issuecomment-219007167","issue_url":"https://api.github.com/repos/hdevtools/hdevtools/issues/18","id":219007167,"user":{"login":"ch1bo","id":2621189,"avatar_url":"https://avatars.githubusercontent.com/u/2621189?v=3","gravatar_id":"","url":"https://api.github.com/users/ch1bo","html_url":"https://github.com/ch1bo","followers_url":"https://api.github.com/users/ch1bo/followers","following_url":"https://api.github.com/users/ch1bo/following{/other_user}","gists_url":"https://api.github.com/users/ch1bo/gists{/gist_id}","starred_url":"https://api.github.com/users/ch1bo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ch1bo/subscriptions","organizations_url":"https://api.github.com/users/ch1bo/orgs","repos_url":"https://api.github.com/users/ch1bo/repos","events_url":"https://api.github.com/users/ch1bo/events{/privacy}","received_events_url":"https://api.github.com/users/ch1bo/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T10:25:34Z","updated_at":"2016-05-13T10:25:34Z","body":"Yes I guess so. Can you quickly try to build the master branch? If that works I will release 0.1.3.1\n\nSent from TypeApp\n\n\n\nOn May 13, 2016, 12:02 PM, at 12:02 PM, winterland <notifications@github.com> wrote:\n>After i upgrade my cabal, hdevtools stop to build, here is the log:\n>\n>```\n>Resolving dependencies...\n>Downloading hdevtools-0.1.3.0...\n>Configuring hdevtools-0.1.3.0...\n>Building hdevtools-0.1.3.0...\n>Failed to install hdevtools-0.1.3.0\n>Build log ( /Users/winter/.cabal/logs/hdevtools-0.1.3.0.log ):\n>cabal: Entering directory\n>'/var/folders/ms/09vyhx954x75spmp3_klwb4m0000gn/T/cabal-tmp-38732/hdevtools-0.1.3.0'\n>Configuring hdevtools-0.1.3.0...\n>Building hdevtools-0.1.3.0...\n>Preprocessing executable 'hdevtools' for hdevtools-0.1.3.0...\n>[ 1 of 13] Compiling Paths_hdevtools  (\n>dist/build/autogen/Paths_hdevtools.hs,\n>dist/build/hdevtools/hdevtools-tmp/Paths_hdevtools.o )\n>[ 2 of 13] Compiling FindSymbol       ( src/FindSymbol.hs,\n>dist/build/hdevtools/hdevtools-tmp/FindSymbol.o )\n>[ 3 of 13] Compiling Info             ( src/Info.hs,\n>dist/build/hdevtools/hdevtools-tmp/Info.o )\n>[ 4 of 13] Compiling Util             ( src/Util.hs,\n>dist/build/hdevtools/hdevtools-tmp/Util.o )\n>[ 5 of 13] Compiling Types            ( src/Types.hs,\n>dist/build/hdevtools/hdevtools-tmp/Types.o )\n>[ 6 of 13] Compiling Stack            ( src/Stack.hs,\n>dist/build/hdevtools/hdevtools-tmp/Stack.o )\n>[ 7 of 13] Compiling Daemonize        ( src/Daemonize.hs,\n>dist/build/hdevtools/hdevtools-tmp/Daemonize.o )\n>[ 8 of 13] Compiling CommandArgs      ( src/CommandArgs.hs,\n>dist/build/hdevtools/hdevtools-tmp/CommandArgs.o )\n>[ 9 of 13] Compiling Cabal            ( src/Cabal.hs,\n>dist/build/hdevtools/hdevtools-tmp/Cabal.o )\n>\n>src/Cabal.hs:173:17:\n>    Couldn't match type ‘GhcOptions -> [String]’ with ‘[String]’\n>    Expected type: IO (Either String [String])\n>      Actual type: IO (Either String (GhcOptions -> [String]))\n>    In a stmt of a 'do' block:\n>      return $ Right $ renderGhcOptions ghcInfo ghcOpts\n>    In the expression:\n>      do { let mbLibName = pkgLibName pkgDescr;\n>           let ghcOpts'\n>                 = foldl' mappend mempty\n>                   $ map (getComponentGhcOptions localBuildInfo)\n>                    $ flip allComponentsBy (\\ c -> ...) . localPkgDescr\n>                       $ localBuildInfo\n>               ghcOpts = ...;\n>           (ghcInfo, _, _) <- GHC.configure\n>                    silent Nothing Nothing defaultProgramConfiguration;\n>           return $ Right $ renderGhcOptions ghcInfo ghcOpts }\n>    In a case alternative:\n>        Just _\n>          -> do { let mbLibName = ...;\n>                  let ghcOpts' = ...\n>                      ....;\n>                  (ghcInfo, _, _) <- GHC.configure\n>                    silent Nothing Nothing defaultProgramConfiguration;\n>                  .... }\n>\n>src/Cabal.hs:173:59:\n>    Couldn't match expected type ‘Distribution.System.Platform’\n>                with actual type ‘GhcOptions’\n>    In the second argument of ‘renderGhcOptions’, namely ‘ghcOpts’\n>    In the second argument of ‘($)’, namely\n>      ‘renderGhcOptions ghcInfo ghcOpts’\n>cabal: Leaving directory\n>'/var/folders/ms/09vyhx954x75spmp3_klwb4m0000gn/T/cabal-tmp-38732/hdevtools-0.1.3.0'\n>cabal: Error: some packages failed to install:\n>hdevtools-0.1.3.0 failed during the building phase. The exception was:\n>ExitFailure 1\n>```\n>\n>Is there a easy fix for this?\n>\n>---\n>You are receiving this because you are subscribed to this thread.\n>Reply to this email directly or view it on GitHub:\n>https://github.com/hdevtools/hdevtools/issues/18\n"}}