cabal-version:      2.4
name:               word-compat
version:            0.0.6

-- A short (one-line) description of the package.
synopsis: Compatibility shim for the Int/Word internal change in GHC 9.2

-- A longer description of the package.
description: This package offers a workaround for the breaking change in Word/Int. Import GHC.Word.Compat in place of GHC.Word to take effect.

-- A URL where users can report bugs.
-- bug-reports:

-- The license under which the package is released.
license:            BSD-3-Clause
author:             Fumiaki Kinoshita
maintainer:         fumiexcel@gmail.com

-- A copyright notice.
copyright: Copyright (c) 2022 Fumiaki Kinoshita
category: Data
extra-source-files: CHANGELOG.md

source-repository head
  type: git
  location: git@github.com:fumieval/word-compat

library
    exposed-modules:
        GHC.Word.Compat
        GHC.Int.Compat
        GHC.Prim.Compat

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

    -- LANGUAGE extensions used by modules in this package.
    -- other-extensions:
    build-depends:    base >= 4.9 && <5, ghc-prim
    hs-source-dirs:   src
    ghc-options: -Wall -Wcompat
    default-language: Haskell2010

test-suite test
    main-is: test.hs
    hs-source-dirs: tests
    type: exitcode-stdio-1.0
    ghc-options: -Wall -Wcompat
    build-depends:
      base, word-compat
    default-language: Haskell2010