arrayfire / arrayfire-haskell

Haskell bindings to ArrayFire
http://hackage.haskell.org/package/arrayfire
BSD 3-Clause "New" or "Revised" License
59 stars 5 forks source link

Example which compiles #33

Closed danielkroeni closed 4 years ago

danielkroeni commented 4 years ago

I'm not sure about this proposal. But I prefer examples that compile. Although I also see how this change distracts from the essence.

dmjio commented 4 years ago

I think part of the problem is that my .ghci had some extra imports that I wasn't taking into account when writing the examples.

:set prompt "\x03BB> "                                                                                                                                                                                          
:set -XTypeApplications                                                                                                                                                                                        
:load ArrayFire                                                                                                                                                                                                 
:m - ArrayFire                                                                                                                                                                                                  
import qualified ArrayFire as A                                                                                                                                                                                 
:set -laf                                                                                                                                                                                                       

And some things were added after the fact. This is a definite positive addition. Thank you.