riak-1.1.2.6: A Haskell client for the Riak decentralized data store

Copyright(c) 2016 Sentenai
Safe HaskellNone
LanguageHaskell98

Network.Riak.CRDT.Types

Contents

Description

Author: Antonio Nikishaev me@lelf.lu License: Apache Maintainer: Tim McGilchrist timmcgil@gmail.com, Mark Hibberd mark@hibberd.id.au Stability: experimental Portability: portable

Haskell-side view of CRDT

Synopsis

Types

data DataType Source #

CRDT ADT.

get operations return value of this type

Instances
Eq DataType Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Show DataType Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Generic DataType Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Associated Types

type Rep DataType :: Type -> Type #

Methods

from :: DataType -> Rep DataType x #

to :: Rep DataType x -> DataType #

NFData DataType Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

rnf :: DataType -> () #

type Rep DataType Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Counters

newtype Counter Source #

CRDT Counter hold a integer Count

>>> Counter 42

Constructors

Counter Count 
Instances
Eq Counter Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

(==) :: Counter -> Counter -> Bool #

(/=) :: Counter -> Counter -> Bool #

Num Counter Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Ord Counter Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Show Counter Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Generic Counter Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Associated Types

type Rep Counter :: Type -> Type #

Methods

from :: Counter -> Rep Counter x #

to :: Rep Counter x -> Counter #

Semigroup Counter Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Monoid Counter Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Default Counter Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

def :: Counter #

NFData Counter Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

rnf :: Counter -> () #

CRDT Counter CounterOp Source # 
Instance details

Defined in Network.Riak.CRDT

type Rep Counter Source # 
Instance details

Defined in Network.Riak.CRDT.Types

type Rep Counter = D1 (MetaData "Counter" "Network.Riak.CRDT.Types" "riak-1.1.2.6-4pln7ObZDPn7ODFUTrYXyq" True) (C1 (MetaCons "Counter" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Count)))

Modification

data CounterOp Source #

Counters can be incremented/decremented

>>> CounterInc 1

Constructors

CounterInc !Count 

Sets

newtype Set Source #

CRDT Set is a Data.Set

>>> Set (Data.Set.fromList ["foo","bar"])

Constructors

Set (Set ByteString) 
Instances
Eq Set Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

(==) :: Set -> Set -> Bool #

(/=) :: Set -> Set -> Bool #

Ord Set Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

compare :: Set -> Set -> Ordering #

(<) :: Set -> Set -> Bool #

(<=) :: Set -> Set -> Bool #

(>) :: Set -> Set -> Bool #

(>=) :: Set -> Set -> Bool #

max :: Set -> Set -> Set #

min :: Set -> Set -> Set #

Show Set Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

showsPrec :: Int -> Set -> ShowS #

show :: Set -> String #

showList :: [Set] -> ShowS #

Generic Set Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Associated Types

type Rep Set :: Type -> Type #

Methods

from :: Set -> Rep Set x #

to :: Rep Set x -> Set #

Semigroup Set Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

(<>) :: Set -> Set -> Set #

sconcat :: NonEmpty Set -> Set #

stimes :: Integral b => b -> Set -> Set #

Monoid Set Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

mempty :: Set #

mappend :: Set -> Set -> Set #

mconcat :: [Set] -> Set #

Default Set Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

def :: Set #

NFData Set Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

rnf :: Set -> () #

CRDT Set SetOp Source # 
Instance details

Defined in Network.Riak.CRDT

Methods

modify :: SetOp -> Set -> Set Source #

sendModify :: Connection -> BucketType -> Bucket -> Key -> [SetOp] -> IO () Source #

type Rep Set Source # 
Instance details

Defined in Network.Riak.CRDT.Types

type Rep Set = D1 (MetaData "Set" "Network.Riak.CRDT.Types" "riak-1.1.2.6-4pln7ObZDPn7ODFUTrYXyq" True) (C1 (MetaCons "Set" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Set ByteString))))

Modification

data SetOp Source #

CRDT Set operations

Constructors

SetAdd ByteString

add element to the set

>>> SetAdd "foo"
SetRemove ByteString

remove element from the set

>>> SetRemove "bar"
Instances
Eq SetOp Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

(==) :: SetOp -> SetOp -> Bool #

(/=) :: SetOp -> SetOp -> Bool #

Show SetOp Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

showsPrec :: Int -> SetOp -> ShowS #

show :: SetOp -> String #

showList :: [SetOp] -> ShowS #

CRDT Set SetOp Source # 
Instance details

Defined in Network.Riak.CRDT

Methods

modify :: SetOp -> Set -> Set Source #

