From ef8e76cab95dd5521e65d72f201730e0f7da92b6 Mon Sep 17 00:00:00 2001 From: Robert Benson Date: Tue, 23 Sep 2025 16:35:37 -0400 Subject: [PATCH] Move markdown-unlit from dependencies to build-tools MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This avoids unused-package warnings and removes the need for empty imports. 🤖 Generated with Claude Code --- graphula.cabal | 5 +++-- package.yaml | 11 ++--------- test/README.lhs | 1 - 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/graphula.cabal b/graphula.cabal index be2d762..c609d1a 100644 --- a/graphula.cabal +++ b/graphula.cabal @@ -1,6 +1,6 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.37.0. +-- This file has been generated from package.yaml by hpack version 0.38.1. -- -- see: https://github.com/sol/hpack @@ -78,13 +78,14 @@ test-suite readme hs-source-dirs: test ghc-options: -Weverything -Wno-all-missed-specialisations -Wno-implicit-prelude -Wno-missing-import-lists -Wno-safe -Wno-unsafe -pgmL markdown-unlit + build-tool-depends: + markdown-unlit:markdown-unlit build-depends: QuickCheck , base <5 , generic-arbitrary , graphula , hspec - , markdown-unlit , monad-logger , persistent , persistent-sqlite diff --git a/package.yaml b/package.yaml index bc4f3b5..c937573 100644 --- a/package.yaml +++ b/package.yaml @@ -9,7 +9,6 @@ description: Please see README.md extra-source-files: - README.md - CHANGELOG.md - ghc-options: - -Weverything - -Wno-all-missed-specialisations @@ -17,7 +16,6 @@ ghc-options: - -Wno-missing-import-lists - -Wno-safe - -Wno-unsafe - when: - condition: impl(ghc >= 9.8) ghc-options: @@ -33,10 +31,8 @@ when: - condition: impl(ghc < 8.6) ghc-options: - -Wno-redundant-constraints - dependencies: - base < 5 - library: source-dirs: - src @@ -54,27 +50,23 @@ library: - text - unliftio - unliftio-core - tests: readme: main: README.lhs ghc-options: -pgmL markdown-unlit source-dirs: - test - dependencies: - QuickCheck - generic-arbitrary - graphula - hspec - - markdown-unlit - monad-logger - persistent - persistent-sqlite - resourcet - transformers - unliftio-core - when: - condition: impl(ghc >= 8.8) ghc-options: @@ -82,7 +74,8 @@ tests: - condition: "flag(persistent-template)" dependencies: - persistent-template - + build-tools: + - markdown-unlit flags: persistent-template: description: Include dependency on persistent-template diff --git a/test/README.lhs b/test/README.lhs index fda2924..343be64 100644 --- a/test/README.lhs +++ b/test/README.lhs @@ -45,7 +45,6 @@ import Graphula import Test.Hspec import Test.QuickCheck import Test.QuickCheck.Arbitrary.Generic -import Text.Markdown.Unlit () instance (ToBackendKey SqlBackend a) => Arbitrary (Key a) where arbitrary = toSqlKey <$> arbitrary