[PATCH 0/3] Implement nand/nor/nany/nall in Data.List

Gregory Collins greg at gregorycollins.net
Thu Feb 27 16:17:24 UTC 2014


Thanks for the patches. This is a -1 vote from me: in general lately the
trend has been against adding shorthand functions that can be expressed as
the trivial combination of a few other combinators, especially in base.


On Thu, Feb 27, 2014 at 7:12 AM, Alexander Berntsen <alexander at plaimi.net>wrote:

> Hi. I'm a complete GHC newbie (and, really, a Haskell newbie still as
> well). To dive in and learn, I hacked together this.
>
> I did it primarily to familiarise myself with GHC workflow, formalities
> and procedures. Things like style conventions, using Trac, learning how
> to build GHC, how the files are structured and so on.
>
> However, my primary intention of learning does not mean that I don't
> find these patches valuable. I'm sick of typing (not . and), and even
> more sick of reading it. I find nand much more intuitive to read.
>
> Herbert told me to send these here since they affect base. I can imagine
> people are vary of putting stuff in base, and certainly prelude. But if
> I seem ignorant and ahistorical, that's because I *am*. So please, if
> there is something wrong with my patches, don't hesitate to educate me.
> Learning the ways of GHC hacking is after all my long-term goal. :-)
>
> Alexander Berntsen (3):
>   Implement nand, nor, nany and nall in Data.List
>   Inline nand, nor, nany and nall
>   Put nand, nor, nany and nall in Prelude
>
>  Data/List.hs |  4 ++++
>  GHC/List.lhs | 38 ++++++++++++++++++++++++++++++++++++--
>  Prelude.hs   |  2 +-
>  changelog.md |  3 +++
>  4 files changed, 44 insertions(+), 3 deletions(-)
>
> --
> 1.8.3.2
>
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
>



-- 
Gregory Collins <greg at gregorycollins.net>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20140227/ec001be2/attachment.html>


More information about the Libraries mailing list