refactor(users/Profpatsch/whatcd-resolver): move AppT & Html out

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
This commit is contained in:
Profpatsch 2024-03-16 14:17:24 +01:00 committed by clbot
parent 803d726ed5
commit 0b06dda9a6
5 changed files with 212 additions and 172 deletions

View file

@ -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,