sendModify :: Connection -> BucketType -> Bucket -> Key -> [SetOp] -> IO () Source #

Maps

newtype Map Source #

CRDT Map is a Data.Map indexed by MapField and holding MapEntry.

Maps are specials in a way that they can additionally hold Flags, Registers, and most importantly, other Maps.

Constructors

Map MapContent 
Instances
Eq Map Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

(==) :: Map -> Map -> Bool #

(/=) :: Map -> Map -> Bool #

Show Map Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

showsPrec :: Int -> Map -> ShowS #

show :: Map -> String #

showList :: [Map] -> ShowS #

Generic Map Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Associated Types

type Rep Map :: Type -> Type #

Methods

from :: Map -> Rep Map x #

to :: Rep Map x -> Map #

Default Map Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

def :: Map #

NFData Map Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

rnf :: Map -> () #

CRDT Map MapOp Source # 
Instance details

Defined in Network.Riak.CRDT

Methods

modify :: MapOp -> Map -> Map Source #

sendModify :: Connection -> BucketType -> Bucket -> Key -> [MapOp] -> IO () Source #

type Rep Map Source # 
Instance details

Defined in Network.Riak.CRDT.Types

type Rep Map = D1 (MetaData "Map" "Network.Riak.CRDT.Types" "riak-1.1.2.6-4pln7ObZDPn7ODFUTrYXyq" True) (C1 (MetaCons "Map" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 MapContent)))

data MapField Source #

CRDT Map is indexed by MapField, which is a name tagged by a type (there may be different entries with the same name, but different types)

Instances
Eq MapField Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Ord MapField Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Show MapField Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Generic MapField Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Associated Types

type Rep MapField :: Type -> Type #

Methods

from :: MapField -> Rep MapField x #

to :: Rep MapField x -> MapField #

NFData MapField Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

rnf :: MapField -> () #

type Rep MapField Source # 
Instance details

Defined in Network.Riak.CRDT.Types

data MapEntry Source #

CRDT Map holds values of type MapEntry

Instances
Eq MapEntry Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Show MapEntry Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Generic MapEntry Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Associated Types

type Rep MapEntry :: Type -> Type #

Methods

from :: MapEntry -> Rep MapEntry x #

to :: Rep MapEntry x -> MapEntry #

NFData MapEntry Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

rnf :: MapEntry -> () #

type Rep MapEntry Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Inspection

xlookup :: MapPath -> MapEntryTag -> Map -> Maybe MapEntry Source #

Lookup a value of a given MapEntryTag type on a given MapPath inside a map

>>> lookup ("a" -/ "b") MapFlagTag $ { "a"/Map: { "b"/Flag: Flag False } } -- pseudo
Just (MapFlag (Flag False))

Modification

data MapOp Source #

map operations It's easier to use mapUpdate:

>>> "x" -/ "y" -/ "z" `mapUpdate` SetAdd "elem"
MapUpdate (MapPath ("x" :| ["y","z"])) (MapCounterOp (CounterInc 1))

Constructors

MapRemove MapField

remove value in map

MapUpdate MapPath MapValueOp

update value on path by operation

Instances
Eq MapOp Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

(==) :: MapOp -> MapOp -> Bool #

(/=) :: MapOp -> MapOp -> Bool #

Show MapOp Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

showsPrec :: Int -> MapOp -> ShowS #

show :: MapOp -> String #

showList :: [MapOp] -> ShowS #

CRDT Map MapOp Source # 
Instance details

Defined in Network.Riak.CRDT

Methods

modify :: MapOp -> Map -> Map Source #

sendModify :: Connection -> BucketType -> Bucket -> Key -> [MapOp] -> IO () Source #

newtype MapPath Source #

Selector (“xpath”) inside Map

Constructors

MapPath (NonEmpty ByteString) 
Instances
Eq MapPath Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

(==) :: MapPath -> MapPath -> Bool #

(/=) :: MapPath -> MapPath -> Bool #

Show MapPath Source # 
Instance details

Defined in Network.Riak.CRDT.Types

IsString MapPath Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

fromString :: String -> MapPath #

data MapValueOp Source #

Operations on map values

Instances
Eq MapValueOp Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Show MapValueOp Source # 
Instance details

Defined in Network.Riak.CRDT.Types

mapUpdate :: IsMapOp o => MapPath -> o -> MapOp infixr 5 Source #

Registers

newtype Register Source #

Registers can only be held as a Map element.

Register holds a ByteString.

Constructors

Register ByteString 
Instances
Eq Register Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Show Register Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Generic Register Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Associated Types

type Rep Register :: Type -> Type #

Methods

