Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 56 lines (45 sloc) 2.016 kb
de0acb5 @spl Import Cabal and Setup files.
authored
1 name: xformat
2 version: 0.1
c4b5f65 @spl Major updates.
authored
3 synopsis:
4
5 Extensible scanf- and printf-like functions for well-typed formatted reading
6 and showing
7
de0acb5 @spl Import Cabal and Setup files.
authored
8 homepage: http://github.com/spl/xformat/tree/master
9 description:
10
c4b5f65 @spl Major updates.
authored
11 /Warning:/ This version of the package is very experimental and the interface
12 may change in later versions. I am seeking comments to improve it.
13 .
de0acb5 @spl Import Cabal and Setup files.
authored
14 This package is composed of two functions for formatted conversion between
15 strings and typed values. Each is defined as a type-indexed function using a
16 type class with multiple parameters and functional dependencies along with
17 format descriptors.
18 .
19 "Text.XFormat.Read" allows one to parse values from a formatted string. Its
20 functionality is similar to the C @scanf@ function. Unlike @scanf@, however,
21 the format descriptor is well-typed, ensuring that the output type is
22 statically known.
23 .
24 "Text.XFormat.Show" allows one to print values to a formatted string. Its
25 functionality is similar to the C @printf@ function. Unlike @printf@, however,
26 the format descriptor is well-typed, ensuring that the variable number
27 arguments are statically known.
28 .
29 These functions can be easily extended to support new formats and new types.
30 Extension is simple: define a format descriptor and an instance of the
31 appropriate class.
32
8162535 @spl Add Generics category to Cabal file.
authored
33 category: Text, Generics
de0acb5 @spl Import Cabal and Setup files.
authored
34 copyright: (c) 2009 Sean Leather
35 license: BSD3
36 license-file: LICENSE
37 author: Sean Leather,
38 maintainer: leather@cs.uu.nl
39 stability: experimental
40 build-type: Custom
41 cabal-version: >= 1.2.1
42 tested-with: GHC == 6.8.3, GHC == 6.10.1
43
44 --------------------------------------------------------------------------------
45
46 Library
47 hs-source-dirs: src
48
49 exposed-modules: Text.XFormat.Read
50 Text.XFormat.Show
51
52 build-depends: base >= 3.0 && < 5.0
53
54 ghc-options: -Wall -O2
55
Something went wrong with that request. Please try again.