inter-hub-haskell/Web/Controller/Api/V2
Bernd Worsch ce42607fca fix(WP-0014/A2): close remaining pure-param and structural compilation errors
Convert all remaining `<- paramOrNothing / param / paramOrDefault /
currentUserOrNothing` monadic binds to `let` — these functions are pure
(ImplicitParams-based) in IHP v1.5, so `<-` is a type error in an IO
do-block.

Controllers fixed:
  AgentDelegations, AiGovernancePolicies, Annotations, ApiConsumers,
  CollectiveProposals, DecisionRecords, DeploymentRecords,
  HubCapabilityManifests, HubRoutingRules, InstitutionalKnowledge,
  OutcomeCorrelations, RequirementCandidates, TypeRegistries,
  WebhookSubscriptions, Widgets,
  Api/V2/{Annotations,InteractionEvents,Token}

WebhookSubscriptions: remove orphaned `Right () ->` case arm that was
left inside a bare `unless` block (structural parse error).

Also carries forward all in-progress fixes from the working tree:
  helpers (AgentBridge, ApiRateLimit, BottleneckDetector,
            CrossHubPropagation, FrictionScore),
  views (CanSelect instances, HSX lambda extraction, formFor wrappers),
  env/build (envrc GHCi perms, flake.nix Tailwind + GHC resource limits,
             static/app.css additional Tailwind output).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 01:14:08 +00:00
..
Annotations.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
Auth.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
DecisionRecords.hs feat(WP-0010): IHF Phase 9 — External API Surface and Consumer SDKs 2026-04-01 19:52:20 +00:00
DeploymentRecords.hs feat(WP-0010): IHF Phase 9 — External API Surface and Consumer SDKs 2026-04-01 19:52:20 +00:00
HubRegistry.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
InteractionEvents.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
Learning.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
OpenApi.hs fix(WP-0014): pre-flight compilation fixes, Tailwind pipeline, and admin seed 2026-04-04 09:55:12 +00:00
OutcomeSignals.hs feat(WP-0010): IHF Phase 9 — External API Surface and Consumer SDKs 2026-04-01 19:52:20 +00:00
Registries.hs fix(WP-0014): pre-flight compilation fixes, Tailwind pipeline, and admin seed 2026-04-04 09:55:12 +00:00
RequirementCandidates.hs feat(WP-0010): IHF Phase 9 — External API Surface and Consumer SDKs 2026-04-01 19:52:20 +00:00
Sdk.hs fix(WP-0014): pre-flight compilation fixes, Tailwind pipeline, and admin seed 2026-04-04 09:55:12 +00:00
Token.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
WidgetPatterns.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
Widgets.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00