@@ -38,7 +38,7 @@ import Data.Typeable as Typeable
3838import Data.UUID
3939import qualified Data.UUID.V4 as UUID4
4040#if MIN_VERSION_bloodhound(0,17,0)
41−import qualified Database.Bloodhound as V5
41+import qualified Database.Bloodhound as V5
4242#else
4343import qualified Database.V1.Bloodhound as V1
4444import qualified Database.V5.Bloodhound as V5
@@ -547,20 +547,16 @@ instance ESVersion ESV5 where
547547 type IndexName ESV5 = V5.IndexName
548548 toIndexName _ = V5.IndexName
549549 fromIndexName _ (V5.IndexName x) = x
550−#if !MIN_VERSION_bloodhound(0,17,0)
551550 type MappingName ESV5 = V5.MappingName
552551 fromMappingName _ (V5.MappingName x) = x
553−#endif
554552 type DocId ESV5 = V5.DocId
555553 toDocId _ = V5.DocId
556554 type BH ESV5 = V5.BH
557555 runBH _ = V5.runBH
558556 type TemplateName ESV5 = V5.TemplateName
559557 toTemplateName _ = V5.TemplateName
560−#if !MIN_VERSION_bloodhound(0,17,0)
561558 type TemplatePattern ESV5 = V5.TemplatePattern
562559 toTemplatePattern _ = V5.TemplatePattern
563−#endif
564560 type IndexTemplate ESV5 = V5.IndexTemplate
565561 toIndexTemplate _ = V5.IndexTemplate
566562 type IndexDocumentSettings ESV5 = V5.IndexDocumentSettings