Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about gloss

Read more about gloss

python (65.2k questions)

javascript (44.3k questions)

reactjs (22.7k questions)

java (20.8k questions)

c# (17.4k questions)

html (16.3k questions)

r (13.7k questions)

android (13k questions)

Questions - gloss

Haskell gloss library, how to run appendFile on model signiture for log to file?

this is the bouncing ball code. I'm trying to make 'appendFile' run on the update function, so when the ball bounces off the wall, then 'appendFile' will write the px and px values to the file "l...
test-img

Newt

haskell

simulate

gloss

Votes: 0

Answers: 1

Latest Answer

Haskell is really strict about side effects. Writing to a file is a side effect, and a pure function (like your update) is not allowed to have side effects. If you merely want to record the data for d...
test-img

Paul Johnson

setting up graphics.gloss haskell

I'm new to Haskell, I'm trying to use a library called graphics.gloss but I keep getting this error and I'm not sure what is the problem exactly. PS E:\TicTacToeGame> cabal install base-4.2 cabal...
test-img

Amira Mahmoud

haskell

functional-programming

haskell-stack

gloss

Votes: 0

Answers: 1

Latest Answer

The version of base is tied to the version of GHC. It looks like you're on GHC 9.2, which a lot of libraries still don't support yet. You can try passing --allow-newer to cabal, but I expect that to c...
test-img

Joseph Sible-Reinstate Monica

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved