Rich.hs 430 B

123456789101112131415161718
  1. {-# LANGUAGE PatternSynonyms #-}
  2. module Data.SCargot.Repr.Rich
  3. ( -- * 'RichSExpr' representation
  4. R.RichSExpr(..)
  5. , R.toRich
  6. , R.fromRich
  7. -- * Useful pattern synonyms
  8. , pattern List
  9. , pattern DotList
  10. , pattern Atom
  11. ) where
  12. import Data.SCargot.Repr as R
  13. pattern Atom a = R.RSAtom a
  14. pattern List xs = R.RSList xs
  15. pattern DotList xs x = R.RSDotted xs x