cabal-version: 2.2
-- * * * * * * * * * * * * WARNING * * * * * * * * * * * *
-- This file has been AUTO-GENERATED by dhall-to-cabal.
--
-- Do not edit it by hand, because your changes will be over-written!
--
-- Instead, edit the source Dhall file, namely
-- 'ffi/codegen/hasktorch-codegen.dhall', and re-generate this file by running
-- 'dhall-to-cabal -- ffi/codegen/hasktorch-codegen.dhall > hasktorch-codegen.cabal'.
-- * * * * * * * * * * * * WARNING * * * * * * * * * * * *
name: hasktorch-codegen
version: 0.0.1.1
license: BSD-3-Clause
maintainer: Sam Stites <fnz@fgvgrf.vb>, Austin Huang <nhfgvau@nyhz.zvg.rqh> - cipher:ROT13
author: Hasktorch dev team
homepage: https://github.com/hasktorch/hasktorch#readme
bug-reports: https://github.com/hasktorch/hasktorch/issues
synopsis: Code generation tools for Hasktorch
description:
    Codegen will generate FFI code which layes the foundation for the Hasktorch library.
category: Tensors, Machine Learning, AI, FFI Tools, Code Generation
build-type: Simple

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

library
    exposed-modules:
        CodeGen.FileMappings
        CodeGen.Parse
        CodeGen.Parse.Cases
        CodeGen.Prelude
        CodeGen.Render
        CodeGen.Render.C
        CodeGen.Render.Function
        CodeGen.Render.Haskell
        CodeGen.Types
        CodeGen.Types.CLI
        CodeGen.Types.HsOutput
        CodeGen.Types.Parsed
    hs-source-dirs: src
    other-modules:
        Paths_hasktorch_codegen
    autogen-modules:
        Paths_hasktorch_codegen
    default-language: Haskell2010
    default-extensions: LambdaCase OverloadedStrings
    build-depends:
        base (==4.7 || >4.7) && <5,
        containers ==0.5.10 || >0.5.10,
        directory ==1.3.0 || >1.3.0,
        hashable ==1.2.7 || >1.2.7,
        megaparsec (==6.0.0 || >6.0.0) && <8.0.0,
        pretty-show ==1.7 || >1.7,
        text ==1.2.2 || >1.2.2,
        unordered-containers ==0.2.9 || >0.2.9

executable ht-codegen
    main-is: Main.hs
    hs-source-dirs: exe
    other-modules:
        CLIOptions
    default-language: Haskell2010
    default-extensions: LambdaCase OverloadedStrings
    build-depends:
        base (==4.7 || >4.7) && <5,
        hasktorch-codegen -any,
        pretty-show ==1.7 || >1.7,
        optparse-applicative ==0.14.2 || >0.14.2

test-suite spec
    type: exitcode-stdio-1.0
    main-is: Spec.hs
    hs-source-dirs: tests
    other-modules:
        CodeGen.Instances
        CodeGen.ParseSpec
        CodeGen.RenderSpec
        CodeGen.Render.CSpec
        CodeGen.Render.FunctionSpec
    default-language: Haskell2010
    default-extensions: LambdaCase OverloadedStrings
    build-depends:
        QuickCheck ==2.11 || >2.11,
        base (==4.7 || >4.7) && <5,
        containers ==0.5.10 || >0.5.10,
        hasktorch-codegen -any,
        hspec ==2.4.4 || >2.4.4,
        hspec-discover ==2.5.0 || >2.5.0,
        megaparsec (==6.0.0 || >6.0.0) && <8.0.0,
        pretty-show ==1.7 || >1.7,
        text ==1.2.2 || >1.2.2