I'm passing a (strict) ByteString
to something expecting a System.IO.FilePath
, which is declared as type FilePath = String
. I'm also using {-# LANGUAGE OverloadedStrings #-}
. I've had conversions in some places happen automatically, but here it does not. What have I got wrong?
Main.hs:33:40: error:
• Couldn't match type ‘ByteString’ with ‘[Char]’
Expected type: FilePath
Actual type: ByteString