image,haskell,juicy-pixels
loadSampleImage path = case decodePng path of You're trying to literally decode the string "test.png" as a PNG. You want readPng, not decodePng. (Or you can just use readImage and not care about what format the file is in.)...