-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nesting: diff (\x -> diff (*x) 1) 1 #60
Comments
I don't know if this is helpful, but this works fine if you use the |
Not entirely.
|
I don't see this issue ever going away with Haskell's notion of |
What would the types of the *^ be?
…On Sun, Feb 14, 2021 at 11:47 PM Edward Kmett ***@***.***> wrote:
I don't see this issue ever going away with Haskell's notion of (*) ::
Num a => a -> a -> a requiring both sides to have the same type. We can
work around it by offering folks auto or (*^) and (^*), but without a
custom numeric prelude that blurs the lines between scalars and vectors and
then only infers forward not backwards, and is literally incompatible with
the desugaring applied to integers, and so is incompatible with literally
all other haskell numerics this seems fundamentally unsolvable.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#60 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAABBQUZ33YVC775QMOIPIDS7CRORANCNFSM4CYOG26Q>
.
|
|
Was showing off nesting, simplest example I could think of, oops.
tldr:
ad
4.3.2.1,ghc
8.0.1,diff (\x -> diff (*x) 1) 1
gets a type error.This happens even without nesting.
and yes, I know
auto
makes it okayBut it's still a pretty big wart on an otherwise lovely countenance.
The text was updated successfully, but these errors were encountered: