Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.haskell > #215
| From | Paul Rubin <no.email@nospam.invalid> |
|---|---|
| Newsgroups | comp.lang.haskell |
| Subject | Re: Can Haskell compare functions? |
| References | <3fafb2e6-b33c-4e98-a694-646c8acc5fe0@wj4g2000pbc.googlegroups.com> <7xehs0auhb.fsf@ruckus.brouhaha.com> <20447649.332.1334742000154.JavaMail.geo-discussion-forums@vbvd13> |
| Date | 2012-04-18 22:23 -0700 |
| Message-ID | <7xty0g47mh.fsf@ruckus.brouhaha.com> (permalink) |
| Organization | Nightsong/Fort GNOX |
Roman W <bloody_rabbit@gazeta.pl> writes: > Could it at least provide a comparison of function *implementations*? > Something like a function pointer comparison in C. Haskell doesn't have object identity, as I think that would break referential transparency. There is a hacky library called "stable names" that might be useable for some such purposes: http://www.haskell.org/ghc/docs/6.12.1/html/libraries/base/System-Mem-StableName.html Stable names live in the IO monad so you can't use them in pure code.
Back to comp.lang.haskell | Previous | Next — Previous in thread | Find similar | Unroll thread
Can Haskell compare functions? ultranewb <pineapple.link@yahoo.com> - 2012-04-06 23:48 -0700
Re: Can Haskell compare functions? Paul Rubin <no.email@nospam.invalid> - 2012-04-07 00:09 -0700
Re: Can Haskell compare functions? Paul Rubin <no.email@nospam.invalid> - 2012-04-07 00:18 -0700
Re: Can Haskell compare functions? Roman W <bloody_rabbit@gazeta.pl> - 2012-04-18 02:40 -0700
Re: Can Haskell compare functions? Paul Rubin <no.email@nospam.invalid> - 2012-04-18 22:23 -0700
csiph-web