Skip to content

Commit 665c20d

Browse files
authored
Haddock corrections (#62)
* Fix typos in haddocks * Use correct function name
1 parent 1a09960 commit 665c20d

File tree

1 file changed

+3
-3
lines changed
  • servant-multipart-api/src/Servant/Multipart

1 file changed

+3
-3
lines changed

servant-multipart-api/src/Servant/Multipart/API.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@ import qualified Data.ByteString.Lazy as LBS
110110
-- @
111111
--
112112
-- 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',
114114
-- which takes an additional 'Context' argument. It simply is an
115115
-- heterogeneous list where you can for example store
116116
-- a value of type 'MultipartOptions' that has the configuration that
117117
-- you want, which would then get picked up by servant-multipart.
118118
--
119-
-- __Important__: as mentionned in the example above,
119+
-- __Important__: as mentioned in the example above,
120120
-- the file paths point to temporary files which get removed
121121
-- after your handler has run, if they are still there. It is
122122
-- therefore recommended to move or copy them somewhere in your
@@ -208,7 +208,7 @@ instance FromMultipart tag (MultipartData tag) where
208208
-- @
209209
-- data User = User { username :: Text, pic :: FilePath }
210210
--
211-
-- instance toMultipart Tmp User where
211+
-- instance ToMultipart Tmp User where
212212
-- toMultipart user = MultipartData [Input "username" $ username user]
213213
-- [FileData "pic"
214214
-- (pic user)

0 commit comments

Comments
 (0)