[Haskell-cafe] regular-xmlpickler

gbwey9 gbwey9 at gmail.com
Fri Jul 11 22:47:02 UTC 2014


Hi,

I am using a very cool package called regular-xmlpickler.
Does anyone know of a way to skip one level of nesting for nested complex
fields? So I would like to elide that outer/inner Header.

Here is the full code: http://lpaste.net/107362

data User = User
  { name  :: String
  , admin :: Bool
  , dt :: UTCTime
  , header :: Header
  }

data Header = Header
  { header1 :: String
  , header2 :: String
  }

so instead of generating <header> twice

<header>
   <header>
      <header1>abb</header1>
      <header2>abb</header2>
   </header>
</header>

I would like to have it generate this.

   <header>
      <header1>abb</header1>
      <header2>abb</header2>
   </header>


Thanks,
Grant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140711/daa6d671/attachment.html>


More information about the Haskell-Cafe mailing list