|
1 |
| -name: dazzle |
2 |
| -version: 0.1.0.0 |
3 |
| -github: "functora/functora.github.io" |
4 |
| -license: BSD3 |
5 |
| -author: "21it <[email protected]>" |
6 |
| -maintainer: "21it <[email protected]>" |
7 |
| -copyright: "2023 Functora <[email protected]>" |
8 |
| -synopsis: Haskell to Gleam transpiler |
9 |
| -description: You can find documentation at |
10 |
| -homepage: https://github.com/functora/functora.github.io/tree/master/pub/dazzle |
11 |
| -category: Gleam, Erlang, Beam, Transpiler |
| 1 | +name: dazzle |
| 2 | +version: 0.1.0.0 |
| 3 | +github: "functora/functora.github.io" |
| 4 | +license: BSD3 |
| 5 | +author: "21it <[email protected]>" |
| 6 | +maintainer: "21it <[email protected]>" |
| 7 | +copyright: "2023 Functora <[email protected]>" |
| 8 | +synopsis: Haskell to Gleam transpiler |
| 9 | +description: You can find documentation at |
| 10 | +homepage: https://github.com/functora/functora.github.io/tree/master/pub/dazzle |
| 11 | +category: Gleam, Erlang, Beam, Transpiler |
12 | 12 |
|
13 | 13 | extra-source-files:
|
14 |
| -- ChangeLog.md |
15 |
| -- README.md |
| 14 | + - ChangeLog.md |
| 15 | + - README.md |
16 | 16 |
|
17 | 17 | flags:
|
18 | 18 | ghcid:
|
19 | 19 | manual: true
|
20 | 20 | default: false
|
21 | 21 |
|
22 | 22 | default-extensions:
|
23 |
| -- NoImplicitPrelude |
24 |
| -- BangPatterns |
25 |
| -- MultiParamTypeClasses |
26 |
| -- LambdaCase |
27 |
| -- OverloadedStrings |
28 |
| -- ScopedTypeVariables |
29 |
| -- DeriveGeneric |
30 |
| -- GADTs |
31 |
| -- GeneralizedNewtypeDeriving |
32 |
| -- TupleSections |
33 |
| -- DataKinds |
34 |
| -- DerivingStrategies |
35 |
| -- KindSignatures |
36 |
| -- FlexibleContexts |
37 |
| -- FlexibleInstances |
38 |
| -- StrictData |
39 |
| -- TypeFamilies |
40 |
| -- TypeOperators |
41 |
| -- StandaloneDeriving |
42 |
| -- DeriveLift |
43 |
| -- DerivingVia |
44 |
| -- ExistentialQuantification |
45 |
| -- InstanceSigs |
46 |
| -- TypeApplications |
47 |
| -- AllowAmbiguousTypes |
48 |
| -- ConstraintKinds |
49 |
| -- DeriveFunctor |
50 |
| -- RankNTypes |
51 |
| -- FunctionalDependencies |
52 |
| -- DeriveDataTypeable |
| 23 | + - NoImplicitPrelude |
| 24 | + - BangPatterns |
| 25 | + - MultiParamTypeClasses |
| 26 | + - LambdaCase |
| 27 | + - OverloadedStrings |
| 28 | + - ScopedTypeVariables |
| 29 | + - DeriveGeneric |
| 30 | + - GADTs |
| 31 | + - GeneralizedNewtypeDeriving |
| 32 | + - TupleSections |
| 33 | + - DataKinds |
| 34 | + - DerivingStrategies |
| 35 | + - KindSignatures |
| 36 | + - FlexibleContexts |
| 37 | + - FlexibleInstances |
| 38 | + - StrictData |
| 39 | + - TypeFamilies |
| 40 | + - TypeOperators |
| 41 | + - StandaloneDeriving |
| 42 | + - DeriveLift |
| 43 | + - DerivingVia |
| 44 | + - ExistentialQuantification |
| 45 | + - InstanceSigs |
| 46 | + - TypeApplications |
| 47 | + - AllowAmbiguousTypes |
| 48 | + - ConstraintKinds |
| 49 | + - DeriveFunctor |
| 50 | + - RankNTypes |
| 51 | + - FunctionalDependencies |
| 52 | + - DeriveDataTypeable |
53 | 53 |
|
54 | 54 | ghc-options:
|
55 |
| -# For details on warnings: https://downloads.haskell.org/~ghc/master/users-guide/using-warnings.html |
56 |
| -# Enable all warnings with -Weverything, then disable the ones we don’t care about |
57 |
| -- -Weverything |
58 |
| -- -Werror |
59 |
| -- -Wno-missing-exported-signatures # missing-exported-signatures turns off the more strict -Wmissing-signatures. See https://ghc.haskell.org/trac/ghc/ticket/14794#ticket |
60 |
| -- -Wno-missing-import-lists # Requires explicit imports of _every_ function (e.g. ‘$’); too strict |
61 |
| -- -Wno-missed-specialisations # When GHC can’t specialize a polymorphic function. No big deal and requires fixing underlying libraries to solve. |
62 |
| -- -Wno-all-missed-specialisations # See missed-specialisations |
63 |
| -- -Wno-unsafe # Don’t use Safe Haskell warnings |
64 |
| -- -Wno-safe # Don’t use Safe Haskell warnings |
65 |
| -- -Wno-missing-local-signatures # Warning for polymorphic local bindings; nothing wrong with those. |
66 |
| -- -Wno-missing-safe-haskell-mode |
67 |
| -- -Wno-prepositive-qualified-module |
68 |
| -- -Wno-missing-kind-signatures |
69 |
| -- -fenable-th-splice-warnings |
70 |
| -- -fprint-potential-instances |
| 55 | + # For details on warnings: https://downloads.haskell.org/~ghc/master/users-guide/using-warnings.html |
| 56 | + # Enable all warnings with -Weverything, then disable the ones we don’t care about |
| 57 | + - -Weverything |
| 58 | + - -Werror |
| 59 | + - -Wno-missing-exported-signatures # missing-exported-signatures turns off the more strict -Wmissing-signatures. See https://ghc.haskell.org/trac/ghc/ticket/14794#ticket |
| 60 | + - -Wno-missing-import-lists # Requires explicit imports of _every_ function (e.g. ‘$’); too strict |
| 61 | + - -Wno-missed-specialisations # When GHC can’t specialize a polymorphic function. No big deal and requires fixing underlying libraries to solve. |
| 62 | + - -Wno-all-missed-specialisations # See missed-specialisations |
| 63 | + - -Wno-unsafe # Don’t use Safe Haskell warnings |
| 64 | + - -Wno-safe # Don’t use Safe Haskell warnings |
| 65 | + - -Wno-missing-local-signatures # Warning for polymorphic local bindings; nothing wrong with those. |
| 66 | + - -Wno-missing-safe-haskell-mode |
| 67 | + - -Wno-prepositive-qualified-module |
| 68 | + - -Wno-missing-kind-signatures |
| 69 | + - -fenable-th-splice-warnings |
| 70 | + - -fprint-potential-instances |
71 | 71 |
|
72 | 72 | _deps: &deps
|
73 | 73 | dependencies:
|
74 |
| - - base |
75 |
| - - containers |
76 |
| - - universum |
77 |
| - - witch |
78 |
| - - unliftio |
79 |
| - - microlens |
80 |
| - - extra |
81 |
| - - text |
82 |
| - - transformers |
83 |
| - - generic-pretty-instances |
84 |
| - - ghc-lib-parser |
85 |
| - - process |
86 |
| - - casing |
87 |
| - - fourmolu |
88 |
| - - unicode-show |
89 |
| - - with-utf8 |
90 |
| - - syb |
| 74 | + - base |
| 75 | + - containers |
| 76 | + - universum |
| 77 | + - witch |
| 78 | + - unliftio |
| 79 | + - microlens |
| 80 | + - extra |
| 81 | + - text |
| 82 | + - transformers |
| 83 | + - ghc-lib-parser |
| 84 | + - process |
| 85 | + - casing |
| 86 | + - fourmolu |
| 87 | + - unicode-show |
| 88 | + - with-utf8 |
| 89 | + - syb |
91 | 90 |
|
92 | 91 | _ghcid: &ghcid
|
93 | 92 | when:
|
94 |
| - - condition: flag(ghcid) |
95 |
| - then: |
96 |
| - <<: *deps |
97 |
| - source-dirs: |
98 |
| - - src |
99 |
| - ghc-options: |
100 |
| - - -Wno-unused-packages |
101 |
| - else: |
102 |
| - dependencies: |
103 |
| - - dazzle |
| 93 | + - condition: flag(ghcid) |
| 94 | + then: |
| 95 | + <<: *deps |
| 96 | + source-dirs: |
| 97 | + - src |
| 98 | + ghc-options: |
| 99 | + - -Wno-unused-packages |
| 100 | + else: |
| 101 | + dependencies: |
| 102 | + - dazzle |
104 | 103 |
|
105 | 104 | _optimized: &optimized
|
106 | 105 | ghc-options:
|
107 |
| - - -O2 |
108 |
| - - -optc-O3 |
109 |
| - - -funfolding-use-threshold=16 |
110 |
| - - -threaded |
111 |
| - - -rtsopts |
112 |
| - - -with-rtsopts=-N |
113 |
| - - -with-rtsopts=-T |
114 |
| - - -optl-fuse-ld=gold |
| 106 | + - -O2 |
| 107 | + - -optc-O3 |
| 108 | + - -funfolding-use-threshold=16 |
| 109 | + - -threaded |
| 110 | + - -rtsopts |
| 111 | + - -with-rtsopts=-N |
| 112 | + - -with-rtsopts=-T |
| 113 | + - -optl-fuse-ld=gold |
115 | 114 | ld-options:
|
116 |
| - - -fuse-ld=gold |
| 115 | + - -fuse-ld=gold |
117 | 116 |
|
118 | 117 | library:
|
119 | 118 | <<: *deps
|
120 | 119 | source-dirs:
|
121 |
| - - src |
| 120 | + - src |
122 | 121 | ghc-options:
|
123 |
| - - -fwarn-tabs |
| 122 | + - -fwarn-tabs |
124 | 123 |
|
125 | 124 | executables:
|
126 | 125 | dazzle-exe:
|
127 | 126 | main: Main.hs
|
128 | 127 | dependencies:
|
129 |
| - - base |
| 128 | + - base |
130 | 129 | source-dirs:
|
131 |
| - - app |
| 130 | + - app |
132 | 131 | <<: *optimized
|
133 | 132 | <<: *ghcid
|
134 | 133 |
|
135 | 134 | tests:
|
136 | 135 | dazzle-test:
|
137 | 136 | main: Spec.hs
|
138 | 137 | source-dirs:
|
139 |
| - - test |
| 138 | + - test |
140 | 139 | dependencies:
|
141 |
| - - base |
142 |
| - - hspec |
143 |
| - - ghc-lib-parser |
| 140 | + - base |
| 141 | + - hspec |
| 142 | + - ghc-lib-parser |
144 | 143 | <<: *optimized
|
145 | 144 | <<: *ghcid
|
0 commit comments