from :: Register -> Rep Register x #

to :: Rep Register x -> Register #

Semigroup Register Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Monoid Register Source #

Last-wins monoid for Register

Instance details

Defined in Network.Riak.CRDT.Types

Default Register Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

def :: Register #

NFData Register Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

rnf :: Register -> () #

type Rep Register Source # 
Instance details

Defined in Network.Riak.CRDT.Types

type Rep Register = D1 (MetaData "Register" "Network.Riak.CRDT.Types" "riak-1.1.2.6-4pln7ObZDPn7ODFUTrYXyq" True) (C1 (MetaCons "Register" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ByteString)))

Modification

data RegisterOp Source #

Registers can be set to a value

>>> RegisterSet "foo"

Constructors

RegisterSet !ByteString 
Instances
Eq RegisterOp Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Show RegisterOp Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Flags

newtype Flag Source #

Flags can only be held as a Map element.

Flag can be set or unset

>>> Flag False

Constructors

Flag Bool 
Instances
Eq Flag Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

(==) :: Flag -> Flag -> Bool #

(/=) :: Flag -> Flag -> Bool #

Ord Flag Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

compare :: Flag -> Flag -> Ordering #

(<) :: Flag -> Flag -> Bool #

(<=) :: Flag -> Flag -> Bool #

(>) :: Flag -> Flag -> Bool #

(>=) :: Flag -> Flag -> Bool #

max :: Flag -> Flag -> Flag #

min :: Flag -> Flag -> Flag #

Show Flag Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

showsPrec :: Int -> Flag -> ShowS #

show :: Flag -> String #

showList :: [Flag] -> ShowS #

Generic Flag Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Associated Types

type Rep Flag :: Type -> Type #

Methods

from :: Flag -> Rep Flag x #

to :: Rep Flag x -> Flag #

Semigroup Flag Source #

Last-wins semigroup for Flag

Instance details

Defined in Network.Riak.CRDT.Types

Methods

(<>) :: Flag -> Flag -> Flag #

sconcat :: NonEmpty Flag -> Flag #

stimes :: Integral b => b -> Flag -> Flag #

Monoid Flag Source #

Last-wins monoid for Flag

Instance details

Defined in Network.Riak.CRDT.Types

Methods

mempty :: Flag #

mappend :: Flag -> Flag -> Flag #

mconcat :: [Flag] -> Flag #

Default Flag Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

def :: Flag #

NFData Flag Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

rnf :: Flag -> () #

type Rep Flag Source # 
Instance details

Defined in Network.Riak.CRDT.Types

type Rep Flag = D1 (MetaData "Flag" "Network.Riak.CRDT.Types" "riak-1.1.2.6-4pln7ObZDPn7ODFUTrYXyq" True) (C1 (MetaCons "Flag" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool)))

Modification

data FlagOp Source #

Flags can be enabled / disabled

>>> FlagSet True

Constructors

FlagSet !Bool 
Instances
Eq FlagOp Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

(==) :: FlagOp -> FlagOp -> Bool #

(/=) :: FlagOp -> FlagOp -> Bool #

Show FlagOp Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Misc

data NonEmpty a #

Non-empty (and non-strict) list type.

Since: base-4.9.0.0

Constructors

a :| [a] infixr 5 
Instances
Monad NonEmpty

Since: base-4.9.0.0

Instance details

Defined in GHC.Base

Methods

(>>=) :: NonEmpty a -> (a -> NonEmpty b) -> NonEmpty b #

(>>) :: NonEmpty a -> NonEmpty b -> NonEmpty b #

return :: a -> NonEmpty a #

fail :: String -> NonEmpty a #

Functor NonEmpty

Since: base-4.9.0.0

Instance details

Defined in GHC.Base

Methods

fmap :: (a -> b) -> NonEmpty a -> NonEmpty b #

(<$) :: a -> NonEmpty b -> NonEmpty a #

Applicative NonEmpty

Since: base-4.9.0.0

Instance details

Defined in GHC.Base

Methods

pure :: a -> NonEmpty a #

(<*>) :: NonEmpty (a -> b) -> NonEmpty a -> NonEmpty b #

liftA2 :: (a -> b -> c) -> NonEmpty a -> NonEmpty b -> NonEmpty c #

(*>) :: NonEmpty a -> NonEmpty b -> NonEmpty b #

(<*) :: NonEmpty a -> NonEmpty b -> NonEmpty a #

Foldable NonEmpty

Since: base-4.9.0.0

Instance details

Defined in Data.Foldable

Methods

fold :: Monoid m => NonEmpty m -> m #

