git.iko.soy/typeable/servant
on master help sign in
servant-mock support for CaptureAll
commit0d8a5b5afff7a99bbba3970691d703a79003fb9d authorJonathan Lange <jml@mumak.net> dateThu 26 May 2016, 16:55 (10 years ago) parenta616a8d
1 file changed+3
servant-mock/src/Servant/Mock.hs+3
servant-mock/src/Servant/Mock.hs+3
@@ -115,6 +115,9 @@ instance (KnownSymbol path, HasMock rest context) => HasMock (path :> rest) cont
115115instance (KnownSymbol s, FromHttpApiData a, HasMock rest context) => HasMock (Capture s a :> rest) context where
116116 mock _ context = \_ -> mock (Proxy :: Proxy rest) context
117117
118+instance (KnownSymbol s, FromHttpApiData a, HasMock rest context) => HasMock (CaptureAll s a :> rest) context where
119+ mock _ context = \_ -> mock (Proxy :: Proxy rest) context
120+
118121instance (AllCTUnrender ctypes a, HasMock rest context) => HasMock (ReqBody ctypes a :> rest) context where
119122 mock _ context = \_ -> mock (Proxy :: Proxy rest) context
120123