packages feed

pandoc-filter-indent-0.3.3.0: pandoc-filter-indent.cabal

cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.38.0.
--
-- see: https://github.com/sol/hpack

name:           pandoc-filter-indent
version:        0.3.3.0
synopsis:       Pandoc filter formatting Haskell code fragments using GHC lexer.
description:    Formats marked code fragments, and allows `pandoc` to safely process rest of your literate program.
                Mark code blocks with .haskell attribute:
                .
                > ```{.haskell}
                > -- your code here
                > ```
                .
                Usage:
                .
                > stack install pandoc-filter-indent
                > pandoc --filter pandoc-filter-indent -f input.md -o output.pdf
                > pandoc --filter pandoc-filter-indent -f input.md -o output.html
                .
                Using `lhs2TeX` is somewhat inconvenient on large Markdown documents
                processed with `pandoc`, since it assumes that it can freely redefine everything.
                It is also pretty heavy on learning.
                .
                So instead we have a simple Pandoc filter that is only applied to `CodeFragment`s
                and creates tabular code structures from indentation.
                It uses GHC lexer to assure that latest features are always parsed correctly.
                .
                Please see the README on GitHub at <https://github.com/migamake/pandoc-filter-typeset-code#readme>
category:       Text
homepage:       https://github.com/migamake/pandoc-filter-typeset-code#readme
bug-reports:    https://github.com/migamake/pandoc-filter-typeset-code/issues
author:         Michał J. Gajda
maintainer:     mjgajda@migamake.com
copyright:      AllRightsReserved
license:        BSD3
license-file:   LICENSE
build-type:     Simple
extra-source-files:
    README.md
    DESCRIPTION.md
    ChangeLog.md

source-repository head
  type: git
  location: https://github.com/migamake/pandoc-filter-typeset-code

library
  exposed-modules:
      Alignment
      Filter
      FindColumns
      Render.ColSpan
      Render.Common
      Render.Debug
      Render.HTML
      Render.Latex
      Token
      Token.Haskell
      Token.Skylighting
      Tuples
      Util
  other-modules:
      Paths_pandoc_filter_indent
  hs-source-dirs:
      src
  build-depends:
      HaTeX >=3.23.0 && <4
    , base >=4.7 && <5
    , blaze-html >=0.9.2 && <1
    , blaze-markup >=0.8.3 && <1
    , ghc-syntax-highlighter >=0.0.12 && <1
    , optics-core >=0.4.1 && <1
    , optics-th >=0.4.1 && <1
    , pandoc-types >=1.23.1 && <2
    , skylighting >=0.14.7 && <1
    , text >=2.0.2 && <3
  default-language: Haskell2010

executable pandoc-filter-indent
  main-is: Main.hs
  other-modules:
      Paths_pandoc_filter_indent
  hs-source-dirs:
      app
  ghc-options: -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      HaTeX >=3.23.0 && <4
    , base >=4.7 && <5
    , blaze-html >=0.9.2 && <1
    , blaze-markup >=0.8.3 && <1
    , containers >=0.6.7 && <1
    , ghc-syntax-highlighter >=0.0.12 && <1
    , optics-core >=0.4.1 && <1
    , optics-th >=0.4.1 && <1
    , optparse-applicative >=0.19.0 && <1
    , pandoc-filter-indent
    , pandoc-types >=1.23.1 && <2
    , skylighting >=0.14.7 && <1
    , text >=2.0.2 && <3
  default-language: Haskell2010

test-suite pandoc-filter-indent-test
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      LambdaSpec
      UnicodeOperatorSpec
      Paths_pandoc_filter_indent
  hs-source-dirs:
      test
  ghc-options: -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      HaTeX >=3.23.0 && <4
    , QuickCheck
    , base >=4.7 && <5
    , blaze-html >=0.9.2 && <1
    , blaze-markup >=0.8.3 && <1
    , ghc-lib-parser
    , ghc-syntax-highlighter >=0.0.12 && <1
    , optics-core >=0.4.1 && <1
    , optics-th >=0.4.1 && <1
    , pandoc-filter-indent
    , pandoc-types >=1.23.1 && <2
    , quickcheck-text
    , skylighting >=0.14.7 && <1
    , text >=2.0.2 && <3
  default-language: Haskell2010