File: typst.cabal

package info (click to toggle)
haskell-typst 0.5.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 16,564 kB
  • sloc: haskell: 8,314; xml: 32; makefile: 6
file content (129 lines) | stat: -rw-r--r-- 3,907 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
cabal-version:      2.4
name:               typst
version:            0.5.0.1
synopsis:           Parsing and evaluating typst syntax.
description:        A library for parsing and evaluating typst syntax.
                    Typst (<https://typst.app>) is a document layout and
                    formatting language. This library targets typst 0.10
                    and currently offers only partial support.
license:            BSD-3-Clause
license-file:       LICENSE
author:             John MacFarlane
maintainer:         jgm@berkeley.edu
copyright:          Copyright 2023 John MacFarlane
category:           Text
build-type:         Simple
extra-doc-files:    CHANGELOG.md
extra-source-files: test/typ/**/*.typ
                    test/out/**/*.out
                    test/assets/files/*.png
                    test/assets/files/*.jpg
                    test/assets/files/*.bib
                    test/assets/files/*.csv
                    test/assets/files/*.json
                    test/assets/files/*.svg
                    test/assets/files/*.toml
                    test/assets/files/*.xml
                    test/assets/files/*.txt
                    test/assets/files/*.yaml
                    test/assets/files/*.html
tested-with:        GHC == 8.10.7 || == 9.0.2 || == 9.2.7 || == 9.4.5 || == 9.6.2

source-repository head
  type: git
  location: https://github.com/jgm/typst-hs.git

common warnings
    ghc-options: -Wall

library
    import:           warnings
    exposed-modules:  Typst
                      Typst.Syntax
                      Typst.Parse
                      Typst.Types
                      Typst.Evaluate
                      Typst.Methods
                      Typst.Util
    other-modules:
                      Typst.Bind
                      Typst.Regex
                      Typst.Show
                      Typst.Module.Standard
                      Typst.Module.Math
                      Typst.Module.Calc
                      Typst.MathClass

    -- other-extensions:
    build-depends:    base >= 4.14 && <= 5,
                      typst-symbols >= 0.1.5 && < 0.1.6,
                      mtl,
                      vector,
                      parsec,
                      filepath,
                      containers,
                      directory >= 1.2.3,
                      ordered-containers,
                      text,
                      bytestring,
                      cassava,
                      aeson,
                      scientific,
                      xml-conduit,
                      yaml,
                      toml-parser ^>= 1.3.0.0,
                      regex-tdfa,
                      array,
                      time,
                      pretty
    hs-source-dirs:   src
    if os(darwin)
      cpp-options: -D__MACOS__
    if os(windows)
      cpp-options: -D__WINDOWS__
    default-language: Haskell2010

Flag executable
  description:       Compile executable to be used in testing and development.
  default:           False

executable typst-hs
    import:           warnings
    main-is:          Main.hs
    hs-source-dirs:   app
    default-language: Haskell2010
    if flag(executable)
      Buildable:         True
      Build-depends:
        base,
        typst,
        directory >= 1.2.3,
        parsec,
        mtl,
        vector,
        containers,
        text,
        bytestring,
        time,
        pretty-show,
        ordered-containers
    else
      Buildable:         False

test-suite typst-test
    import:           warnings
    default-language: Haskell2010
    type:             exitcode-stdio-1.0
    hs-source-dirs:   test
    main-is:          Main.hs
    build-depends:
        base,
        typst,
        directory >= 1.2.3,
        text,
        bytestring,
        filepath,
        time,
        pretty-show,
        tasty,
        tasty-golden