scmdoc

Automatically generate documentation from comments in R7RS Scheme code

git clone https://git.8pit.net/scmdoc.git

 1cabal-version:      3.0
 2name:               scmdoc
 3version:            0.1.0
 4synopsis:           R7RS Scheme documentation tool
 5description:        Inline documentation tool for R7RS Scheme based on source code comments
 6
 7license:            AGPL-3.0-only
 8license-file:       LICENSE
 9author:             Sören Tempel
10maintainer:         soeren+git@soeren-tempel.net
11
12category:           Development
13build-type:         Simple
14
15extra-doc-files:    README.md
16
17common warnings
18    ghc-options: -Wall
19
20library
21    import:           warnings
22    exposed-modules:  SchemeDoc
23                    , SchemeDoc.Types
24                    , SchemeDoc.Error
25                    , SchemeDoc.Parser.R7RS
26                    , SchemeDoc.Format.Variable
27                    , SchemeDoc.Format.Syntax
28                    , SchemeDoc.Format.Formatter
29                    , SchemeDoc.Format.Procedure
30                    , SchemeDoc.Format.Record
31                    , SchemeDoc.Format.Library
32                    , SchemeDoc.Format.Types
33                    , SchemeDoc.Format.Util
34    other-modules: SchemeDoc.Parser.Number
35                 , SchemeDoc.Parser.Util
36    hs-source-dirs:   src
37    default-language: Haskell2010
38
39    build-depends:
40        base         >=4.15.0.0 && <4.20.0.0,
41        parsec       ^>=3.1.15.1,
42        blaze-html   ^>=0.9.1.2,
43        cmark-gfm    ^>=0.2.5,
44        text
45
46executable scmdoc
47    import:           warnings
48    main-is:          Main.hs
49    hs-source-dirs:   app
50    default-language: Haskell2010
51
52    build-depends:
53        base                 >=4.15.0.0 && <4.20.0.0,
54        parsec               ^>=3.1.15.1,
55        directory            ^>=1.3.8.0,
56        filepath             ^>=1.4.100.0,
57        blaze-html           ^>=0.9.1.2,
58        optparse-applicative  >=0.16.1 && <0.17,
59        text,
60        scmdoc
61
62test-suite scmdoc-test
63    default-language: Haskell2010
64    type:             exitcode-stdio-1.0
65    hs-source-dirs:   test
66    main-is:          Main.hs
67    other-modules:    Parser
68                    , Library
69                    , Record
70                    , Formatter
71                    , Util
72
73    build-depends:
74        base         >=4.15.0.0 && <=4.18.0.0,
75        tasty        ^>=1.4.2.3,
76        tasty-hunit  ^>=0.10.0.3,
77        parsec       ^>=3.1.15.1,
78        text,
79        scmdoc