Skip to content

Commit

Permalink
Rename server lens to server_
Browse files Browse the repository at this point in the history
  • Loading branch information
maksbotan committed Jul 10, 2020
1 parent ff87915 commit f205201
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Data/Swagger/Internal/Utils.hs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ swaggerFieldRules = defaultFieldRules & lensField %~ swaggerFieldNamer
fixName' "enum" = "enum_" -- Control.Lens conflict
fixName' "head" = "head_" -- Prelude conflict
fixName' "not" = "not_" -- Prelude conflict
fixName' "server" = "server_" -- servant-swagger conflict
fixName' n = n

gunfoldEnum :: String -> [a] -> (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c a
Expand Down
2 changes: 1 addition & 1 deletion src/Data/Swagger/Lens.hs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ makeFields ''ExternalDocs
makeFields ''Encoding
makeFields ''Example
makeFields ''Discriminator
makeFields ''Link
makeLensesWith swaggerFieldRules ''Link

-- * Prisms
-- ** 'SecuritySchemeType' prisms
Expand Down

0 comments on commit f205201

Please sign in to comment.