hoodle-types-0.2.1: Data types for programs for hoodle file format

PortabilityGHC
Stabilityexperimental
MaintainerIan-Woo Kim <ianwookim@gmail.com>
Safe HaskellNone

Data.Hoodle.Generic

Description

 

Synopsis

Documentation

data GHoodle cntnr pg Source

Generic Hoodle data having generic pages

Instances

Functor cntnr => Functor (GHoodle cntnr) 

data GPage bkg cntnr lyr Source

Generic page data having dimension, generic background and generic layers

Constructors

GPage 

Fields

gpage_dim :: Dimension
 
gpage_bkg :: bkg
 
gpage_lyrs :: cntnr lyr
 

Instances

Functor cntnr => Functor (GPage bkg cntnr) 

data GLayer buf cntnr itm Source

Generic buffered layer having generic items

Constructors

GLayer 

Fields

glayer_buf :: buf
 
glayer_itms :: cntnr itm
 

Instances

Functor cntnr => Functor (GLayer buf cntnr) 

gpages :: Simple Lens (GHoodle cntnr pg) (cntnr pg)Source

gbackground :: Simple Lens (GPage bkg cntnr lyr) bkgSource

glayers :: Simple Lens (GPage bkg cntnr lyr) (cntnr lyr)Source

gitems :: Simple Lens (GLayer buf cntnr itm) (cntnr itm)Source

gbuffer :: Simple Lens (GLayer buf cntnr itm) bufSource

class Foldable s => Listable s whereSource

Methods

fromList :: [a] -> s aSource

emptyGPage :: Listable cntnr => Dimension -> bkg -> GPage bkg cntnr aSource