Skip to content

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

@sullyj3

Description

@sullyj3

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions