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

Web.Rep.Examples

Synopsis

Documentation

page1 :: Page Source #

simple page example

page2 :: Page Source #

page with localised libraries

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.11.0.0-92kLpliQOQ3ATLZWb07Yam" '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