Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
packages: .
pandoc-codecs
pandoc-lua-engine
pandoc-server
pandoc-cli
Expand Down
5 changes: 5 additions & 0 deletions pandoc-codecs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Revision history for pandoc-codecs

## 0.1.0.0 -- YYYY-mm-dd

* First version. Released on an unsuspecting world.
339 changes: 339 additions & 0 deletions pandoc-codecs/LICENSE

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions pandoc-codecs/app/Main.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module Main where

import Text.Pandoc.Codecs (jsonSchemaForOpt)
import qualified Data.ByteString.Lazy.Char8 as LBC8

main :: IO ()
main = do
LBC8.putStrLn jsonSchemaForOpt
54 changes: 54 additions & 0 deletions pandoc-codecs/pandoc-codecs.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
cabal-version: 3.0
name: pandoc-codecs
version: 0.1.0.0
synopsis: Schema and encoding/decoding for selected pandoc types.
-- description:
license: GPL-2.0-or-later
license-file: LICENSE
author: Albert Krewinkel
maintainer: [email protected]
copyright: © 2025 Albert Krewinkel
category: Text
build-type: Simple
extra-doc-files: CHANGELOG.md

common warnings
ghc-options: -Wall

common common-dependencies
build-depends: base >= 4.12 && < 5
, bytestring >= 0.9 && < 0.13

library
import: warnings
, common-dependencies
exposed-modules: Text.Pandoc.Codecs
build-depends: , aeson >= 2.0 && < 2.3
, autodocodec >= 0.5 && < 0.6
, autodocodec-schema >= 0.2 && < 0.3
, doctemplates >= 0.11 && < 0.12
-- The library defines orphan instances; PVP
-- requires to fix the minor version.
, pandoc-types
, pandoc >= 3.7.0 && < 3.8
, text
hs-source-dirs: src
default-language: Haskell2010

executable pandoc-codecs
import: common-dependencies
, warnings
main-is: Main.hs
build-depends: pandoc-codecs

hs-source-dirs: app
default-language: Haskell2010

test-suite pandoc-codecs-test
import: common-dependencies
, warnings
default-language: Haskell2010
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Main.hs
build-depends: pandoc-codecs
4 changes: 4 additions & 0 deletions pandoc-codecs/src/MyLib.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module MyLib (someFunc) where

someFunc :: IO ()
someFunc = putStrLn "someFunc"
Loading
Loading