Resolving dependencies... Downloading hogre-0.1.0... [1 of 1] Compiling Main ( /tmp/hogre-0.1.0-26348/hogre-0.1.0/dist/setup/setup.hs, /tmp/hogre-0.1.0-26348/hogre-0.1.0/dist/setup/Main.o ) /tmp/hogre-0.1.0-26348/hogre-0.1.0/dist/setup/setup.hs:44:17: Couldn't match type ‘[(String, Maybe String)] -> containers-0.5.5.1:Data.Map.Base.Map String String -> ProgramLocation -> ConfiguredProgram’ with ‘ConfiguredProgram’ Expected type: IO ConfiguredProgram Actual type: IO ([(String, Maybe String)] -> containers-0.5.5.1:Data.Map.Base.Map String String -> ProgramLocation -> ConfiguredProgram) In the expression: return $ ConfiguredProgram pname Nothing [] (FoundOnSystem loc) In a case alternative: Just loc -> return $ ConfiguredProgram pname Nothing [] (FoundOnSystem loc) In a stmt of a 'do' block: case mloc of { Nothing -> err $ "Could not find program \"" ++ pname ++ "\"." ++ "Try installing the program from " ++ src ++ "." ++ "If you've installed the program, make sure the program is in your PATH." Just loc -> return $ ConfiguredProgram pname Nothing [] (FoundOnSystem loc) } /tmp/hogre-0.1.0-26348/hogre-0.1.0/dist/setup/setup.hs:44:62: Couldn't match expected type ‘[String]’ with actual type ‘ProgramLocation’ In the fourth argument of ‘ConfiguredProgram’, namely ‘(FoundOnSystem loc)’ In the second argument of ‘($)’, namely ‘ConfiguredProgram pname Nothing [] (FoundOnSystem loc)’ /tmp/hogre-0.1.0-26348/hogre-0.1.0/dist/setup/setup.hs:89:51: Couldn't match type ‘Distribution.ModuleName.ModuleName’ with ‘[Char]’ Expected type: [FilePath] Actual type: [Distribution.ModuleName.ModuleName] In the second argument of ‘notElem’, namely ‘expModules’ In the first argument of ‘filter’, namely ‘(`notElem` expModules)’ /tmp/hogre-0.1.0-26348/hogre-0.1.0/dist/setup/setup.hs:90:49: Couldn't match type ‘Distribution.ModuleName.ModuleName’ with ‘[Char]’ Expected type: String -> FilePath Actual type: String -> Distribution.ModuleName.ModuleName In the first argument of ‘map’, namely ‘fullModuleName’ In the second argument of ‘filter’, namely ‘(map fullModuleName genhsmodulenames)’ /tmp/hogre-0.1.0-26348/hogre-0.1.0/dist/setup/setup.hs:91:35: Couldn't match expected type ‘Maybe Language’ with actual type ‘[[Char]]’ In the 12th argument of ‘BuildInfo’, namely ‘["OgreMain"]’ In the expression: BuildInfo True [] [] [] [] [(Dependency (PackageName "OgreMain") (laterVersion (Version [1, 8] [])))] [] cppfiles [resCgenHsBase] (filter (`notElem` expModules) (map fullModuleName genhsmodulenames)) [] ["OgreMain"] [] [] [] [] [] [] [] [] [Dependency (PackageName "base") (intersectVersionRanges (orLaterVersion (Version [3] [])) (earlierVersion (Version [5] []))), Dependency (PackageName "haskell98") anyVersion] In an equation for ‘libbuildinfo’: libbuildinfo = BuildInfo True [] [] [] [] [(Dependency (PackageName "OgreMain") (laterVersion (Version [1, ....] [])))] [] cppfiles [resCgenHsBase] (filter (`notElem` expModules) (map fullModuleName genhsmodulenames)) [] ["OgreMain"] [] [] [] [] [] [] [] [] [Dependency (PackageName "base") (intersectVersionRanges (orLaterVersion (Version [3] [])) (earlierVersion (Version [5] []))), Dependency (PackageName "haskell98") anyVersion] /tmp/hogre-0.1.0-26348/hogre-0.1.0/dist/setup/setup.hs:92:33: Couldn't match type ‘Dependency’ with ‘[Char]’ Expected type: FilePath Actual type: Dependency In the expression: Dependency (PackageName "base") (intersectVersionRanges (orLaterVersion (Version [3] [])) (earlierVersion (Version [5] []))) In the 21st argument of ‘BuildInfo’, namely ‘[Dependency (PackageName "base") (intersectVersionRanges (orLaterVersion (Version [3] [])) (earlierVersion (Version [5] []))), Dependency (PackageName "haskell98") anyVersion]’ /tmp/hogre-0.1.0-26348/hogre-0.1.0/dist/setup/setup.hs:95:33: Couldn't match type ‘Dependency’ with ‘[Char]’ Expected type: FilePath Actual type: Dependency In the expression: Dependency (PackageName "haskell98") anyVersion In the 21st argument of ‘BuildInfo’, namely ‘[Dependency (PackageName "base") (intersectVersionRanges (orLaterVersion (Version [3] [])) (earlierVersion (Version [5] []))), Dependency (PackageName "haskell98") anyVersion]’ /tmp/hogre-0.1.0-26348/hogre-0.1.0/dist/setup/setup.hs:96:3: Couldn't match type ‘[Distribution.ModuleName.ModuleName] -> Bool -> BuildInfo -> Library’ with ‘Library’ Expected type: IO Library Actual type: IO ([Distribution.ModuleName.ModuleName] -> Bool -> BuildInfo -> Library) In a stmt of a 'do' block: return $ Library expModules True libbuildinfo In the expression: do { genhsmodulenames <- map takeBaseName <$> getFiles "hs" resCgenHs; cppfiles <- getFiles "cpp" resCgen; let expModules = map fullModuleName ... libbuildinfo = BuildInfo True ... ... ... ... ... ... cppfiles ... (filter (`notElem` expModules) (map fullModuleName genhsmodulenames)) ... ... ... ... ... ... ... ... ... ... ...; return $ Library expModules True libbuildinfo } In an equation for ‘mkLibrary’: mkLibrary = do { genhsmodulenames <- map takeBaseName <$> getFiles "hs" resCgenHs; cppfiles <- getFiles "cpp" resCgen; let expModules = ... ....; .... } /tmp/hogre-0.1.0-26348/hogre-0.1.0/dist/setup/setup.hs:96:31: Couldn't match expected type ‘[ModuleReexport]’ with actual type ‘Bool’ In the second argument of ‘Library’, namely ‘True’ In the second argument of ‘($)’, namely ‘Library expModules True libbuildinfo’ /tmp/hogre-0.1.0-26348/hogre-0.1.0/dist/setup/setup.hs:96:36: Couldn't match expected type ‘[Distribution.ModuleName.ModuleName]’ with actual type ‘[FilePath] -> [(CompilerFlavor, [String])] -> [(CompilerFlavor, [String])] -> [(CompilerFlavor, [String])] -> [(String, String)] -> [Dependency] -> containers-0.5.5.1:Data.Map.Base.Map PackageName ModuleRenaming -> BuildInfo’ Probable cause: ‘libbuildinfo’ is applied to too few arguments In the third argument of ‘Library’, namely ‘libbuildinfo’ In the second argument of ‘($)’, namely ‘Library expModules True libbuildinfo’ Failed to install hogre-0.1.0 cabal: Error: some packages failed to install: hogre-0.1.0 failed during the configure step. The exception was: ExitFailure 1