-
Notifications
You must be signed in to change notification settings - Fork 2
/
slab.cabal
129 lines (122 loc) · 2.76 KB
/
slab.cabal
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.2
name: slab
version: 0.0.4.0
license: BSD-2-Clause
license-file: LICENSE
copyright: 2024 Võ Minh Thu, Hypered SRL
author: Võ Minh Thu
maintainer: thu@hypered.be
homepage: https://slab-lang.org
synopsis: A programmable markup language to generate HTML
description:
Slab is an alternative syntax for writing HTML, plus some programming
language features (often found in templating languages, like conditionals
and loops). You can visit the project homepage at <https://slab-lang.org>.
category: text
source-repository head
type: git
location: https://github.com/hypered/slab
common common-extensions
default-language: Haskell2010
default-extensions:
ImportQualifiedPost
LambdaCase
OverloadedStrings
RecordWildCards
StrictData
TypeApplications
TypeOperators
common common-options
default-language: Haskell2010
ghc-options:
-Wall
-Wmissing-export-lists
-fno-warn-unused-do-bind
+RTS -A256m -n4m -qg -RTS
-- Generating version bounds can be done with
-- nix-shell --run 'cabal freeze'
common common-dependencies
build-depends:
base >=4.7 && <5
, optparse-applicative
, protolude
library
import: common-extensions, common-options, common-dependencies
hs-source-dirs: src
build-depends:
aeson
, blaze-html
, blaze-markup
, blaze-svg
, bytestring
, containers
, directory
, filepath
, fsnotify
, Glob
, http-types
, megaparsec
, parser-combinators
, prettyprinter
, pretty-simple
, process
, servant
, servant-blaze
, servant-server
, servant-websockets
, stm
, text
, transformers
, vector
, wai
, wai-app-static
, warp
, websockets
exposed-modules:
Slab.Build
Slab.Command
Slab.Error
Slab.Execute
Slab.Evaluate
Slab.Generate.Haskell
Slab.Parse
Slab.PreProcess
Slab.Render
Slab.Report
Slab.Run
Slab.Serve
Slab.Syntax
Slab.Watch
other-modules:
Paths_slab
executable slab
import: common-extensions, common-options, common-dependencies
main-is: slab.hs
hs-source-dirs: bin
build-depends:
slab
ghc-options:
-threaded
test-suite slab-examples
import: common-extensions, common-options, common-dependencies
build-depends:
, hspec
, slab
, filepath
, Glob
, lens
, pretty-simple
, process
, QuickCheck
, tasty
, tasty-silver
, text
other-modules:
-- The GHCi module is not really used in the test-suite but is mentioned
-- here to please Fourmolu.
Slab.GHCi
Slab.Runner
type: exitcode-stdio-1.0
main-is: run-examples.hs
hs-source-dirs:
tests