forked from NixOS/nixfmt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nixfmt.cabal
123 lines (111 loc) · 2.93 KB
/
nixfmt.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
cabal-version: 2.0
-- © 2022 Serokell <hi@serokell.io>
-- © 2022 Lars Jellema <lars.jellema@gmail.com>
--
-- SPDX-License-Identifier: MPL-2.0
name: nixfmt
version: 0.5.0
synopsis: An opinionated formatter for Nix
description:
A formatter for Nix that ensures consistent and clear formatting by forgetting
all existing formatting during parsing.
homepage: https://github.com/serokell/nixfmt
bug-reports: https://github.com/serokell/nixfmt/issues
license: MPL-2.0
license-file: LICENSE
author: Lars Jellema
maintainer: lars.jellema@gmail.com
copyright: 2022 Serokell, 2022 Lars Jellema
category: Development
build-type: Simple
extra-source-files: README.md, CHANGELOG.md
source-repository head
type: git
location: git://github.com/serokell/nixfmt.git
executable nixfmt
main-is: Main.hs
other-modules:
Paths_nixfmt
System.IO.Utf8
System.IO.Atomic
autogen-modules:
Paths_nixfmt
other-extensions: DeriveDataTypeable
hs-source-dirs: main
if impl(ghcjs)
buildable: False
else
buildable: True
build-depends:
base >= 4.12.0 && < 4.17
, cmdargs >= 0.10.20 && < 0.11
, nixfmt
, unix >= 2.7.2 && < 2.8
, text >= 1.2.3 && < 1.3
-- for System.IO.Atomic
, directory >= 1.3.3 && < 1.4
, filepath >= 1.4.2 && < 1.5
, safe-exceptions >= 0.1.7 && < 0.2
default-language: Haskell2010
ghc-options:
-Wall
-Wcompat
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wredundant-constraints
-threaded
library
exposed-modules:
Nixfmt
Nixfmt.Lexer
Nixfmt.Parser
Nixfmt.Parser.Float
Nixfmt.Predoc
Nixfmt.Pretty
Nixfmt.Types
Nixfmt.Util
default-extensions:
PackageImports
other-extensions:
DeriveFoldable
DeriveFunctor
FlexibleInstances
LambdaCase
OverloadedStrings
ScopedTypeVariables
StandaloneDeriving
TupleSections
hs-source-dirs: src
build-depends:
base >= 4.12.0 && < 4.17
, megaparsec >= 9.0.1 && < 9.3
, parser-combinators >= 1.0.3 && < 1.4
, scientific >= 0.3.0 && < 0.4.0
, text >= 1.2.3 && < 1.3
default-language: Haskell2010
ghc-options:
-Wall
-Wcompat
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wredundant-constraints
-Wno-orphans
executable js-interface
main-is: JSInterface.hs
if impl(ghcjs)
buildable: True
ghc-options:
-Wall
-Wcompat
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wredundant-constraints
-Wno-orphans
build-depends:
base >= 4.12.0 && < 4.17
, ghcjs-base >= 0.2.0 && < 0.3
, nixfmt
hs-source-dirs: js/
else
buildable: False
default-language: Haskell2010