about summary refs log tree commit diff
path: root/users/Profpatsch/whatcd-resolver/whatcd-resolver.cabal
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2024-03-16T13·17+0100
committerclbot <clbot@tvl.fyi>2024-03-16T22·36+0000
commit0b06dda9a6a31954e5add72cad3562c446d92a35 (patch)
treef763a1bffeade63568c5123743ce617bb033e373 /users/Profpatsch/whatcd-resolver/whatcd-resolver.cabal
parent803d726ed509f86ed5b60ed2335292e6a4b0aec5 (diff)
refactor(users/Profpatsch/whatcd-resolver): move AppT & Html out r/7708
These functions are just general setup and html helpers, the main file
is getting a bit long otherwise.

Change-Id: I194e9f7f4caa4ce204d510c885dcf5af63d0e76e
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11165
Autosubmit: Profpatsch <mail@profpatsch.de>
Reviewed-by: Profpatsch <mail@profpatsch.de>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/Profpatsch/whatcd-resolver/whatcd-resolver.cabal')
-rw-r--r--users/Profpatsch/whatcd-resolver/whatcd-resolver.cabal10
1 files changed, 9 insertions, 1 deletions
diff --git a/users/Profpatsch/whatcd-resolver/whatcd-resolver.cabal b/users/Profpatsch/whatcd-resolver/whatcd-resolver.cabal
index cca3712a65a2..614772db2401 100644
--- a/users/Profpatsch/whatcd-resolver/whatcd-resolver.cabal
+++ b/users/Profpatsch/whatcd-resolver/whatcd-resolver.cabal
@@ -35,6 +35,10 @@ common common-options
     -- does not export record fields as functions, use OverloadedRecordDot to access instead
     NoFieldSelectors
 
+    -- Allow the same record field name to be declared twice per module.
+    -- This works, because we use `OverloadedRecordDot` everywhere (enforced by `NoFieldSelectors`).
+    DuplicateRecordFields
+
     -- Record punning
     RecordWildCards
 
@@ -48,8 +52,10 @@ common common-options
     -- to enable the `type` keyword in import lists (ormolu uses this automatically)
     ExplicitNamespaces
 
-  default-language: GHC2021
+    -- allows defining pattern synonyms, but also the `import Foo (pattern FooPattern)` import syntax
+    PatternSynonyms
 
+  default-language: GHC2021
 
 library
     import: common-options
@@ -58,6 +64,8 @@ library
 
     exposed-modules:
        WhatcdResolver
+       AppT
+       Html
 
     build-depends:
         base >=4.15 && <5,