2

I am trying to install the Haskell gloss library, on Mac OS Catalina, but I have a lot of problems.

I download the tar.gz file from that page.

The first thing I did was follow this steps to install Haskell.

Already with cabal installed (the previous link downloads it), I used this command cabal install gloss. But report the following error:

❯ cabal install gloss                                                                                 
  Resolving dependencies...
  cabal: Cannot build the executables in the package gloss because it does not
  contain any executables. Check the .cabal file for the package and make sure
  that it properly declares the components that you expect.

I already did cabal update. And then again cabal install gloss, but nothing.

Then I did cabal v2-update, all okey. And cabal v2-install --lib gloss, but here the report was:

Marcos
  • 159
  • 1
  • 1
  • 8
  • You shouldn't need to manually download a tarball. Just `cabal v2-update && cabal v2-install --lib gloss`. Notice the `v2-` prefix is default in cabal version 3.0 or higher, I'm just including it here in case you are using an old cabal. – Thomas M. DuBuisson Feb 20 '20 at 23:08
  • @ThomasM.DuBuisson, I have just edit the question with what you told me, there is the report. – Marcos Feb 20 '20 at 23:31
  • Ah, this is horrible [bug in cabal](https://github.com/haskell/cabal/issues/5559) but there is a [solution](https://stackoverflow.com/questions/58755666/haskell-install-puremd5-package). – Thomas M. DuBuisson Feb 21 '20 at 01:12
  • Maybe it will work on stack? – radrow Feb 21 '20 at 12:40

0 Answers0