flatbuffers-0.1.0.0: Haskell implementation of the FlatBuffers protocol.

Safe HaskellNone
LanguageHaskell2010

FlatBuffers.Internal.Util

Synopsis

Documentation

isPowerOfTwo :: (Num a, Bits a) => a -> Bool Source #

newtype Positive a Source #

Proof that a number is strictly positive.

Constructors

Positive 

Fields

Instances
Eq a => Eq (Positive a) Source # 
Instance details

Defined in FlatBuffers.Internal.Util

Methods

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

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

Show a => Show (Positive a) Source # 
Instance details

Defined in FlatBuffers.Internal.Util

Methods

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

show :: Positive a -> String #

showList :: [Positive a] -> ShowS #

positive :: (Num a, Ord a) => a -> Maybe (Positive a) Source #