File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
servant-multipart-api/src/Servant/Multipart Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -110,13 +110,13 @@ import qualified Data.ByteString.Lazy as LBS
110
110
-- @
111
111
--
112
112
-- Note that the behavior of this combinator is configurable,
113
- -- by using 'serveWith ' from servant-server instead of 'serve',
113
+ -- by using 'serveWithContext ' from servant-server instead of 'serve',
114
114
-- which takes an additional 'Context' argument. It simply is an
115
115
-- heterogeneous list where you can for example store
116
116
-- a value of type 'MultipartOptions' that has the configuration that
117
117
-- you want, which would then get picked up by servant-multipart.
118
118
--
119
- -- __Important__: as mentionned in the example above,
119
+ -- __Important__: as mentioned in the example above,
120
120
-- the file paths point to temporary files which get removed
121
121
-- after your handler has run, if they are still there. It is
122
122
-- therefore recommended to move or copy them somewhere in your
@@ -208,7 +208,7 @@ instance FromMultipart tag (MultipartData tag) where
208
208
-- @
209
209
-- data User = User { username :: Text, pic :: FilePath }
210
210
--
211
- -- instance toMultipart Tmp User where
211
+ -- instance ToMultipart Tmp User where
212
212
-- toMultipart user = MultipartData [Input "username" $ username user]
213
213
-- [FileData "pic"
214
214
-- (pic user)
You can’t perform that action at this time.
0 commit comments