ipfs-1.3.0.2: Access IPFS locally and remotely
Safe HaskellNone
LanguageHaskell2010

Network.IPFS.SparseTree

Synopsis

Documentation

data SparseTree Source #

Directory structure for CIDs and other identifiers

Examples:

Content "abcdef"
show $ Directory [(Key "abcdef", Stub "myfile.txt")])]

"abcdef/myfile.txt"

Instances

Instances details
Eq SparseTree Source # 
Instance details

Defined in Network.IPFS.SparseTree.Types

Show SparseTree Source # 
Instance details

Defined in Network.IPFS.SparseTree.Types

Generic SparseTree Source # 
Instance details

Defined in Network.IPFS.SparseTree.Types

Associated Types

type Rep SparseTree :: Type -> Type #

ToJSON SparseTree Source # 
Instance details

Defined in Network.IPFS.SparseTree.Types

Display SparseTree Source # 
Instance details

Defined in Network.IPFS.SparseTree.Types

ToSchema SparseTree Source # 
Instance details

Defined in Network.IPFS.SparseTree.Types

Display (Map Tag SparseTree) Source # 
Instance details

Defined in Network.IPFS.SparseTree.Types

type Rep SparseTree Source # 
Instance details

Defined in Network.IPFS.SparseTree.Types

type Rep SparseTree = D1 ('MetaData "SparseTree" "Network.IPFS.SparseTree.Types" "ipfs-1.3.0.2-GC56gjACNvM8LSmZ8aMlPs" 'False) (C1 ('MetaCons "Stub" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name)) :+: (C1 ('MetaCons "Content" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CID)) :+: C1 ('MetaCons "Directory" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Tag SparseTree)))))

newtype Linearization Source #

Constructors

NonLinear SparseTree 

Instances

Instances details
Eq Linearization Source # 
Instance details

Defined in Network.IPFS.Error

Show Linearization Source # 
Instance details

Defined in Network.IPFS.Error

Generic Linearization Source # 
Instance details

Defined in Network.IPFS.Error

Associated Types

type Rep Linearization :: Type -> Type #

ToJSON Linearization Source # 
Instance details

Defined in Network.IPFS.Error

Exception Linearization Source # 
Instance details

Defined in Network.IPFS.Error

Display Linearization Source # 
Instance details

Defined in Network.IPFS.Error

type Rep Linearization Source # 
Instance details

Defined in Network.IPFS.Error

type Rep Linearization = D1 ('MetaData "Linearization" "Network.IPFS.Error" "ipfs-1.3.0.2-GC56gjACNvM8LSmZ8aMlPs" 'True) (C1 ('MetaCons "NonLinear" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SparseTree)))

cIDs :: (Monoid (f CID), Applicative f) => SparseTree -> f CID Source #

Get all CIDs from a SparseTree (all levels)