Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 59 lines (47 sloc) 2.07 kb
de0acb5 @spl Import Cabal and Setup files.
authored
1 name: xformat
1a10e1a @spl Update to 'cabal test'
authored
2 version: 0.1.2
c4b5f65 @spl Major updates.
authored
3 synopsis:
4
b3dc587 @spl Update Cabal synopsis.
authored
5 Extensible, type-safe formatting with scanf- and printf-like functions
c4b5f65 @spl Major updates.
authored
6
9cc6419 @spl Simplify URL for homepage.
authored
7 homepage: http://github.com/spl/xformat
de0acb5 @spl Import Cabal and Setup files.
authored
8 description:
9
10 This package is composed of two functions for formatted conversion between
11 strings and typed values. Each is defined as a type-indexed function using a
12 type class with multiple parameters and functional dependencies along with
13 format descriptors.
14 .
15 "Text.XFormat.Read" allows one to parse values from a formatted string. Its
16 functionality is similar to the C @scanf@ function. Unlike @scanf@, however,
17 the format descriptor is well-typed, ensuring that the output type is
18 statically known.
19 .
20 "Text.XFormat.Show" allows one to print values to a formatted string. Its
21 functionality is similar to the C @printf@ function. Unlike @printf@, however,
22 the format descriptor is well-typed, ensuring that the variable number
23 arguments are statically known.
24 .
25 These functions can be easily extended to support new formats and new types.
26 Extension is simple: define a format descriptor and an instance of the
27 appropriate class.
28
8162535 @spl Add Generics category to Cabal file.
authored
29 category: Text, Generics
cf2826c @spl Update information, GHC version, test suite
authored
30 copyright: (c) 2009-2014 Sean Leather
de0acb5 @spl Import Cabal and Setup files.
authored
31 license: BSD3
32 license-file: LICENSE
71bb253 @spl Remove extraneous comma.
authored
33 author: Sean Leather
cf2826c @spl Update information, GHC version, test suite
authored
34 maintainer: sean.leather@gmail.com
de0acb5 @spl Import Cabal and Setup files.
authored
35 stability: experimental
1a10e1a @spl Update to 'cabal test'
authored
36 build-type: Simple
37 cabal-version: >= 1.9.2
cf2826c @spl Update information, GHC version, test suite
authored
38 tested-with: GHC == 6.8.3, GHC == 6.10.1, GHC == 7.4.1, GHC == 7.6.3
de0acb5 @spl Import Cabal and Setup files.
authored
39
40 --------------------------------------------------------------------------------
41
42 Library
43 hs-source-dirs: src
44
45 exposed-modules: Text.XFormat.Read
46 Text.XFormat.Show
47
48 build-depends: base >= 3.0 && < 5.0
49
50 ghc-options: -Wall -O2
51
1a10e1a @spl Update to 'cabal test'
authored
52 Test-Suite test
53 type: exitcode-stdio-1.0
cf2826c @spl Update information, GHC version, test suite
authored
54 hs-source-dirs: test
1a10e1a @spl Update to 'cabal test'
authored
55 main-is: Main.hs
cf2826c @spl Update information, GHC version, test suite
authored
56 build-depends: base >= 3.0 && < 5.0,
57 xformat
1a10e1a @spl Update to 'cabal test'
authored
58
Something went wrong with that request. Please try again.