<div dir="ltr"><div>One question:<br></div>Since it works with putStrLn, can I simulate the behaviour of putStrLn without actually... printing anything? As a workaround...<br><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Jan 13, 2014 at 12:40 AM, Corentin Dupont <span dir="ltr"><<a href="mailto:corentin.dupont@gmail.com" target="_blank">corentin.dupont@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div><div>I doesn't seems to be easy, either with deepseq-th or  deepseq-generic...<br></div>With  deepseq-generic, the derivation of Generic doesn't work because I'm using a GATD.<br>
</div>
It says <i>"NewVar must be a vanilla data constructor"</i>.<br><br></div>For deepseq-th, I have this error:<br>    <i>deriveNFData: 'forall' not supported in constructor declaration<br></i></div><div>I have some complex data constructor...<br>

</div><div><br><br></div>So it looks like both  deepseq-th and deepseq-generic are out of the game :((<br><br><br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 13, 2014 at 12:08 AM, Erik de Castro Lopo <span dir="ltr"><<a href="mailto:mle+hs@mega-nerd.com" target="_blank">mle+hs@mega-nerd.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>James ‘Twey’ Kay wrote:<br>
<br>
> You can (probably) automatically derive it via Template Haskell using<br>
> the deepseq-th package:<br>
><br>
>      {-# LANGUAGE TemplateHaskell #-}<br>
>      import <a href="http://Control.DeepSeq.TH" target="_blank">Control.DeepSeq.TH</a><br>
><br>
>      data MyState = ...<br>
><br>
>      $(deriveNFData ''MyState)<br>
<br>
</div>In most cases where you think<br>
<br>
You should probably try the deepseq-generics package before you try deepseq-th.<br>
<br>
The generics version was suggested to me by the author of the TH version,<br>
Herbert Valerio Riedel. It seems to be just as fast as the TH version and<br>
doesn't require TH.<br>
<br>
Cheers,<br>
Erik<br>
<span><font color="#888888">--<br>
----------------------------------------------------------------------<br>
Erik de Castro Lopo<br>
<a href="http://www.mega-nerd.com/" target="_blank">http://www.mega-nerd.com/</a><br>
</font></span><div><div>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>