sdp-0.2: Simple Data Processing
Copyright(c) Andrey Mulik 2020
LicenseBSD-style
Maintainerwork.a.mulik@gmail.com
Portabilitynon-portable (GHC extensions)
Safe HaskellTrustworthy
LanguageHaskell2010

SDP.Nullable

Contents

Description

SDP.Nullable provides Nullable - class of types with empty values.

Synopsis

Nullable

class Nullable e where Source #

Nullable is class of types which value may be empty.

Methods

lzero :: e Source #

Empty value.

isNull :: e -> Bool Source #

Is value empty?

Instances

Instances details
Nullable [e] Source # 
Instance details

Defined in SDP.Nullable

Methods

lzero :: [e] Source #

isNull :: [e] -> Bool Source #

Nullable (Maybe e) Source # 
Instance details

Defined in SDP.Nullable

Methods

lzero :: Maybe e Source #

isNull :: Maybe e -> Bool Source #

Nullable (StablePtr e) Source # 
Instance details

Defined in SDP.Nullable

Nullable (Ptr e) Source # 
Instance details

Defined in SDP.Nullable

Methods

lzero :: Ptr e Source #

isNull :: Ptr e -> Bool Source #

Nullable (ForeignPtr e) Source # 
Instance details

Defined in SDP.Nullable

Nullable (SBytes# e) Source # 
Instance details

Defined in SDP.Prim.SBytes

Nullable (SArray# e) Source # 
Instance details

Defined in SDP.Prim.SArray

Nullable (TArray# e) Source # 
Instance details

Defined in SDP.Prim.TArray

Index i => Nullable (i, i) Source # 
Instance details

Defined in SDP.Index

Methods

lzero :: (i, i) Source #

isNull :: (i, i) -> Bool Source #

Nullable (AnyChunks rep e) Source # 
Instance details

Defined in SDP.Templates.AnyChunks

Methods

lzero :: AnyChunks rep e Source #

isNull :: AnyChunks rep e -> Bool Source #

(Index i, Bordered (rep e) Int, Nullable (rep e)) => Nullable (AnyBorder rep i e) Source # 
Instance details

Defined in SDP.Templates.AnyBorder

Methods

lzero :: AnyBorder rep i e Source #

isNull :: AnyBorder rep i e -> Bool Source #

pattern NULL :: Nullable e => e Source #

Originally defined in sdp-ctypes (now sdp-foreign), same as Z now.