<div>Here's a example of Dlist in base: https://github.com/ghc/ghc/blob/master/libraries/base/GHC/Event/PSQ.hs#L468</div><div>And here is in GHC module: https://github.com/ghc/ghc/blob/ba597c1dd1daf9643b72dc7aeace8d6b3fce84eb/utils/mkUserGuidePart/DList.hs</div><div><br></div><div>It's so simple that people often define it with the code it's used, adding it to base can save these key stokes.</div><div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ 原始邮件 ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b> "Ivan Lazar Miljenovic";<ivan.miljenovic@gmail.com>;</div><div><b>发送时间:</b> 2017年6月5日(星期一) 晚上6:21</div><div><b>收件人:</b> "Dr.Koster"<drkoster@qq.com>; <wbr></div><div><b>抄送:</b> "libraries"<libraries@haskell.org>; <wbr></div><div><b>主题:</b> Re: Add DList to base</div></div><div><br></div>On 5 June 2017 at 17:58, Dr.Koster <drkoster@qq.com> wrote:<br>> Currently GHC already defined DList for internal use in serveral places.<br>> This data type is a nature choice when you need CPS your append, which is a<br>> common need. I think base should provide it.<br><br>It depends if GHC defines DList for use with base or not; if it's<br>something that's required to use base that _may_ be a semi-valid use<br>case.<br><br>In general though, as annoying as it is to have to add yet another<br>dependency, build, reload ghci, etc. I prefer to have base to be<br>smaller and packages split up and the dlist package serves admirably.<br>If nothing else, it can iterate faster if a new function needs to be<br>added.<br><br>Call this a weak +0.1(only because of GHC defining it).<br><br>-- <br>Ivan Lazar Miljenovic<br>Ivan.Miljenovic@gmail.com<br>http://IvanMiljenovic.wordpress.com<br></div>