2023-05-28 20:58:20 +02:00
|
|
|
cabal-version: 3.0
|
2022-07-17 18:22:25 +02:00
|
|
|
name: my-prelude
|
|
|
|
version: 0.0.1.0
|
|
|
|
author: Profpatsch
|
|
|
|
maintainer: mail@profpatsch.de
|
|
|
|
|
2023-07-16 22:10:48 +02:00
|
|
|
common common-options
|
|
|
|
ghc-options:
|
|
|
|
-Wall
|
|
|
|
-Wno-type-defaults
|
|
|
|
-Wunused-packages
|
|
|
|
-Wredundant-constraints
|
|
|
|
-fwarn-missing-deriving-strategies
|
|
|
|
|
|
|
|
-- See https://downloads.haskell.org/ghc/latest/docs/users_guide/exts.html
|
|
|
|
-- for a description of all these extensions
|
|
|
|
default-extensions:
|
|
|
|
-- Infer Applicative instead of Monad where possible
|
|
|
|
ApplicativeDo
|
|
|
|
|
|
|
|
-- Allow literal strings to be Text
|
|
|
|
OverloadedStrings
|
|
|
|
|
|
|
|
-- Syntactic sugar improvements
|
|
|
|
LambdaCase
|
|
|
|
MultiWayIf
|
|
|
|
|
|
|
|
-- Makes the (deprecated) usage of * instead of Data.Kind.Type an error
|
|
|
|
NoStarIsType
|
|
|
|
|
|
|
|
-- Convenient and crucial to deal with ambiguous field names, commonly
|
|
|
|
-- known as RecordDotSyntax
|
|
|
|
OverloadedRecordDot
|
|
|
|
|
|
|
|
-- does not export record fields as functions, use OverloadedRecordDot to access instead
|
|
|
|
NoFieldSelectors
|
|
|
|
|
|
|
|
-- Record punning
|
|
|
|
RecordWildCards
|
|
|
|
|
|
|
|
-- Improved Deriving
|
|
|
|
DerivingStrategies
|
|
|
|
DerivingVia
|
|
|
|
|
|
|
|
-- Type-level strings
|
|
|
|
DataKinds
|
|
|
|
|
|
|
|
-- to enable the `type` keyword in import lists (ormolu uses this automatically)
|
|
|
|
ExplicitNamespaces
|
|
|
|
|
|
|
|
default-language: GHC2021
|
|
|
|
|
|
|
|
|
2022-07-17 18:22:25 +02:00
|
|
|
library
|
2023-07-16 22:10:48 +02:00
|
|
|
import: common-options
|
|
|
|
hs-source-dirs: src
|
2022-12-31 17:11:57 +01:00
|
|
|
exposed-modules:
|
|
|
|
MyPrelude
|
2023-01-02 03:02:48 +01:00
|
|
|
Aeson
|
2023-08-08 21:54:34 +02:00
|
|
|
AtLeast
|
2023-01-07 14:54:45 +01:00
|
|
|
Test
|
2023-07-16 22:10:48 +02:00
|
|
|
Postgres.Decoder
|
|
|
|
Postgres.MonadPostgres
|
|
|
|
ValidationParseT
|
2023-08-08 21:54:34 +02:00
|
|
|
Seconds
|
2023-07-16 22:10:48 +02:00
|
|
|
Tool
|
2022-07-17 18:22:25 +02:00
|
|
|
|
|
|
|
-- Modules included in this executable, other than Main.
|
|
|
|
-- other-modules:
|
|
|
|
|
|
|
|
-- LANGUAGE extensions used by modules in this package.
|
|
|
|
-- other-extensions:
|
|
|
|
build-depends:
|
2022-12-27 14:32:52 +01:00
|
|
|
base >=4.15 && <5
|
2023-07-16 22:10:48 +02:00
|
|
|
, pa-prelude
|
2023-05-28 17:20:48 +02:00
|
|
|
, pa-label
|
2023-05-28 20:58:20 +02:00
|
|
|
, pa-error-tree
|
2023-07-16 22:10:48 +02:00
|
|
|
, pa-json
|
2023-08-06 12:46:50 +02:00
|
|
|
, pa-pretty
|
2023-08-08 21:54:34 +02:00
|
|
|
, pa-field-parser
|
2023-01-02 03:02:48 +01:00
|
|
|
, aeson
|
|
|
|
, aeson-better-errors
|
2023-07-16 22:10:48 +02:00
|
|
|
, bytestring
|
2022-07-17 18:22:25 +02:00
|
|
|
, containers
|
2023-08-08 21:54:34 +02:00
|
|
|
, resource-pool
|
|
|
|
, resourcet
|
|
|
|
, scientific
|
|
|
|
, time
|
2022-07-17 18:22:25 +02:00
|
|
|
, error
|
2023-01-08 23:41:17 +01:00
|
|
|
, exceptions
|
2023-07-16 22:10:48 +02:00
|
|
|
, filepath
|
2023-01-02 03:02:48 +01:00
|
|
|
, hspec
|
|
|
|
, hspec-expectations-pretty-diff
|
2023-09-29 19:04:06 +02:00
|
|
|
, hs-opentelemetry-api
|
2023-07-16 22:10:48 +02:00
|
|
|
, monad-logger
|
|
|
|
, mtl
|
|
|
|
, postgresql-simple
|
|
|
|
, profunctors
|
|
|
|
, PyF
|
|
|
|
, semigroupoids
|
|
|
|
, selective
|
|
|
|
, text
|
|
|
|
, these
|
|
|
|
, unix
|
|
|
|
, unliftio
|
|
|
|
, validation-selective
|
2023-01-02 03:02:48 +01:00
|
|
|
, vector
|