ipfs-haskell icon indicating copy to clipboard operation
ipfs-haskell copied to clipboard

Provide instances and functions to simplify minimal example

Open tysonzero opened this issue 5 years ago • 1 comments

Currently it's fairly non-trivial to get something minimal working.

Assuming I have ipfs exposed on a local port and/or an ipfs executable in my path, it seems reasonable to be able to import and run something like:

import Network.IPFS
Right cid = fromText "<cid>"
<some function> $ ipfsCat cid

With minimal additional fanfare.

tysonzero avatar Oct 24 '20 03:10 tysonzero

Bump over here.

IMHO, It would be very great if we could have at our disposal in the test folder real examples fully functional (both Remote and Locale endpoint).

I would expect something like this

main = do
  ...
  runRemote ... do 
      ...
      ... 

bhoudebert avatar Mar 06 '22 21:03 bhoudebert