Installing ghc-mod on Windows

140 views
Skip to first unread message

Anakreontas

unread,
May 22, 2015, 11:06:32 AM5/22/15
to haskel...@googlegroups.com
I tried to instal ghc-mod on Windows with cabal. Two dependencies fail to compile because of missing native libraries.
ansi-terminal requires kernel32 and 
lifted-base requires inlinable.h.

Have you solved a similar problem? In Linux it would be easy to install the native libraries but in Windows I do not know which programs I should install and where to find them.

Roman Cheplyaka

unread,
May 22, 2015, 12:09:21 PM5/22/15
to Anakreontas, haskell-cafe
You should be able to install ansi-terminal by patching its cabal file,
see https://github.com/feuerbach/ansi-terminal/issues/6

Once again, I'm asking Windows users and developers for their input on
this issue.

Roman

signature.asc

Michal Antkiewicz

unread,
May 22, 2015, 1:30:59 PM5/22/15
to Roman Cheplyaka, haskell-cafe, Anakreontas
Hi,

are you using msys and MinGHC?

For now, I clone ghc-mod @ master and just cabal install it (with MinGHC 0.7.10 and cabal 1.22) within msys. It has not been released yet.

Michał

_______________________________________________
Haskell-Cafe mailing list
Haskel...@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe


Anakreontas Mentis

unread,
May 26, 2015, 6:16:12 AM5/26/15
to haskel...@googlegroups.com
I installed the MinGHC distribution but it did not solve the problem.

To install ghc-mod I had to:
1) cabal install ghc-mod
to install what cabal can build without errors.
2) Modify the cabal file of ansiterminal according to Roman's advice. It installed successfully.
3) Modify the cabal file of lifted-base where I removed the Include-dirs and Includes directives and all references to inlinable.h from the source files.
cabal reports that it can not find the header file or it is damaged.
The file exists in the include directory but even with 

On Fri, May 22, 2015 at 7:58 PM, Michal Antkiewicz <mant...@gsd.uwaterloo.ca> wrote:
There used to be a big warning "don't download just the ghc. Use the platform. " before.

Nowadays, it's best to get MinGHC from

https://www.haskell.org/downloads/windows

this distribution is best, it'll allow you build the network package and other things like the ansi-terminal, etc.

Get the 32bit installer.

Michał

On Fri, May 22, 2015 at 2:10 PM, <anakre...@gmail.com> wrote:
Hello.
I don't know the MinGHC release. To install ghc I downloaded a windows
install program from https://www.haskell.org/ghc/.
--


Anakreontas Mentis

unread,
May 26, 2015, 6:18:30 AM5/26/15
to haskel...@googlegroups.com
... continued from previous message
.. even  with command cabal install --extra-include-dirs=include cabal still reports an error.
The header file is useful for older ghc versions that the one I have so removing the dependency on the header resolved the problem.

Anakreontas

unread,
May 26, 2015, 8:24:22 AM5/26/15
to haskel...@googlegroups.com
I think cabal reported errors regarding the header files where in fact the problem was that it could not find a c compiler. I tried to install QuickCheck and the primitives package required by QuickCheck failed to install with errors related to header files. After installing gcc, primitives and QuickCheck installed without errors.
Reply all
Reply to author
Forward
0 new messages