sexpr 0.1 → 0.1.1
raw patch · 4 files changed
+25/−25 lines, 4 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Parser: canonicalSexpr :: ReadP Sexpr
- Parser: instance Read Sexpr
- Parser: readSexpr :: String -> Sexpr
- Parser: sexpr :: ReadP Sexpr
- Printer: advanced :: Sexpr -> Doc
- Printer: advancedString :: Sexpr -> String
- Printer: basic :: Sexpr -> Doc
- Printer: basicString :: Sexpr -> String
- Printer: canonical :: Sexpr -> ShowS
- Printer: canonicalString :: Sexpr -> String
- Printer: instance Show Sexpr
- Sexpr: atom :: String -> Sexpr
- Sexpr: data Sexpr
- Sexpr: defaultHint :: [Char]
- Sexpr: hint :: Sexpr -> Maybe [Char]
- Sexpr: hintedAtom :: [Char] -> String -> Sexpr
- Sexpr: instance Eq Sexpr
- Sexpr: isAtom :: Sexpr -> Bool
- Sexpr: isInitialTokenChar :: Char -> Bool
- Sexpr: isList :: Sexpr -> Bool
- Sexpr: isQuoteableChar :: Char -> Bool
- Sexpr: isTokenChar :: Char -> Bool
- Sexpr: list :: [Sexpr] -> Sexpr
- Sexpr: unAtom :: Sexpr -> String
- Sexpr: unList :: Sexpr -> [Sexpr]
+ Codec.Sexpr: atom :: String -> Sexpr
+ Codec.Sexpr: data Sexpr
+ Codec.Sexpr: defaultHint :: [Char]
+ Codec.Sexpr: hint :: Sexpr -> Maybe [Char]
+ Codec.Sexpr: hintedAtom :: [Char] -> String -> Sexpr
+ Codec.Sexpr: instance Eq Sexpr
+ Codec.Sexpr: isAtom :: Sexpr -> Bool
+ Codec.Sexpr: isInitialTokenChar :: Char -> Bool
+ Codec.Sexpr: isList :: Sexpr -> Bool
+ Codec.Sexpr: isQuoteableChar :: Char -> Bool
+ Codec.Sexpr: isTokenChar :: Char -> Bool
+ Codec.Sexpr: list :: [Sexpr] -> Sexpr
+ Codec.Sexpr: unAtom :: Sexpr -> String
+ Codec.Sexpr: unList :: Sexpr -> [Sexpr]
+ Codec.Sexpr.Parser: canonicalSexpr :: ReadP Sexpr
+ Codec.Sexpr.Parser: instance Read Sexpr
+ Codec.Sexpr.Parser: readSexpr :: String -> Sexpr
+ Codec.Sexpr.Parser: sexpr :: ReadP Sexpr
+ Codec.Sexpr.Printer: advanced :: Sexpr -> Doc
+ Codec.Sexpr.Printer: advancedString :: Sexpr -> String
+ Codec.Sexpr.Printer: basic :: Sexpr -> Doc
+ Codec.Sexpr.Printer: basicString :: Sexpr -> String
+ Codec.Sexpr.Printer: canonical :: Sexpr -> ShowS
+ Codec.Sexpr.Printer: canonicalString :: Sexpr -> String
+ Codec.Sexpr.Printer: instance Show Sexpr
Files
- Codec/Sexpr.hs +12/−12
- Codec/Sexpr/Parser.hs +4/−4
- Codec/Sexpr/Printer.hs +8/−8
- sexpr.cabal +1/−1
Codec/Sexpr.hs view
@@ -1,15 +1,15 @@-module Sexpr (Sexpr,- atom,- hintedAtom,- list,- isAtom,- isList,- hint,- defaultHint,- unAtom,- unList,- isTokenChar,isInitialTokenChar,isQuoteableChar- ) where+module Codec.Sexpr (Sexpr,+ atom,+ hintedAtom,+ list,+ isAtom,+ isList,+ hint,+ defaultHint,+ unAtom,+ unList,+ isTokenChar,isInitialTokenChar,isQuoteableChar+ ) where import Data.Char
Codec/Sexpr/Parser.hs view
@@ -1,8 +1,8 @@-module Parser (readSexpr,- sexpr,- canonicalSexpr) where+module Codec.Sexpr.Parser (readSexpr,+ sexpr,+ canonicalSexpr) where -import Sexpr+import Codec.Sexpr import Data.Char import Text.ParserCombinators.ReadP
Codec/Sexpr/Printer.hs view
@@ -1,9 +1,9 @@-module Printer (canonical, canonicalString,- basic, basicString,- advanced, advancedString- ) where+module Codec.Sexpr.Printer (canonical, canonicalString,+ basic, basicString,+ advanced, advancedString+ ) where -import Sexpr+import Codec.Sexpr import Data.Char import Data.Maybe@@ -20,9 +20,9 @@ canonical :: Sexpr -> ShowS canonical s | isAtom s && hint s == Just defaultHint = raw $ unAtom s canonical s | isAtom s = showString "[" - . raw (fromJust $ hint s)- . showString "]"- . raw (unAtom s)+ . raw (fromJust $ hint s)+ . showString "]"+ . raw (unAtom s) canonical s | isList s = showString "(" . showString (foldr (.) id (map canonical $ unList s) $ "") . showString ")"
sexpr.cabal view
@@ -1,5 +1,5 @@ Name: sexpr-Version: 0.1+Version: 0.1.1 Cabal-Version: >= 1.2 Synopsis: S-expression printer and parser Description: Parser and printer for S-expressions, including Ron