diff --git a/dist/build/hkt/hkt-tmp/HOpenPGP/Tools/Parser.hs b/dist/build/hkt/hkt-tmp/HOpenPGP/Tools/Parser.hs
--- a/dist/build/hkt/hkt-tmp/HOpenPGP/Tools/Parser.hs
+++ b/dist/build/hkt/hkt-tmp/HOpenPGP/Tools/Parser.hs
@@ -20,8 +20,9 @@
 import qualified Data.Array as Happy_Data_Array
 import qualified GHC.Exts as Happy_GHC_Exts
 import Control.Applicative(Applicative(..))
+import Control.Monad (ap)
 
--- parser produced by Happy Version 1.19.4
+-- parser produced by Happy Version 1.19.5
 
 newtype HappyAbsSyn t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 = HappyAbsSyn HappyAny
 #if __GLASGOW_HASKELL__ >= 607
diff --git a/dist/build/hot/hot-tmp/HOpenPGP/Tools/Parser.hs b/dist/build/hot/hot-tmp/HOpenPGP/Tools/Parser.hs
--- a/dist/build/hot/hot-tmp/HOpenPGP/Tools/Parser.hs
+++ b/dist/build/hot/hot-tmp/HOpenPGP/Tools/Parser.hs
@@ -20,8 +20,9 @@
 import qualified Data.Array as Happy_Data_Array
 import qualified GHC.Exts as Happy_GHC_Exts
 import Control.Applicative(Applicative(..))
+import Control.Monad (ap)
 
--- parser produced by Happy Version 1.19.4
+-- parser produced by Happy Version 1.19.5
 
 newtype HappyAbsSyn t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 = HappyAbsSyn HappyAny
 #if __GLASGOW_HASKELL__ >= 607
diff --git a/hkt.hs b/hkt.hs
--- a/hkt.hs
+++ b/hkt.hs
@@ -255,7 +255,10 @@
 doExportPubkeys o = do
     let ttarget1 = T.pack . target1
     keys <- grabMatchingKeys (keyring o) (targetIsFilter o) (ttarget1 o)
-    mapM_ (BL.putStr . putTK') keys
+    case pathsOutputFormat o of
+        Unstructured -> mapM_ (BL.putStr . putTK') keys
+        JSON -> BL.putStr . A.encode $ keys
+        YAML -> B.putStr . Y.encode $ keys
     where
         putTK' key = runPut $ do
             put (PublicKey (key^.tkKey._1))
diff --git a/hopenpgp-tools.cabal b/hopenpgp-tools.cabal
--- a/hopenpgp-tools.cabal
+++ b/hopenpgp-tools.cabal
@@ -1,5 +1,5 @@
 name:                hopenpgp-tools
-version:             0.15
+version:             0.15.1
 synopsis:            hOpenPGP-based command-line tools
 description:         command-line tools for performing some OpenPGP-related operations
 homepage:            http://floss.scru.org/hopenpgp-tools
@@ -96,7 +96,7 @@
                ,       errors
                ,       fgl
                ,       graphviz
-               ,       hOpenPGP               >= 2.0
+               ,       hOpenPGP               >= 2.1
                ,       ixset
                ,       lens
                ,       monad-loops
@@ -119,4 +119,4 @@
 source-repository this
   type:     git
   location: git://git.debian.org/users/clint/hopenpgp-tools.git
-  tag:      hopenpgp-tools/0.15
+  tag:      hopenpgp-tools/0.15.1
