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

Johan Tibell johan.tibell at gmail.com
Thu Feb 27 17:26:11 UTC 2014


Hi Alexander,

Glad to see your getting familiar with GHC. :)

Unfortunately I will have to agree with the other comments in this thread
that adding these simple compositions isn't really worth it (especially not
in the Prelude.)


On Thu, Feb 27, 2014 at 4:12 PM, 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20140227/141826ff/attachment.html>


More information about the Libraries mailing list