[Git][haskell-team/DHG_packages][master] Add fourmolu
Clint Adams (@clint)
gitlab at salsa.debian.org
Sun Jul 26 19:41:57 BST 2026
Clint Adams pushed to branch master at Debian Haskell Group / DHG_packages
Commits:
fdc88b4f by Clint Adams at 2026-07-26T14:41:46-04:00
Add fourmolu
- - - - -
11 changed files:
- + p/haskell-fourmolu/debian/changelog
- + p/haskell-fourmolu/debian/control
- + p/haskell-fourmolu/debian/copyright
- + p/haskell-fourmolu/debian/fourmolu.install
- + p/haskell-fourmolu/debian/libghc-fourmolu-doc.examples
- + p/haskell-fourmolu/debian/patches/older-deps
- + p/haskell-fourmolu/debian/patches/path-to-executable
- + p/haskell-fourmolu/debian/patches/series
- + p/haskell-fourmolu/debian/rules
- + p/haskell-fourmolu/debian/source/format
- + p/haskell-fourmolu/debian/watch
Changes:
=====================================
p/haskell-fourmolu/debian/changelog
=====================================
@@ -0,0 +1,5 @@
+haskell-fourmolu (0.18.0.0-1) unstable; urgency=medium
+
+ * Initial release.
+
+ -- Clint Adams <clint at debian.org> Sun, 26 Jul 2026 14:19:04 -0400
=====================================
p/haskell-fourmolu/debian/control
=====================================
@@ -0,0 +1,135 @@
+Source: haskell-fourmolu
+Maintainer: Debian Haskell Group <pkg-haskell-maintainers at lists.alioth.debian.org>
+Uploaders: Clint Adams <clint at debian.org>
+Priority: optional
+Section: haskell
+Build-Depends: debhelper-compat (= 13),
+ haskell-devscripts-minimal | haskell-devscripts (>= 0.13),
+ dh-sequence-haskell,
+ ghc,
+ ghc-prof,
+ libghc-diff-dev (>= 0.4),
+ libghc-diff-dev (<< 2),
+ libghc-diff-prof,
+ libghc-memotrie-dev (>= 0.6),
+ libghc-memotrie-dev (<< 0.7),
+ libghc-memotrie-prof,
+ libghc-ansi-terminal-dev (>= 0.10),
+ libghc-ansi-terminal-dev (<< 1.2),
+ libghc-ansi-terminal-prof,
+ libghc-choice-dev (>= 0.2.4.1),
+ libghc-choice-dev (<< 0.3),
+ libghc-choice-prof,
+ libghc-file-embed-dev (>= 0.0.15),
+ libghc-file-embed-dev (<< 0.1),
+ libghc-file-embed-prof,
+ libghc-ghc-lib-parser-dev (>= 9.12),
+ libghc-ghc-lib-parser-dev (<< 9.13),
+ libghc-ghc-lib-parser-prof,
+ libghc-megaparsec-dev (>= 9),
+ libghc-megaparsec-prof,
+ libghc-syb-dev (>= 0.7),
+ libghc-syb-dev (<< 0.8),
+ libghc-syb-prof,
+ libghc-optparse-applicative-dev (>= 0.14),
+ libghc-optparse-applicative-dev (<< 0.19),
+ libghc-optparse-applicative-prof,
+ libghc-terminal-size-dev (>= 0.1),
+ libghc-terminal-size-dev (<< 0.4),
+ libghc-th-env-dev (>= 0.1.1),
+ libghc-th-env-dev (<< 0.2),
+ libghc-th-env-prof,
+ libghc-unliftio-dev (>= 0.2.10),
+ libghc-unliftio-dev (<< 0.3),
+ libghc-unliftio-prof,
+ libghc-yaml-dev (>= 0.11.6.0),
+ libghc-yaml-dev (<< 1),
+ libghc-quickcheck2-dev (>= 2.14) <!nocheck>,
+ libghc-quickcheck2-prof <!nocheck>,
+ libghc-hspec-dev (>= 2) <!nocheck>,
+ libghc-hspec-dev (<< 3) <!nocheck>,
+ libghc-hspec-prof <!nocheck>,
+ libghc-hspec-megaparsec-dev (>= 2.2) <!nocheck>,
+ libghc-hspec-megaparsec-prof <!nocheck>,
+ libghc-megaparsec-dev (>= 9) <!nocheck>,
+ libghc-megaparsec-prof <!nocheck>,
+ libghc-path-dev (>= 0.6) <!nocheck>,
+ libghc-path-dev (<< 0.10) <!nocheck>,
+ libghc-path-prof <!nocheck>,
+ libghc-path-io-dev (>= 1.4.2) <!nocheck>,
+ libghc-path-io-dev (<< 2) <!nocheck>,
+ libghc-path-io-prof <!nocheck>,
+ libghc-temporary-dev (>= 1.3) <!nocheck>,
+ libghc-temporary-dev (<< 1.4) <!nocheck>,
+ libghc-temporary-prof <!nocheck>,
+Build-Depends-Indep: ghc-doc,
+ libghc-diff-doc,
+ libghc-memotrie-doc,
+ libghc-ansi-terminal-doc,
+ libghc-choice-doc,
+ libghc-file-embed-doc,
+ libghc-ghc-lib-parser-doc,
+ libghc-megaparsec-doc,
+ libghc-syb-doc,
+Standards-Version: 4.7.4
+Homepage: https://github.com/fourmolu/fourmolu
+Vcs-Browser: https://salsa.debian.org/haskell-team/DHG_packages/tree/master/p/haskell-fourmolu
+Vcs-Git: https://salsa.debian.org/haskell-team/DHG_packages.git [p/haskell-fourmolu]
+Description: formatter for Haskell source code
+ A formatter for Haskell source code, based on ormolu
+ but configurable.
+
+Package: libghc-fourmolu-dev
+Architecture: any
+Depends: ${haskell:Depends},
+ ${misc:Depends},
+ ${shlibs:Depends},
+Recommends: ${haskell:Recommends},
+Suggests: ${haskell:Suggests},
+Conflicts: ${haskell:Conflicts},
+Provides: ${haskell:Provides},
+Description: ${haskell:ShortDescription}${haskell:ShortBlurb}
+ ${haskell:LongDescription}
+ .
+ ${haskell:Blurb}
+
+Package: libghc-fourmolu-prof
+Architecture: any
+Depends: ${haskell:Depends},
+ ${misc:Depends},
+Recommends: ${haskell:Recommends},
+Suggests: ${haskell:Suggests},
+Conflicts: ${haskell:Conflicts},
+Provides: ${haskell:Provides},
+Description: ${haskell:ShortDescription}${haskell:ShortBlurb}
+ ${haskell:LongDescription}
+ .
+ ${haskell:Blurb}
+
+Package: libghc-fourmolu-doc
+Architecture: all
+Section: doc
+Depends: ${haskell:Depends},
+ ${misc:Depends},
+Recommends: ${haskell:Recommends},
+Suggests: ${haskell:Suggests},
+Conflicts: ${haskell:Conflicts},
+Description: ${haskell:ShortDescription}${haskell:ShortBlurb}
+ ${haskell:LongDescription}
+ .
+ ${haskell:Blurb}
+
+Package: fourmolu
+Architecture: any
+Section: devel
+Depends: ${haskell:Depends},
+ ${misc:Depends},
+ ${shlibs:Depends},
+Recommends: ${haskell:Recommends},
+Suggests: ${haskell:Suggests},
+Conflicts: ${haskell:Conflicts},
+Provides: ${haskell:Provides},
+Description: ${haskell:ShortDescription}${haskell:ShortBlurb}
+ ${haskell:LongDescription}
+ .
+ ${haskell:Blurb}
=====================================
p/haskell-fourmolu/debian/copyright
=====================================
@@ -0,0 +1,49 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: fourmolu
+Upstream-Contact: Mark Karpov <mark.karpov at tweag.io>
+Source: https://hackage.haskell.org/package/fourmolu
+
+Files: *
+Copyright: 2018-2020 Tweag I/O
+ 2020-present Matt Parsons
+License: BSD-3-clause
+
+Files: data/examples/other/comment-style-transform.hs
+ data/examples/other/comment-style-transform-out.hs
+Copyright: 2011-2016 Bryan O'Sullivan
+License: BSD-3-clause
+
+Files: data/examples/module-header/leading-empty-line-out.hs
+ data/examples/module-header/leading-empty-line.hs
+Copyright: 2015–2019 Megaparsec contributors
+License: BSD-3-clause
+
+Files: debian/*
+Copyright: held by the contributors mentioned in debian/changelog
+License: BSD-3-clause
+
+License: BSD-3-clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ .
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ .
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ .
+ * Neither the name Tweag I/O nor the names of contributors may be used to
+ endorse or promote products derived from this software without specific
+ prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS âAS ISâ AND ANY EXPRESS
+ OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
+ NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
+ OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
=====================================
p/haskell-fourmolu/debian/fourmolu.install
=====================================
@@ -0,0 +1 @@
+dist-ghc/build/fourmolu/fourmolu usr/bin
=====================================
p/haskell-fourmolu/debian/libghc-fourmolu-doc.examples
=====================================
@@ -0,0 +1,4 @@
+data/examples/declaration
+data/examples/import
+data/examples/module-header
+data/examples/other
=====================================
p/haskell-fourmolu/debian/patches/older-deps
=====================================
@@ -0,0 +1,52 @@
+--- a/fourmolu.cabal
++++ b/fourmolu.cabal
+@@ -100,7 +100,7 @@ library
+ other-modules: GHC.DynFlags
+ default-language: GHC2021
+ build-depends:
+- Cabal-syntax >=3.14 && <3.15,
++ Cabal-syntax >=3.12 && <3.13,
+ Diff >=0.4 && <2,
+ MemoTrie >=0.6 && <0.7,
+ ansi-terminal >=0.10 && <1.2,
+@@ -152,7 +152,7 @@ executable fourmolu
+ autogen-modules: Paths_fourmolu
+ default-language: GHC2021
+ build-depends:
+- Cabal-syntax >=3.14 && <3.15,
++ Cabal-syntax >=3.12 && <3.13,
+ base >=4.12 && <5,
+ containers >=0.5 && <0.8,
+ directory ^>=1.3,
+@@ -210,7 +210,7 @@ test-suite tests
+
+ default-language: GHC2021
+ build-depends:
+- Cabal-syntax >=3.14 && <3.15,
++ Cabal-syntax >=3.12 && <3.13,
+ QuickCheck >=2.14,
+ base >=4.14 && <5,
+ choice >=0.2.4.1 && <0.3,
+--- a/src/Ormolu/Utils/Cabal.hs
++++ b/src/Ormolu/Utils/Cabal.hs
+@@ -228,17 +228,17 @@ getExtensionAndDepsMap cabalFile Generic
+ extractFromLibrary Library {..} =
+ extractFromBuildInfo (ModuleName.toFilePath <$> exposedModules) libBuildInfo
+ extractFromExecutable Executable {..} =
+- extractFromBuildInfo [getSymbolicPath modulePath] buildInfo
++ extractFromBuildInfo [modulePath] buildInfo
+ extractFromTestSuite TestSuite {..} =
+ extractFromBuildInfo mainPath testBuildInfo
+ where
+ mainPath = case testInterface of
+- TestSuiteExeV10 _ p -> [getSymbolicPath p]
++ TestSuiteExeV10 _ p -> [p]
+ TestSuiteLibV09 _ p -> [ModuleName.toFilePath p]
+ TestSuiteUnsupported {} -> []
+ extractFromBenchmark Benchmark {..} =
+ extractFromBuildInfo mainPath benchmarkBuildInfo
+ where
+ mainPath = case benchmarkInterface of
+- BenchmarkExeV10 _ p -> [getSymbolicPath p]
++ BenchmarkExeV10 _ p -> [p]
+ BenchmarkUnsupported {} -> []
=====================================
p/haskell-fourmolu/debian/patches/path-to-executable
=====================================
@@ -0,0 +1,20 @@
+--- a/tests/Ormolu/Integration/Utils.hs
++++ b/tests/Ormolu/Integration/Utils.hs
+@@ -10,7 +10,7 @@ module Ormolu.Integration.Utils
+ where
+
+ import Control.Monad (when)
+-import System.Directory (findExecutable)
++import System.Directory (getCurrentDirectory)
+ import System.Environment (getEnvironment)
+ import System.Exit (ExitCode (..))
+ import System.Process (CreateProcess (..), readCreateProcessWithExitCode)
+@@ -18,7 +18,7 @@ import System.Process qualified as Proce
+
+ -- | Find a `fourmolu` executable on PATH.
+ getFourmoluExe :: IO FilePath
+-getFourmoluExe = findExecutable "fourmolu" >>= maybe (fail "Could not find fourmolu executable") return
++getFourmoluExe = getCurrentDirectory >>= \cwd -> return (cwd <> "/dist-ghc/build/fourmolu/fourmolu")
+
+ -- | Like 'System.Process.readProcess', except without specifying stdin and
+ -- with better failure messages.
=====================================
p/haskell-fourmolu/debian/patches/series
=====================================
@@ -0,0 +1,2 @@
+older-deps
+path-to-executable
=====================================
p/haskell-fourmolu/debian/rules
=====================================
@@ -0,0 +1,6 @@
+#!/usr/bin/make -f
+
+export DEB_ENABLE_TESTS = yes
+
+%:
+ dh $@
=====================================
p/haskell-fourmolu/debian/source/format
=====================================
@@ -0,0 +1 @@
+3.0 (quilt)
=====================================
p/haskell-fourmolu/debian/watch
=====================================
@@ -0,0 +1,2 @@
+version=4
+https://hackage.haskell.org/package/fourmolu/distro-monitor .*-([0-9\.]+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/fdc88b4f0a29d1e1c042f46c7a3e63dff28478ae
--
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/fdc88b4f0a29d1e1c042f46c7a3e63dff28478ae
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20260726/de4c93d2/attachment-0001.htm>
More information about the Pkg-haskell-commits
mailing list