sdl2-image icon indicating copy to clipboard operation
sdl2-image copied to clipboard

Calling load causes the program to do nothing. (Windows, Stack)

Open sullyj3 opened this issue 4 years ago • 4 comments

The following program has no output:

module Main where

import SDL.Image

main :: IO ()
main = do
  putStrLn "hello world"

  f <- load "guy.png"
  putStrLn $ seq f "f loaded"

Commenting out the last two lines gives the expected output "hello world".

On Windows with stack, in stack.yaml:

extra-deps:
- git: https://github.com/haskell-game/sdl2-image.git
  commit: 382395c763b473032721c71921b5c9241142178f

sullyj3 avatar Nov 21 '19 17:11 sullyj3