Popularity
9.1
Growing
Activity
0.0
-
98
5
22
Monthly Downloads: 77
Programming language: Haskell
License: GNU General Public License v3.0 only
Tags:
Development
Cabal
Latest version: v0.1.5
cabal-fmt alternatives and similar packages
Based on the "cabal" category.
Alternatively, view cabal-fmt alternatives based on common mentions on social networks and blogs.
-
cabal-install-parsers
Scripts and instructions for using CI services (e.g. Travis CI or Appveyor) with multiple GHC configurations -
cabal-plan
Library and utility for processing cabal's plan.json file -
cabal-edit
A utility for managing Hackage dependencies and manipulating Cabal files from the command line. -
cabal-bundle-clib
[Moved to: https://github.com/IsumiF/cabal-bundle-clib]
Static code analysis for 29 languages.
Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.
Promo
www.sonarqube.org
Do you think we are missing an alternative of cabal-fmt or a related project?
README
cabal-fmt
Synopsis
$ cabal install cabal-fmt
$ ...
$ cabal-fmt --inplace example.cabal
Output
Turns this...
cabal-version: 2.4
name: cabal-fmt
version: 0
-- An example formatter
executable cabal-fmt
default-language: Haskell2010
hs-source-dirs: src
main-is: CabalFmt.hs
-- build depends will be in
-- a nice tabular format
build-depends: base >=4.11 && <4.13, pretty >=1.1.3.6 && <1.2, bytestring, Cabal ^>=2.5, containers ^>=0.5.11.0 || ^>=0.6.0.1
-- extensions will be sorted
other-extensions:
DeriveFunctor FlexibleContexts ExistentialQuantification OverloadedStrings
RankNTypes
...into this:
cabal-version: 2.4
name: cabal-fmt
version: 0
-- An example formatter
executable cabal-fmt
default-language: Haskell2010
hs-source-dirs: src
main-is: CabalFmt.hs
-- build depends will be in
-- a nice tabular format
build-depends:
, base >=4.11 && <4.13
, bytestring
, Cabal ^>=2.5
, containers ^>=0.5.11.0 || ^>=0.6.0.1
, pretty ^>=1.1.3.6
-- extensions will be sorted
other-extensions:
DeriveFunctor
ExistentialQuantification
FlexibleContexts
OverloadedStrings
RankNTypes
Editor Integration
Emacs
If you have cabal-fmt
in your $PATH
, you can auto-format .cabal
files in
your project by putting this in the project directory's .dir-locals.el
:
((haskell-cabal-mode
(eval .
(add-hook 'before-save-hook
(lambda () (haskell-mode-buffer-apply-command "cabal-fmt")) nil t))))
Vim
There are currently two options, both requiring cabal-fmt
to be in your $PATH
:
vim-cabalfmt
, a standalone pluginneoformat
, a general formatter withcabal-fmt
support