diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,8 @@
+## 0.3.2.1
+
+-   Make compatible with pandoc-types 1.17.5
+-   bump stack resolver
+
 ## 0.3.2.0
 
 -   Pandoc 2.2; GHC 8.4
diff --git a/lib/Text/Pandoc/CrossRef/Util/PandocOrphans.hs b/lib/Text/Pandoc/CrossRef/Util/PandocOrphans.hs
deleted file mode 100644
--- a/lib/Text/Pandoc/CrossRef/Util/PandocOrphans.hs
+++ /dev/null
@@ -1,28 +0,0 @@
-{-
-pandoc-crossref is a pandoc filter for numbering figures,
-equations, tables and cross-references to them.
-Copyright (C) 2015  Nikolay Yakimov <root@livid.pp.ru>
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License along
-with this program; if not, write to the Free Software Foundation, Inc.,
-51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
--}
-
-{-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-}
-{-# OPTIONS_GHC -fno-warn-orphans #-}
-module Text.Pandoc.CrossRef.Util.PandocOrphans where
-
-import Text.Pandoc.Builder
-
-instance {-# OVERLAPPING #-} ToMetaValue String where
-  toMetaValue = MetaString
diff --git a/lib/Text/Pandoc/CrossRef/Util/Settings.hs b/lib/Text/Pandoc/CrossRef/Util/Settings.hs
--- a/lib/Text/Pandoc/CrossRef/Util/Settings.hs
+++ b/lib/Text/Pandoc/CrossRef/Util/Settings.hs
@@ -27,7 +27,6 @@
 
 import Text.Pandoc.CrossRef.Util.Settings.Gen
 import Text.Pandoc.CrossRef.Util.Meta
-import Text.Pandoc.CrossRef.Util.PandocOrphans()
 import System.Directory
 import System.FilePath
 import System.IO
@@ -59,17 +58,17 @@
 defaultMeta =
      cref False
   <> chapters False
-  <> chaptersDepth "1"
+  <> chaptersDepth (MetaString "1")
   <> listings False
   <> codeBlockCaptions False
   <> autoSectionLabels False
   <> numberSections False
-  <> sectionsDepth "0"
-  <> figLabels "arabic"
-  <> eqnLabels "arabic"
-  <> tblLabels "arabic"
-  <> lstLabels "arabic"
-  <> secLabels "arabic"
+  <> sectionsDepth (MetaString "0")
+  <> figLabels (MetaString "arabic")
+  <> eqnLabels (MetaString "arabic")
+  <> tblLabels (MetaString "arabic")
+  <> lstLabels (MetaString "arabic")
+  <> secLabels (MetaString "arabic")
   <> figureTitle (str "Figure")
   <> tableTitle (str "Table")
   <> listingTitle (str "Listing")
@@ -99,11 +98,10 @@
   <> figureTemplate (var "figureTitle" <> space <> var "i" <> var "titleDelim" <> space <> var "t")
   <> tableTemplate (var "tableTitle" <> space <> var "i" <> var "titleDelim" <> space <> var "t")
   <> listingTemplate (var "listingTitle" <> space <> var "i" <> var "titleDelim" <> space <> var "t")
-  <> crossrefYaml "pandoc-crossref.yaml"
-  <> chaptersDepth "1"
+  <> crossrefYaml (MetaString "pandoc-crossref.yaml")
   <> subfigureChildTemplate (var "i")
   <> subfigureTemplate (var "figureTitle" <> space <> var "i" <> var "titleDelim" <> space <> var "t" <> str "." <> space <> var "ccs")
-  <> subfigLabels "alpha a"
+  <> subfigLabels (MetaString "alpha a")
   <> ccsDelim (str "," <> space)
   <> ccsLabelSep (space <> str "—" <> space)
   <> ccsTemplate (var "i" <> var "ccsLabelSep" <> var "t")
diff --git a/pandoc-crossref.cabal b/pandoc-crossref.cabal
--- a/pandoc-crossref.cabal
+++ b/pandoc-crossref.cabal
@@ -2,10 +2,10 @@
 --
 -- see: https://github.com/sol/hpack
 --
--- hash: 289183a32db42f3d7d750a268670291b8dfaa5f160574e53ff9ad07aacf00401
+-- hash: 84b607174500028529fbd471156fdf6ba5b440c5a9f3862137b96e7f05a147f2
 
 name:           pandoc-crossref
-version:        0.3.2.0
+version:        0.3.2.1
 synopsis:       Pandoc filter for cross-references
 description:    pandoc-crossref is a pandoc filter for numbering figures, equations, tables and cross-references to them.
 category:       Text
@@ -99,7 +99,6 @@
       Text.Pandoc.CrossRef.Util.Meta
       Text.Pandoc.CrossRef.Util.ModifyMeta
       Text.Pandoc.CrossRef.Util.Options
-      Text.Pandoc.CrossRef.Util.PandocOrphans
       Text.Pandoc.CrossRef.Util.Settings
       Text.Pandoc.CrossRef.Util.Settings.Gen
       Text.Pandoc.CrossRef.Util.Settings.Template
@@ -132,7 +131,7 @@
     , roman-numerals ==0.5.*
     , syb >=0.4 && <0.8
     , template-haskell >=2.7.0.0 && <3.0.0.0
-    , temporary >=1.2 && <1.3
+    , temporary >=1.2 && <1.4
     , text >=1.2.2 && <1.3
     , utility-ht >=0.0.11 && <0.1.0
   other-modules:
@@ -205,7 +204,6 @@
       Text.Pandoc.CrossRef.Util.Meta
       Text.Pandoc.CrossRef.Util.ModifyMeta
       Text.Pandoc.CrossRef.Util.Options
-      Text.Pandoc.CrossRef.Util.PandocOrphans
       Text.Pandoc.CrossRef.Util.Settings
       Text.Pandoc.CrossRef.Util.Settings.Gen
       Text.Pandoc.CrossRef.Util.Settings.Template
