packages feed

intelli-monad-0.1.1.0: intelli-monad.cabal

cabal-version:      3.0
name:               intelli-monad
version:            0.1.1.0
synopsis:           Type level prompt with LLMs via louter.
description:        Type level prompt with LLMs via louter. This allows us to define function calls and value validation using types.
homepage:           https://github.com/junjihashimoto/intelli-monad
license:            MIT

-- The file containing the license text.
license-file:       LICENSE

-- The package author(s).
author:             Junji Hashimoto

-- An email address to which users can send suggestions, bug reports, and patches.
maintainer:         junji.hashimoto@gmail.com

-- A copyright notice.
-- copyright:
category:           Development
build-type:         Simple

-- Extra doc files to be distributed with the package, such as a CHANGELOG or a README.
extra-doc-files:    CHANGELOG.md
                    README.md

-- Extra source files to be distributed with the package, such as examples, or a tutorial module.
-- extra-source-files:

common warnings
    ghc-options: -Wall

library
    -- Import common warning flags.
    import:           warnings

    -- Modules exported by the library.
    exposed-modules:  IntelliMonad.Prompt
                    , IntelliMonad.Types
                    , IntelliMonad.Tools
                    , IntelliMonad.Tools.Arxiv
                    , IntelliMonad.Tools.Bash
                    , IntelliMonad.Tools.TextToSpeech
                    , IntelliMonad.Tools.DallE3
                    , IntelliMonad.Tools.Utils
                    , IntelliMonad.Tools.KeyValue
                    , IntelliMonad.Persist
                    , IntelliMonad.Repl
                    , IntelliMonad.Cmd
                    , IntelliMonad.Config
                    , IntelliMonad.CustomInstructions

    -- Modules included in this library but not exported.
    -- other-modules:

    -- LANGUAGE extensions used by modules in this package.
    -- other-extensions:

    -- Other library packages from which modules are imported.
    build-depends:    base >= 4.0 && < 5.0
                    , JuicyPixels >= 3.3.8 && < 3.4
                    , bytestring >= 0.11.5 && < 0.13
                    , containers >= 0.6.7 && < 0.7
                    , transformers >= 0.6.1 && < 0.7
                    , vector >= 0.13.1 && < 0.14
                    , aeson >= 2.1 && < 2.3
                    , text >= 2.0.2 && < 2.2
                    , time >= 1.12.2 && < 1.13
                    , aeson-pretty >= 0.8.10 && < 0.9
                    , aeson-casing >= 0.2 && < 0.3
                    , process >= 1.6.17 && < 1.7
                    , base64-bytestring >= 1.2.1 && < 1.3
                    , haskeline >= 0.8.2 && < 0.9
                    , http-client >= 0.7.16 && < 0.8
                    , http-client-tls >= 0.3.6 && < 0.4
                    , http-conduit >= 2.2 && < 2.4
                    , megaparsec >= 9.5 && < 9.7
                    , louter >= 0.1.1 && < 0.1.2
                    , openai-servant-gen >= 0.1.0 && < 0.2
                    , servant >= 0.20.1 && < 0.22
                    , servant-client >= 0.20 && < 0.21
                    , persistent >= 2.14.6 && < 2.15
                    , persistent-sqlite >= 2.13.3 && < 2.14
                    , sixel >= 0.1.2 && < 0.2
                    , optparse-applicative >= 0.18 && < 0.19
                    , temporary >= 1.3 && < 1.4
                    , xml-conduit >= 1.9 && < 2.0
                    , yaml >= 0.11 && < 0.12
                    , wai >=3.2 && <4.0
                    , warp >=3.3 && <4.0
                    , servant-server >= 0.20 && < 0.21
                    , servant-client-core >= 0.20 && < 0.21
                    , mtl >=2.2 && <3.0
                    , exceptions >=1.10 && <1.11
                    , wai-extra >=3.1 && <3.2
                    , stm >=2.5 && <2.6
                    , kan-extensions >=5.2 && <5.3
                    , http-types >=0.12 && <1.0
    -- Directories containing source files.
    hs-source-dirs:   src

    -- Base language which the package is written in.
    default-language: Haskell2010

executable intelli-monad
    import:           warnings
    main-is:          repl.hs
    ghc-options:      -rtsopts -threaded -g
    build-depends:
        base == 4.*,
        intelli-monad,
        louter,
        text,
        process,
        persistent-sqlite
    hs-source-dirs:   app
    default-language: Haskell2010

executable calc
    import:           warnings
    main-is:          calc.hs
    build-depends:
        base == 4.*,
        intelli-monad,
        louter,
        text,
        aeson
    hs-source-dirs:   app
    default-language: Haskell2010

executable auto-talk
    import:           warnings
    main-is:          auto-talk.hs
    build-depends:
        base == 4.*,
        intelli-monad,
        louter,
        text,
        aeson,
        transformers
    hs-source-dirs:   app
    default-language: Haskell2010

test-suite intelli-monad-test
    -- Import common warning flags.
    import:           warnings

    -- Base language which the package is written in.
    default-language: Haskell2010

    -- Modules included in this executable, other than Main.
    -- other-modules:

    -- LANGUAGE extensions used by modules in this package.
    -- other-extensions:

    -- The interface type and version of the test suite.
    type:             exitcode-stdio-1.0

    -- Directories containing source files.
    hs-source-dirs:   test

    -- The entrypoint to the test suite.
    main-is:          Main.hs

    -- Test dependencies.
    build-depends:
        base ==4.*,
        intelli-monad