packages feed

named-text-1.0.0.0: named-text.cabal

cabal-version:      2.4
name:               named-text
version:            1.0.0.0
synopsis:           A parameterized named text type and associated functionality.
description:
  .
  A plain String or Text is dangerous because it can be arbitrarily combined,
  converted, emitted, and updated without consideration of the validity and
  applicability of the contents and the usage scenario.
  .
  This module provides a Named type wrapper around Text which has two
  additional type parameters: one which indicates what the content of the Text
  represents, and one which indicates the style of the name.
  .
  There are additionally functions and classes which allow conversions and
  transformations between names with different styles and types (or disallow them
  where appropriate).
  .
  The core intent of this library is that the Named is used instead of a raw
  String or Text to provide type-level tracking and safety.

-- bug-reports:
license:            ISC
license-file:       LICENSE
author:             Kevin Quick
maintainer:         kquick@galois.com
copyright:          Galois Inc, 2022
category:           Data
build-type:         Simple
extra-source-files: CHANGELOG.md

source-repository head
  type: git
  location: https://github.com/kquick/named-text

common bldspec
  ghc-options:  -Wall
                -Wcompat
                -Wincomplete-uni-patterns
                -Wsimplifiable-class-constraints
                -Wpartial-fields
                -fhide-source-paths
                -O2
                -flate-specialise
                -fspecialise-aggressively

library
    import:           bldspec
    hs-source-dirs:   .
    default-language: Haskell2010
    build-depends:    base >= 4.10 && < 4.15
                    , deepseq
                    , hashable
                    , prettyprinter >= 1.7.0 && < 1.8
                    , sayable >= 1.0 && < 1.1
                    , text
    exposed-modules:  Data.Name