runhaskell

How do i use runhaskell with cabal-dev?

穿精又带淫゛_ 提交于 2019-12-09 08:36:33
问题 Unfortunately cabal-dev ghci does not work in this project, i get an error: Loading package download-0.3.2 ... linking ... ghc: /home/stulli/haskell/ifdl/cabal-dev//lib/download-0.3.2/ghc-7.4.1/HSdownload-0.3.2.o: unknown symbol `stat64' ghc: unable to load package `download-0.3.2' So i try runhaskell, but it uses the packages that come installed with cabal instead of cabal-dev and thus fails. update: runhaskell produces the same error: $ runhaskell -isrc:src/test -package-conf=cabal-dev

How to make a Haskell cabal project with library+executables that still run with runhaskell/ghci?

只谈情不闲聊 提交于 2019-11-28 03:06:05
If you declare a library + executable sections in a cabal file while avoiding double compilation of the library by putting the library into a hs-source-dirs directory, you cannot usually run your project with ghci and runhaskell anymore, especially if the executables have helper modules themselves. What is a recommended project layout that only builds what is needed once allows using runhaskell has a clean structure without hacks? nh2 Let's assume you have a mylib library, and mylib-commandline and mylib-server executables. You use hs-source-dirs for the library and each executable so that

How to make a Haskell cabal project with library+executables that still run with runhaskell/ghci?

人盡茶涼 提交于 2019-11-26 23:56:39
问题 If you declare a library + executable sections in a cabal file while avoiding double compilation of the library by putting the library into a hs-source-dirs directory, you cannot usually run your project with ghci and runhaskell anymore, especially if the executables have helper modules themselves. What is a recommended project layout that only builds what is needed once allows using runhaskell has a clean structure without hacks? 回答1: Let's assume you have a mylib library, and mylib