ghorn / atmosphere

1976 US Standard Atmosphere in Haskell
5 stars 2 forks source link

only use "data Atmos a", drop (a,a,a,a,a,a) #2

Closed ghorn closed 10 years ago

ghorn commented 10 years ago

I see no reason to use the tuple

dmcclean commented 10 years ago

Agreed. It's lazy either way, which was the only difference I initially thought I saw.

dmcclean commented 10 years ago

The only thing I just thought of was the Functor instance for ad's jacobian, but then I realized that there isn't one for 6-tuples that happen to use the same type variable 6 times either.

And it doesn't matter to my application because I will am using a dimensional-dk wrapper anyway.