haskell-servant / servant-auth

160 stars 73 forks source link

[#114] Export `HasSecurity` typeclass #126

Closed rockbmb closed 6 years ago

rockbmb commented 6 years ago

Closes #114.

From what I can understand, in order to define a HasSwagger instance for an API that has an authentication method, an AllHasSecurity instance is required for the authentication method, which can be built incrementally for the intended service from these two instances.

For this method to work, HasSecurity has to be exported (the previous two instances are exported automatically), which is what this PR does.

rockbmb commented 6 years ago

@domenkozar @alpmestan

alpmestan commented 6 years ago

LGTM. Domen, any objection?