<p>I see you've also opened <a href="https://github.com/haskell/cabal/issues/7984" rel="nofollow noreferrer">this</a>, cabal issue. I'm afraid, this is really not a cardano question.</p>

CC BY-SA 4.0
2022-02-16T09:27:13.340Z
2022-02-16T09:27:13.340Z
angerman
<p>I just learning about Haskell and trying to create Haskell project with <em><strong>Cabal</strong></em>, but when I tried install <em><strong>Gloss</strong></em>, it always return an error</p>
<pre><code>-- error
...
ghc: could not execute: opt
cabal: Failed to build OpenGLRaw-3.3.4.1 (which is required by
exe:bouncingball from bouncingball-0.1.0.0). See the build log above for
details.
</code></pre>
<pre><code>-- project.cabal
build-depends:    base ^&gt;=4.14.3.0, gloss
</code></pre>
<p>anyone can help how could I fix this issue?</p>

<haskell><cabal>
Unable to install Gloss on Mac M1
# Unable to install Gloss on Mac M1

(Asked by: username_0 on 2022-02-14)

I just learning about Haskell and trying to create Haskell project with Cabal, but when I tried install Gloss, it always return an error
-- error
...
ghc: could not execute: opt
cabal: Failed to build OpenGLRaw-3.3.4.1 (which is required by
exe:bouncingball from bouncingball-0.1.0.0). See the build log above for
details.

-- project.cabal
build-depends:    base ^>=4.14.3.0, gloss

anyone can help how could I fix this issue?

**Tags:** haskell, cabal

---

## 1 answers

### Answer by username_1 on 2022-02-16. Score: 1

I see you've also opened [this](https://github.com/haskell/cabal/issues/7984), cabal issue. I'm afraid, this is really not a cardano question.


---

