Skip to content

Commit

Permalink
refactor: allow overlaps of HasExample like HasDescription
Browse files Browse the repository at this point in the history
Co-authored-by: fisx <[email protected]>
  • Loading branch information
stephen-smith and fisx authored Sep 1, 2022
1 parent 9c116be commit 0944120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/schema-profunctor/src/Data/Schema.hs
Original file line number Diff line number Diff line change
Expand Up @@ -894,5 +894,5 @@ instance S.HasDescription NamedSwaggerDoc (Maybe Text) where
instance {-# OVERLAPPABLE #-} S.HasDescription s a => S.HasDescription (WithDeclare s) a where
description = declared . S.description

instance S.HasExample s a => S.HasExample (WithDeclare s) a where
instance {-# OVERLAPPABLE #-} S.HasExample s a => S.HasExample (WithDeclare s) a where
example = declared . S.example

0 comments on commit 0944120

Please sign in to comment.