How could I write a function with a definition something like…
readBinaryFile :: Filename -> IO Data.ByteString
I’ve got the functional parts of Haskell down, but the type system and monads still make my head hurt. Can someone write and explain how that function works to me?
easy as pie man. Knock off the lazy if you don’t want the string to be lazy.