Permalink
Browse files

Import initial source files for XFormat library.

  • Loading branch information...
0 parents commit 8168319fe2552ef477d9863e45a2eafc9d8c69bc @spl committed Jun 22, 2009
Showing with 993 additions and 0 deletions.
  1. +36 −0 src/Text/XFormat/Common.hs
  2. +490 −0 src/Text/XFormat/Read.hs
  3. +467 −0 src/Text/XFormat/Show.hs
@@ -0,0 +1,36 @@
+
+module Text.XFormat.Common where
+
+data d1 :%: d2 = d1 :%: d2
+ deriving (Eq, Show)
+
+infixr 8 :%:
+
+(%) = (:%:)
+infixr 8 %
+
+
+data CharF = Char
+
+data IntF = Int
+
+data IntegerF = Integer
+
+data FloatF = Float
+
+data DoubleF = Double
+
+data StringF = String
+
+data ShowF a = Show
+
+data ReadF a = Read
+
+data NumF a = Num
+
+data SpaceF = Space
+
+data SpacesF = Spaces Int
+
+data WrapF outer inner = Wrap outer inner outer
+
Oops, something went wrong.

0 comments on commit 8168319

Please sign in to comment.