I'm a beginner in haskell and trying to make a game. Currently learning Gloss graphics. I wonder how I can import an BMP (JPG or PNG) image in haskell? (As a character or background etc). I want the image to be shown in the graphics window IO (). But can't get it to work. Should I use another module than gloss for this?
Thanks for any help
loadBMP :: FilePath -> IO Picture
-- this obviously doesn't work, I tried this and hundreds of other things...
loadBMP = ./fish.bmp