diff --git a/exec/Main.hs b/exec/Main.hs
--- a/exec/Main.hs
+++ b/exec/Main.hs
@@ -10,7 +10,7 @@
                                                                  responseLBS)
 import           Network.Wai.Handler.Warp                       (run)
 import           System.Metrics.Prometheus.Concurrent.RegistryT (runRegistryT)
-import           System.Metrics.Prometheus.Http.Scrape          (serveHttpTextMetricsT)
+import           System.Metrics.Prometheus.Http.Scrape          (serveMetricsT)
 import           System.Metrics.Prometheus.MetricId             (fromList)
 
 import           Network.Wai.Middleware.Prometheus              (applicationMetrics,
@@ -22,8 +22,8 @@
     ms <- applicationMetrics $ fromList [("app", "example_server")]
     let webserver = run 8080 . instrumentApplication ms $ \req respond ->
             respond (makeResponse req)
-    liftIO $ async webserver
-    serveHttpTextMetricsT 8081 []
+    _ <- liftIO $ async webserver
+    serveMetricsT 8081 []
   where
     success = responseLBS status200 [] "ok"
     failure = responseLBS status404 [] mempty
diff --git a/prometheus-wai-middleware.cabal b/prometheus-wai-middleware.cabal
--- a/prometheus-wai-middleware.cabal
+++ b/prometheus-wai-middleware.cabal
@@ -1,6 +1,6 @@
 cabal-version:       2.2
 name:                prometheus-wai-middleware
-version:             1.0.0.0
+version:             1.0.1.0
 synopsis:            Instrument a wai application with various metrics
 description:         See https://github.com/bitnomial/prometheus-wai-middleware/tree/master/readme.md
 bug-reports:         https://github.com/bitnomial/prometheus-wai-middleware/issues
@@ -23,11 +23,11 @@
   exposed-modules:
     Network.Wai.Middleware.Prometheus
   build-depends:
-      base        >= 4.12  && < 4.14
+      base        >= 4.12  && < 5
     , containers  >= 0.5   && < 0.7
     , clock      ^>= 0.8
     , http-types  >= 0.8   && < 0.13
-    , prometheus ^>= 2.1.3
+    , prometheus ^>= 2.2
     , text       ^>= 1.2
     , wai        ^>= 3.2
 
@@ -38,9 +38,9 @@
   main-is:          Main.hs
   build-depends:
       async                     ^>= 2.2
-    , base                       >= 4.12  && < 4.14
+    , base                       >= 4.12  && < 5
     , http-types                 >= 0.8   && < 0.13
-    , prometheus                ^>= 2.1.3
+    , prometheus                ^>= 2.2
     , prometheus-wai-middleware
     , wai                       ^>= 3.2
     , warp                       >= 3.2   && < 3.5
