[Yesod] What is ContentFile's second argument?

Hi Now, I'm converting my yesod app 0.7 to 0.8 I'm facing to the code like this. return $ RepHtml $ ContentFile path I looked up ContentFile has 2 arguments, on 0.8. the second argument of this is Maybe FilePart. If I write this Nothing, what does it mean? thanks.

Sorry, that should be more well documented. "Nothing" means send the
whole file, "Just ..." will specify a piece of the file to send.
Michael
On Thu, Jun 2, 2011 at 11:27 AM, Katsutoshi Itoh
Hi
Now, I'm converting my yesod app 0.7 to 0.8
I'm facing to the code like this.
return $ RepHtml $ ContentFile path
I looked up ContentFile has 2 arguments, on 0.8. the second argument of this is Maybe FilePart. If I write this Nothing, what does it mean?
thanks.
_______________________________________________ web-devel mailing list web-devel@haskell.org http://www.haskell.org/mailman/listinfo/web-devel
participants (2)
-
Katsutoshi Itoh
-
Michael Snoyman