foldMap :: Monoid m => (a -> m) -> NonEmpty a -> m #

foldr :: (a -> b -> b) -> b -> NonEmpty a -> b #

foldr' :: (a -> b -> b) -> b -> NonEmpty a -> b #

foldl :: (b -> a -> b) -> b -> NonEmpty a -> b #

foldl' :: (b -> a -> b) -> b -> NonEmpty a -> b #

foldr1 :: (a -> a -> a) -> NonEmpty a -> a #

foldl1 :: (a -> a -> a) -> NonEmpty a -> a #

toList :: NonEmpty a -> [a] #

null :: NonEmpty a -> Bool #

length :: NonEmpty a -> Int #

elem :: Eq a => a -> NonEmpty a -> Bool #

maximum :: Ord a => NonEmpty a -> a #

minimum :: Ord a => NonEmpty a -> a #

sum :: Num a => NonEmpty a -> a #

product :: Num a => NonEmpty a -> a #

Traversable NonEmpty

Since: base-4.9.0.0

Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f => (a -> f b) -> NonEmpty a -> f (NonEmpty b) #

sequenceA :: Applicative f => NonEmpty (f a) -> f (NonEmpty a) #

mapM :: Monad m => (a -> m b) -> NonEmpty a -> m (NonEmpty b) #

sequence :: Monad m => NonEmpty (m a) -> m (NonEmpty a) #

ToJSON1 NonEmpty 
Instance details

Defined in Data.Aeson.Types.ToJSON

Methods

liftToJSON :: (a -> Value) -> ([a] -> Value) -> NonEmpty a -> Value #

liftToJSONList :: (a -> Value) -> ([a] -> Value) -> [NonEmpty a] -> Value #

liftToEncoding :: (a -> Encoding) -> ([a] -> Encoding) -> NonEmpty a -> Encoding #

liftToEncodingList :: (a -> Encoding) -> ([a] -> Encoding) -> [NonEmpty a] -> Encoding #

FromJSON1 NonEmpty 
Instance details

Defined in Data.Aeson.Types.FromJSON

Methods

liftParseJSON :: (Value -> Parser a) -> (Value -> Parser [a]) -> Value -> Parser (NonEmpty a) #

liftParseJSONList :: (Value -> Parser a) -> (Value -> Parser [a]) -> Value -> Parser [NonEmpty a] #

Eq1 NonEmpty

Since: base-4.10.0.0

Instance details

Defined in Data.Functor.Classes

Methods

liftEq :: (a -> b -> Bool) -> NonEmpty a -> NonEmpty b -> Bool #

Ord1 NonEmpty

Since: base-4.10.0.0

Instance details

Defined in Data.Functor.Classes

Methods

liftCompare :: (a -> b -> Ordering) -> NonEmpty a -> NonEmpty b -> Ordering #

Read1 NonEmpty

Since: base-4.10.0.0

Instance details

Defined in Data.Functor.Classes

Methods

liftReadsPrec :: (Int -> ReadS a) -> ReadS [a] -> Int -> ReadS (NonEmpty a) #

liftReadList :: (Int -> ReadS a) -> ReadS [a] -> ReadS [NonEmpty a] #

liftReadPrec :: ReadPrec a -> ReadPrec [a] -> ReadPrec (NonEmpty a) #

liftReadListPrec :: ReadPrec a -> ReadPrec [a] -> ReadPrec [NonEmpty a] #

Show1 NonEmpty

Since: base-4.10.0.0

Instance details

Defined in Data.Functor.Classes

Methods

liftShowsPrec :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> Int -> NonEmpty a -> ShowS #

liftShowList :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> [NonEmpty a] -> ShowS #

NFData1 NonEmpty

Since: deepseq-1.4.3.0

Instance details

Defined in Control.DeepSeq

Methods

liftRnf :: (a -> ()) -> NonEmpty a -> () #

IsList (NonEmpty a)

Since: base-4.9.0.0

Instance details

Defined in GHC.Exts

Associated Types

type Item (NonEmpty a) :: Type #

Methods

fromList :: [Item (NonEmpty a)] -> NonEmpty a #

fromListN :: Int -> [Item (NonEmpty a)] -> NonEmpty a #

toList :: NonEmpty a -> [Item (NonEmpty a)] #

Eq a => Eq (NonEmpty a)

Since: base-4.9.0.0

Instance details

Defined in GHC.Base

Methods

(==) :: NonEmpty a -> NonEmpty a -> Bool #

(/=) :: NonEmpty a -> NonEmpty a -> Bool #

Data a => Data (NonEmpty a)

