packages feed

kb-text-shape-0.1.0.1: kb-text-shape.cabal

cabal-version: 2.2

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

name:           kb-text-shape
version:        0.1.0.1
synopsis:       Unicode segmentation and shaping using kb_text_shape
category:       Font
homepage:       https://github.com/dpwiz/kb-text-shape#readme
bug-reports:    https://github.com/dpwiz/kb-text-shape/issues
author:         IC Rainbow
maintainer:     aenor.realm@gmail.com
copyright:      2025 IC Rainbow
license:        BSD-3-Clause
license-file:   LICENSE
build-type:     Simple
extra-source-files:
    cbits/kb_text_shape.c
    cbits/kb_text_shape.h
    cbits/kb_text_shape.inc
extra-doc-files:
    README.md
    CHANGELOG.md

source-repository head
  type: git
  location: https://github.com/dpwiz/kb-text-shape

flag trace-blocks
  manual: True
  default: False

library
  exposed-modules:
      KB.Text.Shape
      KB.Text.Shape.FFI.Allocator
      KB.Text.Shape.FFI.API.Context
      KB.Text.Shape.FFI.API.Direct
      KB.Text.Shape.FFI.API.Other
      KB.Text.Shape.FFI.API.Segmentation
      KB.Text.Shape.FFI.Enums
      KB.Text.Shape.FFI.Enums.FeatureTag
      KB.Text.Shape.FFI.Enums.Language
      KB.Text.Shape.FFI.Enums.Script
      KB.Text.Shape.FFI.Flags
      KB.Text.Shape.FFI.Handles
      KB.Text.Shape.FFI.Iterators
      KB.Text.Shape.FFI.Structs
      KB.Text.Shape.Font
  other-modules:
      Paths_kb_text_shape
  autogen-modules:
      Paths_kb_text_shape
  hs-source-dirs:
      src
  default-extensions:
      BlockArguments
      DataKinds
      DerivingStrategies
      DuplicateRecordFields
      GeneralizedNewtypeDeriving
      ImplicitParams
      LambdaCase
      NamedFieldPuns
      NoFieldSelectors
      NoFieldSelectors
      OverloadedRecordDot
      OverloadedStrings
      PatternSynonyms
      RecordWildCards
      StrictData
      ViewPatterns
  ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-home-modules -Wredundant-constraints
  cc-options: -Wno-return-local-addr
  include-dirs:
      cbits
  c-sources:
      cbits/kb_text_shape.c
  build-depends:
      base >=4.16 && <5
    , bytestring
    , containers
    , text
  default-language: GHC2021
  if flag(trace-blocks)
    cc-options: -DTRACE_BLOCKS

test-suite kb-text-shape-test
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      Paths_kb_text_shape
  autogen-modules:
      Paths_kb_text_shape
  hs-source-dirs:
      test
  default-extensions:
      BlockArguments
      DataKinds
      DerivingStrategies
      DuplicateRecordFields
      GeneralizedNewtypeDeriving
      ImplicitParams
      LambdaCase
      NamedFieldPuns
      NoFieldSelectors
      NoFieldSelectors
      OverloadedRecordDot
      OverloadedStrings
      PatternSynonyms
      RecordWildCards
      StrictData
      ViewPatterns
  ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-home-modules -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      base >=4.16 && <5
    , bytestring
    , kb-text-shape
    , text
  default-language: GHC2021

benchmark kb-text-shape-bench
  type: exitcode-stdio-1.0
  main-is: Bench.hs
  other-modules:
      Paths_kb_text_shape
  autogen-modules:
      Paths_kb_text_shape
  hs-source-dirs:
      bench
  default-extensions:
      BlockArguments
      DataKinds
      DerivingStrategies
      DuplicateRecordFields
      GeneralizedNewtypeDeriving
      ImplicitParams
      LambdaCase
      NamedFieldPuns
      NoFieldSelectors
      NoFieldSelectors
      OverloadedRecordDot
      OverloadedStrings
      PatternSynonyms
      RecordWildCards
      StrictData
      ViewPatterns
  ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-home-modules -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      base >=4.16 && <5
    , bytestring
    , kb-text-shape
    , text
    , unliftio
  default-language: GHC2021