from-string-1.0.0.2: from-string.cabal
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.37.0.
--
-- see: https://github.com/sol/hpack
name: from-string
version: 1.0.0.2
synopsis: Instances of 'From' for common string types
description: Convenient "sane default" conversion from/to strict ByteString, lazy
ByteString, ByteString Builder, ShortByteString, strict Text, lazy Text, Text
Builder, and String. When the conversions crosses the boundary of the byte
types and the textual types, UTF-8 is assumed.
category: ByteString, Text, String
homepage: https://codeberg.org/xt/from
bug-reports: https://codeberg.org/xt/from/issues
author: XT
maintainer: git@xtendo.org
copyright: Copyright (C) 2024-2025 XT
license: Apache-2.0
license-file: LICENSE
build-type: Simple
extra-source-files:
README.md
CHANGELOG.md
source-repository head
type: git
location: https://codeberg.org/xt/from
flag codegen
description: Enable code generation test
manual: True
default: False
library
exposed-modules:
From.String
other-modules:
From.String.AutoGen
Paths_from_string
hs-source-dirs:
src
ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints
build-depends:
base >=4.2 && <5
, bytestring >=0.11.4.0 && <2
, from >=1.0 && <2
, text >=2.0 && <3
default-language: Haskell2010
test-suite codegen
type: exitcode-stdio-1.0
main-is: Main.hs
other-modules:
Paths_from_string
hs-source-dirs:
codegen
ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints
build-depends:
base >=4.2 && <5
, bytestring >=0.11.4.0 && <2
, from >=1.0 && <2
, rawfilepath >=1.0.1 && <2
, text >=2.0 && <3
, unix >2.7.3 && <3
default-language: Haskell2010
if flag(codegen)
buildable: True
else
buildable: False
test-suite test
type: exitcode-stdio-1.0
main-is: Main.hs
other-modules:
Paths_from_string
hs-source-dirs:
test
ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints
build-depends:
base >=4.2 && <5
, bytestring >=0.11.4.0 && <2
, from >=1.0 && <2
, from-string
, text >=2.0 && <3
default-language: Haskell2010