{"action":"reopened","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/18942","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/18942/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/18942/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/18942/events","html_url":"https://github.com/NixOS/nixpkgs/issues/18942","id":179064093,"number":18942,"title":"stack_1_2_0 fails to build","user":{"login":"ElvishJerricco","id":1365692,"avatar_url":"https://avatars.githubusercontent.com/u/1365692?v=3","gravatar_id":"","url":"https://api.github.com/users/ElvishJerricco","html_url":"https://github.com/ElvishJerricco","followers_url":"https://api.github.com/users/ElvishJerricco/followers","following_url":"https://api.github.com/users/ElvishJerricco/following{/other_user}","gists_url":"https://api.github.com/users/ElvishJerricco/gists{/gist_id}","starred_url":"https://api.github.com/users/ElvishJerricco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElvishJerricco/subscriptions","organizations_url":"https://api.github.com/users/ElvishJerricco/orgs","repos_url":"https://api.github.com/users/ElvishJerricco/repos","events_url":"https://api.github.com/users/ElvishJerricco/events{/privacy}","received_events_url":"https://api.github.com/users/ElvishJerricco/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/0.kind:%20bug","name":"0.kind: bug","color":"84b6eb"},{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/6.topic:%20haskell","name":"6.topic: haskell","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-09-25T02:44:13Z","updated_at":"2016-10-09T15:36:37Z","closed_at":null,"body":"## Issue description\r\n\r\nTrying to build `stack v1.2.0` from `nixpkgs/master` results in the following error.\r\n\r\n```\r\nBuilding stack-1.2.0...\r\nPreprocessing library stack-1.2.0...\r\n[ 1 of 96] Compiling Text.PrettyPrint.Leijen.Extended ( src/Text/PrettyPrint/Leijen/Extended.hs, dist/build/Text/PrettyPrint/Leijen/Extended.o )\r\n[ 2 of 96] Compiling Stack.Ghci.Script ( src/Stack/Ghci/Script.hs, dist/build/Stack/Ghci/Script.o )\r\n[ 3 of 96] Compiling Stack.FileWatch  ( src/Stack/FileWatch.hs, dist/build/Stack/FileWatch.o )\r\n[ 4 of 96] Compiling System.Process.PagerEditor ( src/System/Process/PagerEditor.hs, dist/build/System/Process/PagerEditor.o )\r\n[ 5 of 96] Compiling System.Process.Log ( src/System/Process/Log.hs, dist/build/System/Process/Log.o )\r\n[ 6 of 96] Compiling Paths_stack      ( dist/build/autogen/Paths_stack.hs, dist/build/Paths_stack.o )\r\n[ 7 of 96] Compiling Path.Find        ( src/Path/Find.hs, dist/build/Path/Find.o )\r\n[ 8 of 96] Compiling Path.Extra       ( src/Path/Extra.hs, dist/build/Path/Extra.o )\r\n[ 9 of 96] Compiling System.Process.Read ( src/System/Process/Read.hs, dist/build/System/Process/Read.o )\r\n[10 of 96] Compiling System.Process.Run ( src/System/Process/Run.hs, dist/build/System/Process/Run.o )\r\n[11 of 96] Compiling Options.Applicative.Complicated ( src/Options/Applicative/Complicated.hs, dist/build/Options/Applicative/Complicated.o )\r\n\r\nsrc/Options/Applicative/Complicated.hs:145:31: error:\r\n    • Couldn't match expected type ‘(t, t1, t2)’\r\n                  with actual type ‘([String], String -> Maybe (ParserInfo a))’\r\n    • In the expression: mkCommand m\r\n      In a pattern binding: (groupName, cmds, subs) = mkCommand m\r\n      In an equation for ‘hsubparser'’:\r\n          hsubparser' m\r\n            = mkParser d g rdr\r\n            where\r\n                Mod _ d g = metavar \"COMMAND|FILE\" `mappend` m\r\n                (groupName, cmds, subs) = mkCommand m\r\n                rdr = CmdReader groupName cmds (fmap add_helper . subs)\r\n                add_helper pinfo\r\n                  = pinfo {infoParser = infoParser pinfo <**> helpOption}\r\n    • Relevant bindings include\r\n        groupName :: t\r\n          (bound at src/Options/Applicative/Complicated.hs:145:6)\r\n        cmds :: t1 (bound at src/Options/Applicative/Complicated.hs:145:17)\r\n        subs :: t2 (bound at src/Options/Applicative/Complicated.hs:145:23)\r\n        m :: Mod CommandFields a\r\n          (bound at src/Options/Applicative/Complicated.hs:142:13)\r\n        hsubparser' :: Mod CommandFields a -> Parser a\r\n          (bound at src/Options/Applicative/Complicated.hs:142:1)\r\n\r\nsrc/Options/Applicative/Complicated.hs:146:11: error:\r\n    • Couldn't match expected type ‘(a1 -> f0 (ParserInfo a2)) -> t’\r\n                  with actual type ‘OptReader a0’\r\n    • The function ‘CmdReader’ is applied to three arguments,\r\n      but its type ‘[String]\r\n                    -> (String -> Maybe (ParserInfo a0)) -> OptReader a0’\r\n      has only two\r\n      In the expression:\r\n        CmdReader groupName cmds (fmap add_helper . subs)\r\n      In an equation for ‘rdr’:\r\n          rdr = CmdReader groupName cmds (fmap add_helper . subs)\r\n    • Relevant bindings include\r\n        rdr :: t (bound at src/Options/Applicative/Complicated.hs:146:5)\r\nbuilder for ‘/nix/store/vc08sacfgc4nrpcbgdpg5rawdiq28ib6-stack-1.2.0.drv’ failed with exit code 1\r\nerror: build of ‘/nix/store/vc08sacfgc4nrpcbgdpg5rawdiq28ib6-stack-1.2.0.drv’ failed\r\n```\r\n\r\n### Steps to reproduce\r\n\r\n```bash\r\n$ git clone https://github.com/nixos/nixpkgs\r\n$ cd nixpkgs\r\n$ nix-env -f . -iA haskellPackages.stack_1_2_0\r\n```\r\n\r\n## Technical details\r\n\r\n* System: OS X 10.11.6 (darwin-15.6.0)\r\n* Nix version: nix-env (Nix) 1.11.3\r\n* Nixpkgs version: commit: 912e26b\r\n"}}
{"actor":{"display_login":"domenkozar"}}