File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,19 @@ may be present in the package's root directory:
132
132
133
133
</div >
134
134
135
+ ??? question "Why use the Hpack format?"
136
+
137
+ A `package.yaml` file can be more concise and less repetitive than the Cabal
138
+ file that is generated from it. That is because the Hpack format uses
139
+ defaults and top-level fields common to sections. The YAML syntax, which may
140
+ already be familiar for some users, can also avoid repetition.
141
+
142
+ In particular, the format's defaults can infer the names of exposed and
143
+ other modules.
144
+
145
+ The format allows a user to specify defaults in a file on GitHub or a local
146
+ file.
147
+
135
148
??? question "I use the Hpack format. Should I also check-in a Cabal file to my repository?"
136
149
137
150
Yes. This helps people who do not use Stack or the Hpack tool separately.
You can’t perform that action at this time.
0 commit comments