Proposal: Num instance for (a -> b)
Dannyu NDos
ndospark320 at gmail.com
Sun Nov 11 05:04:23 UTC 2018
I suggest adding this as an orphan instance (Like Show (a -> b)) in a
seperate module (say, Numeric.Function).
2018년 11월 11일 (일) 14:01에 Henning Thielemann <lemming at henning-thielemann.de>님이
작성:
>
> On Sun, 11 Nov 2018, Henning Thielemann wrote:
>
> > On Sat, 10 Nov 2018, Daniel Cartwright wrote:
> >
> >> relevant reddit comment
> >> thread:
> https://www.reddit.com/r/haskell/comments/9vtis5/the_universe_of_discourse_i_hate_the_environment/e9f1lea?utm_so
> >> urce=reddit-android
> >
> >
> https://wiki.haskell.org/index.php?title=Num_instance_for_functions&oldid=36632
> >
> > In short: It would make 2(x+y) no longer a type error but equivalent to
> 2. We
> > would lose a lot of type safety for little syntactic gain.
>
> Btw. before adding more Wat instances please implement the GHC warning
> about such instances:
> https://ghc.haskell.org/trac/ghc/ticket/11796
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20181111/faabf6c6/attachment.html>
More information about the Libraries
mailing list