Skip to content

Does not seem to work under Windows #14

Closed
@bjornkihlberg

Description

@bjornkihlberg

Hello,

When I run the following program with cabal run under Windows nothing happens.

hello-raylib> cabal run
hello-raylib>

hello-raylib.cabal

cabal-version:      3.4
name:               hello-raylib
version:            0.1.0.0

common warnings
    ghc-options: -Wall

executable hello-raylib
    import:             warnings
    main-is:            Main.hs
    build-depends:      base ^>=4.16.0.0
                      , h-raylib
    hs-source-dirs:     app
    default-language:   Haskell2010

app/Main.hs

module Main where

import Control.Monad (unless)
import qualified Raylib.Core as Raylib

main :: IO ()
main = do
  w <- Raylib.initWindow 480 320 "Hello, Raylib!"
  let loop = do
        shouldClose <- Raylib.windowShouldClose
        unless shouldClose loop
  loop
  Raylib.closeWindow w

I tried updating my NVidia drivers. No change.
I installed raylib and successfully ran one of their examples in C so I suspect there's something wrong with this package or something I've done or missed in the code posted above.

Thank you and kind regards
Björn

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwindowsProblems with the bindings on windows

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions