packages feed

webcolor-labels-0.1.0.0: webcolor-labels.cabal

cabal-version:   3.0

-- Initial package description 'webcolor-labels' generated by
-- 'cabal init'. For further documentation, see:
--   http://haskell.org/cabal/users-guide/
--
-- The name of the package.
name:            webcolor-labels

-- PVP summary:  +-+------- breaking API changes
--               | | +----- non-breaking API additions
--               | | | +--- code changes with no API change
version:         0.1.0.0

-- A short (one-line) description of the package.
synopsis:        Plug-n-play #hex-syntax for your colors

-- A longer description of the package.
description:
  This library contains a small number of helpers that primarily aim
  to help users construct `IsLabel` instances to use @-XOverloadedLabels@
  syntax to construct their color types using widely known web color syntax.

  Plug this library into your code, enable OverloadedLabels and use
  #fff, #1212bc44, and even #fuchsia to create colors.

license:         MPL-2.0
license-file:    LICENSE
author:          Andrei Borzenkov <me@sandwitch.dev>
maintainer:      me@sandwitch.dev
homepage:        https://github.com/haskell-game/webcolor-labels
bug-reports:     https://github.com/haskell-game/webcolor-labels/issues

-- A copyright notice.
-- copyright:
category:        Graphics
build-type:      Simple
extra-doc-files:
  CHANGELOG.md
  README.md

tested-with:     GHC ==9.8.4 || ==9.10.2 || ==9.12.2

source-repository head
  type:     git
  location: https://github.com/haskell-game/webcolor-labels/

common warnings
  ghc-options: -Wall

library
  import:           warnings
  exposed-modules:  WebColor.Labels
  build-depends:    base >=4.16.0.0 && <5.0.0.0
  hs-source-dirs:   src
  default-language: GHC2021

test-suite webcolor-labels-test
  import:           warnings
  default-language: GHC2021
  type:             exitcode-stdio-1.0
  hs-source-dirs:   test
  main-is:          Main.hs
  build-depends:
    , base             >=4.18.2.1
    , tasty
    , tasty-hunit
    , webcolor-labels