Since: base-4.9.0.0

Instance details

Defined in Data.Data

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> NonEmpty a -> c (NonEmpty a) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (NonEmpty a) #

toConstr :: NonEmpty a -> Constr #

dataTypeOf :: NonEmpty a -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (NonEmpty a)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (NonEmpty a)) #

gmapT :: (forall b. Data b => b -> b) -> NonEmpty a -> NonEmpty a #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> NonEmpty a -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> NonEmpty a -> r #

gmapQ :: (forall d. Data d => d -> u) -> NonEmpty a -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> NonEmpty a -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> NonEmpty a -> m (NonEmpty a) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> NonEmpty a -> m (NonEmpty a) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> NonEmpty a -> m (NonEmpty a) #

Ord a => Ord (NonEmpty a)

Since: base-4.9.0.0

Instance details

Defined in GHC.Base

Methods

compare :: NonEmpty a -> NonEmpty a -> Ordering #

(<) :: NonEmpty a -> NonEmpty a -> Bool #

(<=) :: NonEmpty a -> NonEmpty a -> Bool #

(>) :: NonEmpty a -> NonEmpty a -> Bool #

(>=) :: NonEmpty a -> NonEmpty a -> Bool #

max :: NonEmpty a -> NonEmpty a -> NonEmpty a #

min :: NonEmpty a -> NonEmpty a -> NonEmpty a #

Read a => Read (NonEmpty a)

Since: base-4.11.0.0

Instance details

Defined in GHC.Read

Show a => Show (NonEmpty a)

Since: base-4.11.0.0

Instance details

Defined in GHC.Show

Methods

showsPrec :: Int -> NonEmpty a -> ShowS #

show :: NonEmpty a -> String #

showList :: [NonEmpty a] -> ShowS #

Generic (NonEmpty a) 
Instance details

Defined in GHC.Generics

Associated Types

type Rep (NonEmpty a) :: Type -> Type #

Methods

from :: NonEmpty a -> Rep (NonEmpty a) x #

to :: Rep (NonEmpty a) x -> NonEmpty a #

Semigroup (NonEmpty a)

Since: base-4.9.0.0

Instance details

Defined in GHC.Base

Methods

(<>) :: NonEmpty a -> NonEmpty a -> NonEmpty a #

sconcat :: NonEmpty (NonEmpty a) -> NonEmpty a #

stimes :: Integral b => b -> NonEmpty a -> NonEmpty a #

Hashable a => Hashable (NonEmpty a) 
Instance details

Defined in Data.Hashable.Class

Methods

hashWithSalt :: Int -> NonEmpty a -> Int #

hash :: NonEmpty a -> Int #

ToJSON a => ToJSON (NonEmpty a) 
Instance details

Defined in Data.Aeson.Types.ToJSON

FromJSON a => FromJSON (NonEmpty a) 
Instance details

Defined in Data.Aeson.Types.FromJSON

NFData a => NFData (NonEmpty a)

Since: deepseq-1.4.2.0

Instance details

Defined in Control.DeepSeq

Methods

rnf :: NonEmpty a -> () #

Generic1 NonEmpty 
Instance details

Defined in GHC.Generics

Associated Types

type Rep1 NonEmpty :: k -> Type #

Methods

from1 :: NonEmpty a -> Rep1 NonEmpty a #

to1 :: Rep1 NonEmpty a -> NonEmpty a #

type Rep (NonEmpty a)

Since: base-4.6.0.0

Instance details

Defined in GHC.Generics

type Item (NonEmpty a) 
Instance details

Defined in GHC.Exts

type Item (NonEmpty a) = a
type Rep1 NonEmpty

Since: base-4.6.0.0

Instance details

Defined in GHC.Generics

data MapEntryTag Source #

Instances
Eq MapEntryTag Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Ord MapEntryTag Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Show MapEntryTag Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Generic MapEntryTag Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Associated Types

type Rep MapEntryTag :: Type -> Type #

NFData MapEntryTag Source # 
Instance details

Defined in Network.Riak.CRDT.Types

Methods

rnf :: MapEntryTag -> () #

type Rep MapEntryTag Source # 
Instance details

Defined in Network.Riak.CRDT.Types

type Rep MapEntryTag = D1 (MetaData "MapEntryTag" "Network.Riak.CRDT.Types" "riak-1.1.2.6-4pln7ObZDPn7ODFUTrYXyq" False) ((C1 (MetaCons "MapCounterTag" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "MapSetTag" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "MapRegisterTag" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "MapFlagTag" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "MapMapTag" PrefixI False) (U1 :: Type -> Type))))