generic-accessors-0.7.1.0: stringly-named getters for generic data
Safe HaskellNone
LanguageHaskell2010

Accessors

Synopsis

Documentation

class Lookup a where Source #

Things which you can make a tree of labeled getters for. You should derive this using GHC.Generics.

Minimal complete definition

Nothing

Methods

toAccessorTree :: Lens' b a -> AccessorTree b Source #

default toAccessorTree :: (Generic a, GLookup (Rep a)) => Lens' b a -> AccessorTree b Source #

Instances

Instances details
Lookup Bool Source # 
Instance details

Defined in Accessors.Instances

Lookup Double Source # 
Instance details

Defined in Accessors.Instances

Lookup Float Source # 
Instance details

Defined in Accessors.Instances

Lookup Int Source # 
Instance details

Defined in Accessors.Instances

Lookup Int8 Source # 
Instance details

Defined in Accessors.Instances

Lookup Int16 Source # 
Instance details

Defined in Accessors.Instances

Lookup Int32 Source # 
Instance details

Defined in Accessors.Instances

Lookup Int64 Source # 
Instance details

Defined in Accessors.Instances

Lookup Word Source # 
Instance details

Defined in Accessors.Instances

Lookup Word8 Source # 
Instance details

Defined in Accessors.Instances

Lookup Word16 Source # 
Instance details

Defined in Accessors.Instances

Lookup Word32 Source # 
Instance details

Defined in Accessors.Instances

Lookup Word64 Source # 
Instance details

Defined in Accessors.Instances

Lookup () Source # 
Instance details

Defined in Accessors.Instances

Lookup String Source # 
Instance details

Defined in Accessors.Instances

Lookup CChar Source # 
Instance details

Defined in Accessors.Instances

Lookup CSChar Source # 
Instance details

Defined in Accessors.Instances

Lookup CUChar Source # 
Instance details

Defined in Accessors.Instances

Lookup CShort Source # 
Instance details

Defined in Accessors.Instances

Lookup CUShort Source # 
Instance details

Defined in Accessors.Instances

Lookup CInt Source # 
Instance details

Defined in Accessors.Instances

Lookup CUInt Source # 
Instance details

Defined in Accessors.Instances

Lookup CLong Source # 
Instance details

Defined in Accessors.Instances

Lookup CULong Source # 
Instance details

Defined in Accessors.Instances

Lookup CLLong Source # 
Instance details

Defined in Accessors.Instances

Lookup CULLong Source # 
Instance details

Defined in Accessors.Instances

Lookup CFloat Source # 
Instance details

Defined in Accessors.Instances

Lookup CDouble Source # 
Instance details

Defined in Accessors.Instances

Lookup CPtrdiff Source # 
Instance details

Defined in Accessors.Instances

Lookup CSize Source # 
Instance details

Defined in Accessors.Instances

Lookup CWchar Source # 
Instance details

Defined in Accessors.Instances

Lookup CSigAtomic Source # 
Instance details

Defined in Accessors.Instances

Lookup CClock Source # 
Instance details

Defined in Accessors.Instances

Lookup CTime Source # 
Instance details

Defined in Accessors.Instances

Lookup CUSeconds Source # 
Instance details

Defined in Accessors.Instances

Lookup CSUSeconds Source # 
Instance details

Defined in Accessors.Instances

Lookup CIntPtr Source # 
Instance details

Defined in Accessors.Instances

Lookup CUIntPtr Source # 
Instance details

Defined in Accessors.Instances

Lookup CIntMax Source # 
Instance details

Defined in Accessors.Instances

Lookup CUIntMax Source # 
Instance details

Defined in Accessors.Instances

Lookup a => Lookup (Id a) Source # 
Instance details

Defined in Accessors.Instances

Lookup a => Lookup (Quaternion a) Source # 
Instance details

Defined in Accessors.Instances

Lookup (V0 a) Source # 
Instance details

Defined in Accessors.Instances

Lookup a => Lookup (V4 a) Source # 
Instance details

Defined in Accessors.Instances

Lookup a => Lookup (V3 a) Source # 
Instance details

Defined in Accessors.Instances

Lookup a => Lookup (V2 a) Source # 
Instance details

Defined in Accessors.Instances

Lookup a => Lookup (V1 a) Source # 
Instance details

Defined in Accessors.Instances

Lookup a => Lookup (Euler a) Source # 
Instance details

Defined in Accessors.Instances

(Lookup a, Lookup b) => Lookup (a, b) Source # 
Instance details

Defined in Accessors.Instances

Methods

toAccessorTree :: Lens' b0 (a, b) -> AccessorTree b0 Source #

Lookup a => Lookup (V3T f a) Source # 
Instance details

Defined in Accessors.Instances

Methods

toAccessorTree :: Lens' b (V3T f a) -> AccessorTree b Source #

(Lookup a, Lookup b, Lookup c) => Lookup (a, b, c) Source # 
Instance details

Defined in Accessors.Instances

Methods

toAccessorTree :: Lens' b0 (a, b, c) -> AccessorTree b0 Source #

(Lookup a, Lookup b, Lookup c, Lookup d) => Lookup (a, b, c, d) Source # 
Instance details

Defined in Accessors.Instances

Methods

toAccessorTree :: Lens' b0 (a, b, c, d) -> AccessorTree b0 Source #

Lookup (g a) => Lookup (Rot f1 f2 g a) Source # 
Instance details

Defined in Accessors.Instances

Methods

toAccessorTree :: Lens' b (Rot f1 f2 g a) -> AccessorTree b Source #

Lookup (g (f a)) => Lookup ((g :. f) a) Source # 
Instance details

Defined in Accessors.Instances

Methods

toAccessorTree :: Lens' b ((g :. f) a) -> AccessorTree b Source #

data GAData a Source #

Constructors

GAData String (GAConstructor a) 

Instances

Instances details
Show (GAData a) Source # 
Instance details

Defined in Accessors.Accessors

Methods

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

show :: GAData a -> String #

showList :: [GAData a] -> ShowS #

data GASimpleEnum a Source #

Constructors

GASimpleEnum 

Fields

describeGAField :: GAField a -> String Source #

Return the type of field, such as Bool, Double, String, etc.

sameFieldType :: GAField a -> GAField b -> Bool Source #

Returns True if the type of fields is the same.

showTree :: AccessorTree a -> (Double -> String) -> a -> String Source #

Show a tree of values

showFlat :: forall a. AccessorTree a -> Bool -> (Double -> String) -> a -> String Source #

Show a list of values . True --> align the colums, False --> total mayhem

class GLookup f where Source #

Methods

gtoAccessorTree :: Lens' b (f a) -> AccessorTree b Source #

Instances

Instances details
Lookup f => GLookup (Rec0 f) Source # 
Instance details

Defined in Accessors.Accessors

(Datatype d, Constructor c, GLookupS a) => GLookup (D1 d (C1 c a)) Source # 
Instance details

Defined in Accessors.Accessors

Methods

gtoAccessorTree :: Lens' b (D1 d (C1 c a) a0) -> AccessorTree b Source #

(Datatype d, GEnum (c1 :+: c2)) => GLookup (D1 d (c1 :+: c2)) Source # 
Instance details

Defined in Accessors.Accessors

Methods

gtoAccessorTree :: Lens' b (D1 d (c1 :+: c2) a) -> AccessorTree b Source #