Cabalify all the things
authorMoritz Angermann <moritz.angermann@gmail.com>
Wed, 15 Nov 2017 16:41:34 +0000 (11:41 -0500)
committerBen Gamari <ben@smart-cactus.org>
Wed, 15 Nov 2017 19:18:30 +0000 (14:18 -0500)
Adding cabal files to `unlit`, `touchy` and `hp2ps`, allows us to treat
them uniformally across the build system. In particular Hadrian will use
these.

Reviewers: bgamari

Reviewed By: bgamari

Subscribers: rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D4192

utils/hp2ps/hp2ps.cabal [new file with mode: 0644]
utils/touchy/touchy.cabal [new file with mode: 0644]
utils/unlit/unlit.cabal [new file with mode: 0644]

diff --git a/utils/hp2ps/hp2ps.cabal b/utils/hp2ps/hp2ps.cabal
new file mode 100644 (file)
index 0000000..ba5db04
--- /dev/null
@@ -0,0 +1,22 @@
+cabal-version: >=2.1
+Name: hp2ps
+Version: 0.1
+Copyright: XXX
+License: BSD3
+Author: XXX
+Maintainer: XXX
+Synopsis: Heap Profile to PostScript converter
+Description: XXX
+Category: Development
+build-type: Simple
+
+Executable unlit
+    Default-Language: Haskell2010
+    Main-Is: Main.c
+    extra-libraries: m
+    C-Sources:
+       AreaBelow.c Curves.c Error.c Main.c
+       Reorder.c TopTwenty.c AuxFile.c Deviation.c
+       HpFile.c Marks.c Scale.c TraceElement.c
+       Axes.c Dimensions.c Key.c PsFile.c Shade.c
+       Utilities.c
diff --git a/utils/touchy/touchy.cabal b/utils/touchy/touchy.cabal
new file mode 100644 (file)
index 0000000..ab025e4
--- /dev/null
@@ -0,0 +1,16 @@
+cabal-version: >=2.1
+Name: touchy
+Version: 0.1
+Copyright: XXX
+License: BSD3
+Author: XXX
+Maintainer: XXX
+Synopsis: @touch@ for windows
+Description: XXX
+Category: Development
+build-type: Simple
+
+Executable unlit
+    Default-Language: Haskell2010
+    Main-Is: touchy.c
+    C-Sources: touchy.c
diff --git a/utils/unlit/unlit.cabal b/utils/unlit/unlit.cabal
new file mode 100644 (file)
index 0000000..e15a075
--- /dev/null
@@ -0,0 +1,16 @@
+cabal-version: >=2.1
+Name: unlit
+Version: 0.1
+Copyright: XXX
+License: BSD3
+Author: XXX
+Maintainer: XXX
+Synopsis: Literate program filter
+Description: XXX
+Category: Development
+build-type: Simple
+
+Executable unlit
+    Default-Language: Haskell2010
+    Main-Is: unlit.c
+    C-Sources: unlit.c