2023-06-19 15:56:32 +02:00
|
|
|
cabal-version: 3.0
|
|
|
|
name: whatcd-resolver
|
|
|
|
version: 0.1.0.0
|
|
|
|
author: Profpatsch
|
|
|
|
maintainer: mail@profpatsch.de
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2024-03-16 14:17:24 +01:00
|
|
|
-- Allow the same record field name to be declared twice per module.
|
|
|
|
-- This works, because we use `OverloadedRecordDot` everywhere (enforced by `NoFieldSelectors`).
|
|
|
|
DuplicateRecordFields
|
|
|
|
|
2023-06-19 15:56:32 +02:00
|
|
|
-- Record punning
|
|
|
|
RecordWildCards
|
|
|
|
|
|
|
|
-- Improved Deriving
|
|
|
|
DerivingStrategies
|
|
|
|
DerivingVia
|
|
|
|
|
|
|
|
-- Type-level strings
|
|
|
|
DataKinds
|
|
|
|
|
|
|
|
-- to enable the `type` keyword in import lists (ormolu uses this automatically)
|
|
|
|
ExplicitNamespaces
|
|
|
|
|
2024-03-16 14:17:24 +01:00
|
|
|
-- allows defining pattern synonyms, but also the `import Foo (pattern FooPattern)` import syntax
|
|
|
|
PatternSynonyms
|
2023-06-19 15:56:32 +02:00
|
|
|
|
2024-03-16 14:17:24 +01:00
|
|
|
default-language: GHC2021
|
2023-06-19 15:56:32 +02:00
|
|
|
|
|
|
|
library
|
|
|
|
import: common-options
|
|
|
|
|
|
|
|
hs-source-dirs: src
|
|
|
|
|
|
|
|
exposed-modules:
|
|
|
|
WhatcdResolver
|
2024-03-16 14:17:24 +01:00
|
|
|
AppT
|
2024-03-17 12:52:06 +01:00
|
|
|
JsonLd
|
2024-03-23 05:36:47 +01:00
|
|
|
Optional
|
|
|
|
Http
|
2024-03-16 14:17:24 +01:00
|
|
|
Html
|
2024-03-17 12:43:05 +01:00
|
|
|
Transmission
|
|
|
|
Redacted
|
2023-06-19 15:56:32 +02:00
|
|
|
|
|
|
|
build-depends:
|
|
|
|
base >=4.15 && <5,
|
|
|
|
text,
|
2023-07-16 22:10:48 +02:00
|
|
|
my-prelude,
|
2023-08-06 18:04:56 +02:00
|
|
|
my-webstuff,
|
2023-06-19 15:56:32 +02:00
|
|
|
pa-prelude,
|
|
|
|
pa-error-tree,
|
|
|
|
pa-label,
|
|
|
|
pa-field-parser,
|
2023-08-06 12:47:20 +02:00
|
|
|
pa-run-command,
|
2023-07-16 22:10:48 +02:00
|
|
|
aeson-better-errors,
|
|
|
|
aeson,
|
|
|
|
blaze-html,
|
|
|
|
bytestring,
|
2024-03-23 05:36:47 +01:00
|
|
|
case-insensitive,
|
2023-06-19 15:56:32 +02:00
|
|
|
containers,
|
2023-10-08 23:22:10 +02:00
|
|
|
unordered-containers,
|
2023-06-19 15:56:32 +02:00
|
|
|
directory,
|
2023-10-16 00:48:45 +02:00
|
|
|
exceptions,
|
2023-06-19 15:56:32 +02:00
|
|
|
filepath,
|
2023-09-29 18:04:32 +02:00
|
|
|
hs-opentelemetry-sdk,
|
2023-10-14 19:53:43 +02:00
|
|
|
hs-opentelemetry-api,
|
2023-06-19 15:56:32 +02:00
|
|
|
http-conduit,
|
|
|
|
http-types,
|
2024-03-23 05:36:47 +01:00
|
|
|
http-client,
|
2023-07-16 22:10:48 +02:00
|
|
|
ihp-hsx,
|
|
|
|
monad-logger,
|
2023-06-19 15:56:32 +02:00
|
|
|
mtl,
|
2023-10-16 00:48:45 +02:00
|
|
|
network-uri,
|
2023-07-16 22:10:48 +02:00
|
|
|
resource-pool,
|
|
|
|
postgresql-simple,
|
2024-03-23 05:36:47 +01:00
|
|
|
punycode,
|
2023-07-16 22:10:48 +02:00
|
|
|
tmp-postgres,
|
2023-06-19 15:56:32 +02:00
|
|
|
unliftio,
|
2023-06-29 13:18:18 +02:00
|
|
|
wai-extra,
|
2023-07-16 22:10:48 +02:00
|
|
|
wai,
|
|
|
|
warp,
|
2023-06-19 15:56:32 +02:00
|
|
|
|
2023-09-17 19:27:52 +02:00
|
|
|
executable whatcd-resolver
|
|
|
|
import: common-options
|
|
|
|
|
|
|
|
main-is: Main.hs
|
|
|
|
|
|
|
|
build-depends:
|
|
|
|
base >=4.15 && <5,
|
|
|
|
whatcd-resolver
|
2024-05-09 12:46:44 +02:00
|
|
|
|
|
|
|
ghc-options:
|
|
|
|
-threaded
|
|
|
|
|