packages feed

sofetch-0.1.0.4: sofetch.cabal

cabal-version: 2.2

-- This file has been generated from package.yaml by hpack version 0.38.1.
--
-- see: https://github.com/sol/hpack

name:           sofetch
version:        0.1.0.4
synopsis:       A low-boilerplate Haxl-like data fetching library
description:    Please see the README on GitHub at <https://github.com/iand675/sofetch#readme>
category:       Data
homepage:       https://github.com/iand675/sofetch#readme
bug-reports:    https://github.com/iand675/sofetch/issues
author:         Ian Duncan
maintainer:     ian@iankduncan.com
copyright:      2026 Ian Duncan
license:        BSD-3-Clause
license-file:   LICENSE
build-type:     Simple
extra-source-files:
    README.md
extra-doc-files:
    CHANGELOG.md

source-repository head
  type: git
  location: https://github.com/iand675/sofetch

flag examples
  description: Build example executables
  manual: True
  default: False

library
  exposed-modules:
      Fetch
      Fetch.Batched
      Fetch.Cache
      Fetch.Class
      Fetch.Combinators
      Fetch.Deriving
      Fetch.Engine
      Fetch.IVar
      Fetch.Memo
      Fetch.Mock
      Fetch.Mutate
      Fetch.Traced
  other-modules:
      Paths_sofetch
  autogen-modules:
      Paths_sofetch
  hs-source-dirs:
      src
  ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints
  build-depends:
      async ==2.2.*
    , base >=4.7 && <5
    , containers >=0.6 && <0.8
    , exceptions ==0.10.*
    , hashable >=1.4 && <1.6
    , semigroupoids ==6.0.*
    , text >=1.2 && <2.2
    , time >=1.9 && <1.15
    , transformers >=0.5 && <0.7
    , unliftio-core ==0.2.*
    , unordered-containers >=0.2.16 && <0.3
  default-language: Haskell2010

executable github-explorer
  main-is: GitHubExplorer.hs
  hs-source-dirs:
      examples
  ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded
  build-depends:
      aeson
    , async ==2.2.*
    , base >=4.7 && <5
    , bytestring
    , containers >=0.6 && <0.8
    , exceptions ==0.10.*
    , hashable >=1.4 && <1.6
    , http-client
    , http-client-tls
    , http-types
    , semigroupoids ==6.0.*
    , sofetch
    , text >=1.2 && <2.2
    , time >=1.9 && <1.15
    , transformers >=0.5 && <0.7
    , unliftio-core ==0.2.*
    , unordered-containers >=0.2.16 && <0.3
  default-language: Haskell2010
  if !flag(examples)
    buildable: False

executable sqlite-blog
  main-is: SqliteBlog.hs
  hs-source-dirs:
      examples
  ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded
  build-depends:
      async ==2.2.*
    , base >=4.7 && <5
    , bytestring
    , containers >=0.6 && <0.8
    , exceptions ==0.10.*
    , hashable >=1.4 && <1.6
    , semigroupoids ==6.0.*
    , sofetch
    , sqlite-simple
    , text >=1.2 && <2.2
    , time >=1.9 && <1.15
    , transformers >=0.5 && <0.7
    , unliftio-core ==0.2.*
    , unordered-containers >=0.2.16 && <0.3
  default-language: Haskell2010
  if !flag(examples)
    buildable: False

test-suite sofetch-test
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      Paths_sofetch
  autogen-modules:
      Paths_sofetch
  hs-source-dirs:
      test
  ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      async ==2.2.*
    , base >=4.7 && <5
    , containers >=0.6 && <0.8
    , exceptions ==0.10.*
    , hashable >=1.4 && <1.6
    , hspec
    , semigroupoids ==6.0.*
    , sofetch
    , text >=1.2 && <2.2
    , time >=1.9 && <1.15
    , transformers >=0.5 && <0.7
    , unliftio-core ==0.2.*
    , unordered-containers >=0.2.16 && <0.3
  default-language: Haskell2010