hercules-ci-cnix-store-0.3.1.0: Haskell bindings for Nix's libstore
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hercules.CNix.Std.Set

Description

std::set

Documentation

data CStdSet a Source #

Instances

Instances details
HasStdSet a => HasEncapsulation (CStdSet a) (StdSet a) Source # 
Instance details

Defined in Hercules.CNix.Std.Set

newtype StdSet a Source #

Constructors

StdSet (ForeignPtr (CStdSet a)) 

Instances

Instances details
HasStdSet a => HasEncapsulation (CStdSet a) (StdSet a) Source # 
Instance details

Defined in Hercules.CNix.Std.Set

new :: forall a. HasStdSet a => IO (StdSet a) Source #

size :: HasStdSet a => StdSet a -> IO Int Source #

toSet :: (HasStdSetCopyable a, Storable a, Ord a) => StdSet a -> IO (Set a) Source #

fromList :: HasStdSetCopyable a => [a] -> IO (StdSet a) Source #

fromListP :: HasStdSet a => [Ptr a] -> IO (StdSet a) Source #

fromListFP :: (Coercible a' (ForeignPtr a), HasStdSet a) => [a'] -> IO (StdSet a) Source #

toList :: (HasStdSetCopyable a, Storable a) => StdSet a -> IO [a] Source #

insert :: HasStdSetCopyable a => StdSet a -> a -> IO () Source #

insertP :: HasStdSet a => StdSet a -> Ptr a -> IO () Source #

insertFP :: (Coercible a' (ForeignPtr a), HasStdSet a) => StdSet a -> a' -> IO () Source #

toListFP :: (HasStdSet a, HasEncapsulation a b) => StdSet a -> IO [b] Source #