Skip to content

Commit

Permalink
Use cabal-fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
nc6 committed Nov 12, 2024
1 parent aeb6450 commit fcb9ed7
Showing 1 changed file with 98 additions and 98 deletions.
196 changes: 98 additions & 98 deletions cuddle.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -17,116 +17,116 @@ extra-doc-files: CHANGELOG.md
-- extra-source-files:

common warnings
ghc-options: -Wall
ghc-options: -Wall

common ghc2021
-- These options are all on by default in GHC2021, so once we drop GHC8 we
-- can remove this section.
default-extensions:
DataKinds
DeriveGeneric
DeriveTraversable
FlexibleContexts
FlexibleInstances
GeneralizedNewtypeDeriving
ImportQualifiedPost
InstanceSigs
MultiParamTypeClasses
NamedFieldPuns
PolyKinds
RankNTypes
ScopedTypeVariables
StandaloneDeriving
TypeApplications
TypeSynonymInstances
-- These options are all on by default in GHC2021, so once we drop GHC8 we
-- can remove this section.
default-extensions:
DataKinds
DeriveGeneric
DeriveTraversable
FlexibleContexts
FlexibleInstances
GeneralizedNewtypeDeriving
ImportQualifiedPost
InstanceSigs
MultiParamTypeClasses
NamedFieldPuns
PolyKinds
RankNTypes
ScopedTypeVariables
StandaloneDeriving
TypeApplications
TypeSynonymInstances

library
import: warnings, ghc2021
exposed-modules:
Codec.CBOR.Cuddle.CBOR.Gen
Codec.CBOR.Cuddle.CDDL
Codec.CBOR.Cuddle.CDDL.CtlOp
Codec.CBOR.Cuddle.CDDL.CTree
Codec.CBOR.Cuddle.CDDL.Postlude
Codec.CBOR.Cuddle.CDDL.Resolve
Codec.CBOR.Cuddle.Huddle
Codec.CBOR.Cuddle.Parser
Codec.CBOR.Cuddle.Pretty
import: warnings, ghc2021
exposed-modules:
Codec.CBOR.Cuddle.CBOR.Gen
Codec.CBOR.Cuddle.CDDL
Codec.CBOR.Cuddle.CDDL.CtlOp
Codec.CBOR.Cuddle.CDDL.CTree
Codec.CBOR.Cuddle.CDDL.Postlude
Codec.CBOR.Cuddle.CDDL.Resolve
Codec.CBOR.Cuddle.Huddle
Codec.CBOR.Cuddle.Parser
Codec.CBOR.Cuddle.Pretty

other-modules:
other-modules:

-- other-extensions:
build-depends:
, base >=4.14.0.0
, base16-bytestring
, bytestring
, capability
, cborg
, containers
, data-default-class
, generic-optics
, hashable
, megaparsec
, mtl
, mutable-containers
, optics-core
, parser-combinators
, prettyprinter
, random
, text
-- other-extensions:
build-depends:
, base >=4.14.0.0
, base16-bytestring
, bytestring
, capability
, cborg
, containers
, data-default-class
, generic-optics
, hashable
, megaparsec
, mtl
, mutable-containers
, optics-core
, parser-combinators
, prettyprinter
, random
, text

hs-source-dirs: src
default-language: Haskell2010
hs-source-dirs: src
default-language: Haskell2010

executable example
import: warnings, ghc2021
default-language: Haskell2010
other-modules: Conway
import: warnings, ghc2021
default-language: Haskell2010
other-modules: Conway

-- other-extensions:
hs-source-dirs: example
main-is: Main.hs
build-depends:
, base >=4.14.0.0
, cuddle
, megaparsec
, prettyprinter
, random
, text
-- other-extensions:
hs-source-dirs: example
main-is: Main.hs
build-depends:
, base >=4.14.0.0
, cuddle
, megaparsec
, prettyprinter
, random
, text

executable cuddle
import: warnings, ghc2021
default-language: Haskell2010
hs-source-dirs: ./bin/
main-is: Main.hs
build-depends:
, base >=4.14.0.0
, cborg
, cuddle
, megaparsec
, optparse-applicative
, prettyprinter
, random
, text
import: warnings, ghc2021
default-language: Haskell2010
hs-source-dirs: ./bin/
main-is: Main.hs
build-depends:
, base >=4.14.0.0
, cborg
, cuddle
, megaparsec
, optparse-applicative
, prettyprinter
, random
, text

test-suite cuddle-test
import: warnings, ghc2021
default-language: Haskell2010
other-modules:
Test.Codec.CBOR.Cuddle.CDDL.Gen
Test.Codec.CBOR.Cuddle.CDDL.Parser
Test.Codec.CBOR.Cuddle.Huddle
import: warnings, ghc2021
default-language: Haskell2010
other-modules:
Test.Codec.CBOR.Cuddle.CDDL.Gen
Test.Codec.CBOR.Cuddle.CDDL.Parser
Test.Codec.CBOR.Cuddle.Huddle

-- other-extensions:
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Main.hs
build-depends:
, base >=4.14.0.0
, cuddle
, hspec
, hspec-megaparsec
, megaparsec
, prettyprinter
, QuickCheck
, text
-- other-extensions:
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Main.hs
build-depends:
, base >=4.14.0.0
, cuddle
, hspec
, hspec-megaparsec
, megaparsec
, prettyprinter
, QuickCheck
, text

0 comments on commit fcb9ed7

Please sign in to comment.