diff options
author | Alexander Biehl <alexbiehl@gmail.com> | 2017-10-30 08:45:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-30 08:45:51 +0100 |
commit | aca68f620beb07f9bdebdf52948c6ea670be4980 (patch) | |
tree | 94843dd51948abd30da07ba5a2c062f88bcd19a4 /haddock-api/src/Haddock/Backends/Meta.hs | |
parent | 0e82a0b3aa78af13f5ef52a7d9bac9d0c4e94e02 (diff) |
Add QuickJump version to meta.json (#696)
Diffstat (limited to 'haddock-api/src/Haddock/Backends/Meta.hs')
-rw-r--r-- | haddock-api/src/Haddock/Backends/Meta.hs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/haddock-api/src/Haddock/Backends/Meta.hs b/haddock-api/src/Haddock/Backends/Meta.hs deleted file mode 100644 index c62c1ae8..00000000 --- a/haddock-api/src/Haddock/Backends/Meta.hs +++ /dev/null @@ -1,22 +0,0 @@ -module Haddock.Backends.Meta where - -import Haddock.Utils.Json -import Haddock.Version - -import Data.ByteString.Builder (hPutBuilder) -import System.FilePath ((</>)) -import System.IO (withFile, IOMode (WriteMode)) - --- | Writes a json encoded file containing additional --- information about the generated documentation. This --- is useful for external tools (e.g. hackage). -writeHaddockMeta :: FilePath -> IO () -writeHaddockMeta odir = do - let - meta_json :: Value - meta_json = object [ - "haddock_version" .= String projectVersion - ] - - withFile (odir </> "meta.json") WriteMode $ \h -> - hPutBuilder h (encodeToBuilder meta_json)
\ No newline at end of file |