colorless-2.2.14: Colorless

Safe HaskellNone
LanguageHaskell2010

Colorless.Val

Documentation

data Wrap Source #

Constructors

Wrap Const 

Instances

Eq Wrap Source # 

Methods

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

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

Show Wrap Source # 

Methods

showsPrec :: Int -> Wrap -> ShowS #

show :: Wrap -> String #

showList :: [Wrap] -> ShowS #

data Struct Source #

Constructors

Struct (Map MemberName Val) 

Instances

Eq Struct Source # 

Methods

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

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

Show Struct Source # 
Generic Struct Source # 

Associated Types

type Rep Struct :: * -> * #

Methods

from :: Struct -> Rep Struct x #

to :: Rep Struct x -> Struct #

ToJSON Struct Source # 
FromJSON Struct Source # 
type Rep Struct Source # 
type Rep Struct = D1 (MetaData "Struct" "Colorless.Val" "colorless-2.2.14-KgJZbaRHVeYBceyXuyrNCU" False) (C1 (MetaCons "Struct" PrefixI True) (S1 (MetaSel (Just Symbol "m") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Map MemberName Val))))

class ToVal a where Source #

Minimal complete definition

toVal

Methods

toVal :: a -> Val Source #

Instances

ToVal Bool Source # 

Methods

toVal :: Bool -> Val Source #

ToVal Double Source # 

Methods

toVal :: Double -> Val Source #

ToVal Float Source # 

Methods

toVal :: Float -> Val Source #

ToVal Int Source # 

Methods

toVal :: Int -> Val Source #

ToVal Int8 Source # 

Methods

toVal :: Int8 -> Val Source #

ToVal Int16 Source # 

Methods

toVal :: Int16 -> Val Source #

ToVal Int32 Source # 

Methods

toVal :: Int32 -> Val Source #

ToVal Int64 Source # 

Methods

toVal :: Int64 -> Val Source #

ToVal Word Source # 

Methods

toVal :: Word -> Val Source #

ToVal Word8 Source # 

Methods

toVal :: Word8 -> Val Source #

ToVal Word16 Source # 

Methods

toVal :: Word16 -> Val Source #

ToVal Word32 Source # 

Methods

toVal :: Word32 -> Val Source #

ToVal Word64 Source # 

Methods

toVal :: Word64 -> Val Source #

ToVal () Source # 

Methods

toVal :: () -> Val Source #

ToVal Text Source # 

Methods

toVal :: Text -> Val Source #

ToVal a => ToVal [a] Source # 

Methods

toVal :: [a] -> Val Source #

ToVal a => ToVal (Maybe a) Source # 

Methods

toVal :: Maybe a -> Val Source #

(ToVal a, ToVal b) => ToVal (Either a b) Source # 

Methods

toVal :: Either a b -> Val Source #