summaryrefslogtreecommitdiff
path: root/libraries/base/tools/ucd2haskell/ucd2haskell.cabal
blob: 79460935b1a99c5ec0d1127850b851f33ec2ce7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
cabal-version:       2.2
name:                ucd2haskell
version:             0.3.0
synopsis:            Converter from Unicode character database to Haskell.
description:
  The Haskell data structures are generated programmatically from the
  Unicode character database (UCD) files.

  Adapted from <https://github.com/composewell/unicode-data>.
license:             BSD-3-Clause
license-file:        LICENSE
author:              Composewell Technologies and Contributors
maintainer:          streamly@composewell.com
copyright:           2020 Composewell Technologies and Contributors
category:            Data,Text,Unicode
stability:           Experimental
build-type:          Simple
tested-with:         GHC==9.2.2

extra-source-files:
    README.md
    ucd.sh

common default-extensions
  default-extensions:
      BangPatterns
      DeriveGeneric
      MagicHash
      RecordWildCards
      ScopedTypeVariables
      TupleSections
      FlexibleContexts

      -- Experimental, may lead to issues
      DeriveAnyClass
      TemplateHaskell
      UnboxedTuples

common compile-options
  ghc-options: -Wall
               -fwarn-identities
               -fwarn-incomplete-record-updates
               -fwarn-incomplete-uni-patterns
               -fwarn-tabs
  default-language: Haskell2010

executable ucd2haskell
  import: default-extensions, compile-options
  default-language: Haskell2010
  ghc-options: -O2
  hs-source-dirs: exe
  main-is: UCD2Haskell.hs
  other-modules: Parser.Text
  build-depends:
      base             >= 4.7   && < 4.17
    , streamly         >= 0.8   && < 0.9
    , split            >= 0.2.3 && < 0.3
    , getopt-generics  >= 0.13  && < 0.14
    , containers       >= 0.5   && < 0.7
    , directory        >= 1.3.6 && < 1.3.7
    , filepath         >= 1.4.2 && < 1.5