Ver código fonte

Added Basic repr (for avoiding extra imports) and re-exported more from other reprs

Getty Ritter 10 anos atrás
pai
commit
fffccd6025

+ 8 - 0
Data/SCargot/Repr/Basic.hs

@@ -0,0 +1,8 @@
+{-# LANGUAGE PatternSynonyms #-}
+
+module Data.SCargot.Repr.Basic
+       ( -- * Basic 'SExpr' representation
+         R.SExpr(..)
+       ) where
+
+import Data.SCargot.Repr as R

+ 6 - 1
Data/SCargot/Repr/Rich.hs

@@ -1,7 +1,12 @@
 {-# LANGUAGE PatternSynonyms #-}
 
 module Data.SCargot.Repr.Rich
-       ( pattern List
+       ( -- * 'RichSExpr' representation
+         R.RichSExpr(..)
+       , R.toRich
+       , R.fromRich
+         -- * Useful pattern synonyms
+       , pattern List
        , pattern DotList
        , pattern Atom
        ) where

+ 6 - 1
Data/SCargot/Repr/WellFormed.hs

@@ -1,7 +1,12 @@
 {-# LANGUAGE PatternSynonyms #-}
 
 module Data.SCargot.Repr.Rich
-       ( pattern List
+       ( -- * 'WellFormedSExpr' representation
+         R.WellFormedSExpr(..)
+       , R.toWellFormed
+       , R.fromWellFormed
+         -- * Useful pattern synonyms
+       , pattern List
        , pattern Atom
        ) where