Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
73 lines (65 sloc) 2.85 KB
Name: convertible-text
Version: 0.4.0.2
License: BSD3
Maintainer: Michael Snoyman <michael@snoyman.com>
Author: John Goerzen, Michael Snoyman
Copyright: Copyright (c) 2009-2009 John Goerzen, Copyright (c) 2010-2011 Michael Snoyman
license-file: LICENSE
extra-source-files: utils/genCinstances.hs
homepage: http://github.com/snoyberg/convertible/tree/text
Category: Data, Failure
synopsis: Typeclasses and instances for converting between types (deprecated)
Description:
This is a port of John Goerzen's convertible package, intended to distinguish between conversions which are guaranteed to succeed and those which might fail. It uses the attempt package, which in turn uses the failure package, so that this package is fully compatible with the failure framework.
.
This package currently contains all of the typeclasses and instances for convertible. However, as these features are ported to the convertible package, this package will be left with only the instances for converting to and from text types (String, ByteString (lazy and strict) and Text (lazy and strict).
.
Be aware that conversions to and from bytestrings assume UTF-8 encoding. If a different encoding is desired, you can use a newtype wrapper and declare an instance of @ConvertAttempt@ or @ConvertSuccess@ on it.
.
The main module to import is "Data.Convertible.Text".
Stability: Stable
Build-Type: Simple
Cabal-Version: >=1.2
flag buildtests
description: Build the executable to run unit tests
default: False
flag nolib
description: Skip building the library.
default: False
library
if flag(nolib)
Buildable: False
else
Buildable: True
Build-Depends: base >= 4 && < 5,
old-time >= 1.0.0.2 && < 1.1,
containers >= 0.2.0.1 && < 0.5,
text >= 0.5 && < 0.12,
bytestring >= 0.9.1.4 && < 0.10,
attempt >= 0.3.0 && < 0.4,
template-haskell,
time
GHC-Options: -Wall -fno-warn-orphans
Exposed-Modules: Data.Convertible.Text,
Data.Convertible.Base,
Data.Convertible.Utils,
Data.Convertible.Instances,
Data.Convertible.Instances.C,
Data.Convertible.Instances.Map,
Data.Convertible.Instances.Num,
Data.Convertible.Instances.Time,
Data.Convertible.Instances.Text,
Data.Convertible.Instances.String
executable runtests
if flag(buildtests)
Buildable: True
cpp-options: -DTEST
build-depends: test-framework,
test-framework-quickcheck2,
test-framework-hunit,
HUnit,
QuickCheck >= 2 && < 3
else
Buildable: False
ghc-options: -Wall
main-is: runtests.hs
Something went wrong with that request. Please try again.