File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -36,26 +36,21 @@ module Servant.Multipart
36
36
) where
37
37
38
38
import Control.Lens ((<>~) , (&) , view )
39
- import Control.Monad
40
39
import Control.Monad.IO.Class
41
40
import Control.Monad.Trans.Resource
42
- import Data.ByteString.Lazy (ByteString )
43
41
import Data.Foldable (foldMap )
44
- import Data.Function
45
42
import Data.List (find )
46
43
import Data.Maybe
47
44
import Data.Monoid
48
45
import Data.Text (Text , unpack )
49
46
import Data.Text.Encoding (decodeUtf8 )
50
47
import Data.Typeable
51
- import Network.HTTP.Media ((//) )
52
48
import Network.Wai
53
49
import Network.Wai.Parse
54
50
import Servant
55
51
import Servant.Docs
56
52
import Servant.Server.Internal
57
53
import System.Directory
58
- import System.IO
59
54
60
55
import qualified Data.ByteString as SBS
61
56
import qualified Data.ByteString.Lazy as LBS
@@ -429,8 +424,8 @@ instance {-# OVERLAPPING #-}
429
424
LookupContext cs a => LookupContext (a ': cs ) a where
430
425
lookupContext _ (c :. _) = Just c
431
426
432
- instance HasLink sub => HasLink (MultipartForm a :> sub ) where
433
- type MkLink (MultipartForm a :> sub ) = MkLink sub
427
+ instance HasLink sub => HasLink (MultipartForm tag a :> sub ) where
428
+ type MkLink (MultipartForm tag a :> sub ) = MkLink sub
434
429
toLink _ = toLink (Proxy :: Proxy sub )
435
430
436
431
-- | The 'ToMultipartSample' class allows you to create sample 'MultipartData'
You can’t perform that action at this time.
0 commit comments