web-rep-0.12.1.0: representations of a web page
Safe HaskellSafe-Inferred
LanguageGHC2021

Web.Rep.Examples

Description

Some simple usage examples to get started with the library.

The most important example is repExamples which forms the basis of the app example.

Synopsis

Documentation

page1 :: Page Source #

simple page example

page2 :: Page Source #

page with localised libraries

cfg2 :: PageConfig Source #

Page with separated css and js.

data RepExamples Source #

One of each sharedrep input instances.

Instances

Instances details
Generic RepExamples Source # 
Instance details

Defined in Web.Rep.Examples

Associated Types

type Rep RepExamples :: Type -> Type #

Show RepExamples Source # 
Instance details

Defined in Web.Rep.Examples

Eq RepExamples Source # 
Instance details

Defined in Web.Rep.Examples

type Rep RepExamples Source # 
Instance details

Defined in Web.Rep.Examples

repExamples :: Monad m => SharedRep m RepExamples Source #

one of each input SharedReps

data Shape Source #

For a typed dropdown example.

Constructors

SquareShape 
CircleShape 

Instances

Instances details
Generic Shape Source # 
Instance details

Defined in Web.Rep.Examples

Associated Types

type Rep Shape :: Type -> Type #

Methods

from :: Shape -> Rep Shape x #

to :: Rep Shape x -> Shape #

Show Shape Source # 
Instance details

Defined in Web.Rep.Examples

Methods

showsPrec :: Int -> Shape -> ShowS #

show :: Shape -> String #

showList :: [Shape] -> ShowS #

Eq Shape Source # 
Instance details

Defined in Web.Rep.Examples

Methods

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

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

type Rep Shape Source # 
Instance details

Defined in Web.Rep.Examples

type Rep Shape = D1 ('MetaData "Shape" "Web.Rep.Examples" "web-rep-0.12.1.0-mljk32nWcoKJWZerP610X" 'False) (C1 ('MetaCons "SquareShape" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CircleShape" 'PrefixI 'False) (U1 :: Type -> Type))

fromShape :: Shape -> ByteString Source #

shape printer

toShape :: ByteString -> Shape Source #

shape parser