Resolving dependencies... Configuring lbfgs-0.0.1... Building lbfgs-0.0.1... Preprocessing library lbfgs-0.0.1... [1 of 2] Compiling Numeric.LBFGS.Raw ( dist/build/Numeric/LBFGS/Raw.hs, dist/build/Numeric/LBFGS/Raw.o ) Numeric/LBFGS/Raw.hsc:171:1: Unacceptable argument type in foreign declaration: ‘CInt’ cannot be marshalled in a foreign call because its data construtor is not in scope Possible fix: import the data constructor to bring it into scope When checking declaration: foreign import ccall safe "wrapper" c_lbfgs_evaluate_t_wrap :: CEvaluateFun a -> IO (FunPtr (CEvaluateFun a)) Numeric/LBFGS/Raw.hsc:171:1: Unacceptable argument type in foreign declaration: ‘CDouble’ cannot be marshalled in a foreign call because its data construtor is not in scope Possible fix: import the data constructor to bring it into scope When checking declaration: foreign import ccall safe "wrapper" c_lbfgs_evaluate_t_wrap :: CEvaluateFun a -> IO (FunPtr (CEvaluateFun a)) Numeric/LBFGS/Raw.hsc:171:1: Unacceptable result type in foreign declaration: ‘CDouble’ cannot be marshalled in a foreign call because its data construtor is not in scope Possible fix: import the data constructor to bring it into scope When checking declaration: foreign import ccall safe "wrapper" c_lbfgs_evaluate_t_wrap :: CEvaluateFun a -> IO (FunPtr (CEvaluateFun a)) Numeric/LBFGS/Raw.hsc:174:1: Unacceptable argument type in foreign declaration: ‘CDouble’ cannot be marshalled in a foreign call because its data construtor is not in scope Possible fix: import the data constructor to bring it into scope When checking declaration: foreign import ccall safe "wrapper" c_lbfgs_progress_t_wrap :: CProgressFun a -> IO (FunPtr (CProgressFun a)) Numeric/LBFGS/Raw.hsc:174:1: Unacceptable argument type in foreign declaration: ‘CDouble’ cannot be marshalled in a foreign call because its data construtor is not in scope Possible fix: import the data constructor to bring it into scope When checking declaration: foreign import ccall safe "wrapper" c_lbfgs_progress_t_wrap :: CProgressFun a -> IO (FunPtr (CProgressFun a)) Numeric/LBFGS/Raw.hsc:174:1: Unacceptable argument type in foreign declaration: ‘CDouble’ cannot be marshalled in a foreign call because its data construtor is not in scope Possible fix: import the data constructor to bring it into scope When checking declaration: foreign import ccall safe "wrapper" c_lbfgs_progress_t_wrap :: CProgressFun a -> IO (FunPtr (CProgressFun a)) Numeric/LBFGS/Raw.hsc:174:1: Unacceptable argument type in foreign declaration: ‘CDouble’ cannot be marshalled in a foreign call because its data construtor is not in scope Possible fix: import the data constructor to bring it into scope When checking declaration: foreign import ccall safe "wrapper" c_lbfgs_progress_t_wrap :: CProgressFun a -> IO (FunPtr (CProgressFun a)) Numeric/LBFGS/Raw.hsc:174:1: Unacceptable argument type in foreign declaration: ‘CInt’ cannot be marshalled in a foreign call because its data construtor is not in scope Possible fix: import the data constructor to bring it into scope When checking declaration: foreign import ccall safe "wrapper" c_lbfgs_progress_t_wrap :: CProgressFun a -> IO (FunPtr (CProgressFun a)) Numeric/LBFGS/Raw.hsc:174:1: Unacceptable argument type in foreign declaration: ‘CInt’ cannot be marshalled in a foreign call because its data construtor is not in scope Possible fix: import the data constructor to bring it into scope When checking declaration: foreign import ccall safe "wrapper" c_lbfgs_progress_t_wrap :: CProgressFun a -> IO (FunPtr (CProgressFun a)) Numeric/LBFGS/Raw.hsc:174:1: Unacceptable argument type in foreign declaration: ‘CInt’ cannot be marshalled in a foreign call because its data construtor is not in scope Possible fix: import the data constructor to bring it into scope When checking declaration: foreign import ccall safe "wrapper" c_lbfgs_progress_t_wrap :: CProgressFun a -> IO (FunPtr (CProgressFun a)) Numeric/LBFGS/Raw.hsc:174:1: Unacceptable result type in foreign declaration: ‘CInt’ cannot be marshalled in a foreign call because its data construtor is not in scope Possible fix: import the data constructor to bring it into scope When checking declaration: foreign import ccall safe "wrapper" c_lbfgs_progress_t_wrap :: CProgressFun a -> IO (FunPtr (CProgressFun a)) Numeric/LBFGS/Raw.hsc:177:1: Unacceptable argument type in foreign declaration: ‘CInt’ cannot be marshalled in a foreign call because its data construtor is not in scope Possible fix: import the data constructor to bring it into scope When checking declaration: foreign import ccall safe "static lbfgs.h lbfgs" c_lbfgs :: CInt -> Ptr CDouble -> Ptr CDouble -> FunPtr (CEvaluateFun a) -> FunPtr (CProgressFun a) -> Ptr a -> Ptr (CLBFGSParameter) -> IO (CInt) Numeric/LBFGS/Raw.hsc:177:1: Unacceptable result type in foreign declaration: ‘CInt’ cannot be marshalled in a foreign call because its data construtor is not in scope Possible fix: import the data constructor to bring it into scope When checking declaration: foreign import ccall safe "static lbfgs.h lbfgs" c_lbfgs :: CInt -> Ptr CDouble -> Ptr CDouble -> FunPtr (CEvaluateFun a) -> FunPtr (CProgressFun a) -> Ptr a -> Ptr (CLBFGSParameter) -> IO (CInt) Numeric/LBFGS/Raw.hsc:181:1: Unacceptable argument type in foreign declaration: ‘CInt’ cannot be marshalled in a foreign call because its data construtor is not in scope Possible fix: import the data constructor to bring it into scope When checking declaration: foreign import ccall unsafe "static lbfgs.h lbfgs_malloc" c_lbfgs_malloc :: CInt -> IO (Ptr CDouble) Failed to install lbfgs-0.0.1 cabal: Error: some packages failed to install: lbfgs-0.0.1 failed during the building phase. The exception was: ExitFailure 1