packages feed

typesafe-ai-core-0.1.0.0: typesafe-ai-core.cabal

cabal-version:      3.0
name:               typesafe-ai-core
version:            0.1.0.0
synopsis:           Types, JSON codecs and typed questions for the TypeSafe AI API
description:
  Transport-agnostic bindings to the TypeSafe System One API
  (<https://docs.typesafe.ai>): typed Noul, Choice and Score questions whose
  answers decode to your own Haskell types, a one-to-one mirror of the
  OpenAPI schemas, and API calls as plain values.
  .
  This package does no networking, so it can be used with servant or any
  other HTTP stack. For a ready-to-use client, depend on @typesafe-ai@.
  .
  Start with "TypeSafe.Core" and "TypeSafe.Question".
  .
  This is a community SDK, not affiliated with or endorsed by TypeSafe AI.

homepage:           https://github.com/byteally/typesafe-sdk
bug-reports:        https://github.com/byteally/typesafe-sdk/issues
license:            BSD-3-Clause
license-file:       LICENSE
author:             Magesh B
maintainer:         magesh85@gmail.com
copyright:          2026 byteally
category:           AI, Web, API
build-type:         Simple
tested-with:
  GHC ==9.6.7 || ==9.8.4 || ==9.10.3 || ==9.12.2 || ==9.14.1

extra-doc-files:
  CHANGELOG.md
  README.md

extra-source-files:
  spec/openapi.json

source-repository head
  type:     git
  location: https://github.com/byteally/typesafe-sdk.git
  subdir:   typesafe-ai-core

common warnings
  ghc-options:
    -Wall -Wcompat -Widentities -Wincomplete-record-updates
    -Wincomplete-uni-patterns -Wmissing-deriving-strategies
    -Wpartial-fields -Wredundant-constraints -Wunused-packages

library
  import:           warnings
  hs-source-dirs:   src
  default-language: Haskell2010
  exposed-modules:
    TypeSafe.Call
    TypeSafe.Content
    TypeSafe.Core
    TypeSafe.Error
    TypeSafe.Internal.Generic
    TypeSafe.Question
    TypeSafe.Retry
    TypeSafe.Wire

  build-depends:
    , aeson       >=2.1    && <2.4
    , base        >=4.18   && <4.23
    , bytestring  >=0.11.3 && <0.13
    , containers  >=0.6.7  && <0.9
    , deepseq     >=1.4.8  && <1.6
    , http-types  >=0.12.3 && <0.13
    , text        >=2.0    && <2.2
    , time        >=1.12   && <1.17
    , vector      >=0.13   && <0.14

test-suite spec
  import:           warnings
  type:             exitcode-stdio-1.0
  hs-source-dirs:   test
  default-language: Haskell2010
  main-is:          Main.hs
  other-modules:
    TypeSafe.ArbitraryInstances
    TypeSafe.ConformanceSpec
    TypeSafe.ErrorSpec
    TypeSafe.JsonSchema
    TypeSafe.QuestionSpec
    TypeSafe.RetrySpec

  build-depends:
    , aeson
    , base
    , bytestring
    , containers
    , http-types
    , QuickCheck        >=2.14 && <2.19
    , scientific        >=0.3  && <0.4
    , tasty             >=1.4  && <1.6
    , tasty-hunit       >=0.10 && <0.11
    , tasty-quickcheck  >=0.10 && <0.12
    , text
    , time
    , typesafe-ai-core
    , vector