File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
servant-foreign/src/Servant/Foreign Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import GHC.TypeLits
21
21
import qualified Network.HTTP.Types as HTTP
22
22
import Prelude hiding (concat )
23
23
import Servant.API
24
+ import Servant.API.TypeLevel
24
25
25
26
26
27
newtype FunctionName = FunctionName { unFunctionName :: [Text ] }
@@ -135,15 +136,6 @@ makeLenses ''Req
135
136
defReq :: Req ftype
136
137
defReq = Req defUrl " GET" [] Nothing Nothing (FunctionName [] )
137
138
138
- -- | To be used exclusively as a "negative" return type/constraint
139
- -- by @'Elem`@ type family.
140
- class NotFound
141
-
142
- type family Elem (a :: * ) (ls :: [* ]) :: Constraint where
143
- Elem a '[] = NotFound
144
- Elem a (a ': list ) = ()
145
- Elem a (b ': list ) = Elem a list
146
-
147
139
-- | 'HasForeignType' maps Haskell types with types in the target
148
140
-- language of your backend. For example, let's say you're
149
141
-- implementing a backend to some language __X__, and you want
Original file line number Diff line number Diff line change 7
7
module Servant.API.TypeLevel where
8
8
9
9
import GHC.Exts (Constraint )
10
- import Servant.API.Capture ( Capture )
10
+ import Servant.API.Capture ( Capture , CaptureAll )
11
11
import Servant.API.ReqBody ( ReqBody )
12
12
import Servant.API.QueryParam ( QueryParam , QueryParams , QueryFlag )
13
13
import Servant.API.Header ( Header )
You can’t perform that action at this time.
0 commit comments