opml-conduit-0.1.0.0: Streaming parser/renderer for the OPML 2.0 format.

Safe HaskellNone
LanguageHaskell2010

Text.OPML.Arbitrary

Description

External Arbitrary instances used by OPML types. All instances are defined through the OpmlGen wrapper to avoid conflicts.

Synopsis

Documentation

newtype OpmlGen a

Constructors

OpmlGen 

Fields

unwrap :: a
 

Instances

Generic a => Generic (OpmlGen a) 
Arbitrary (OpmlGen [[NE Text]])

Generates OutlineBase's categories. This generator makes sure that the result has no , nor / characters, since those are used as separators.

Arbitrary (OpmlGen a) => Arbitrary (OpmlGen (Maybe a)) 
Arbitrary (OpmlGen Version)

OPML version may only be 1.0, 1.1 or 2.0

Arbitrary (OpmlGen URI)

Reasonable enough URI generator.

Arbitrary (OpmlGen URIAuth)

Reasonable enough URIAuth generator.

Arbitrary (OpmlGen UTCTime)

Generates UTCTime with rounded seconds.

type Rep (OpmlGen a) 

genAlphaNum :: Gen Char

Alpha-numeric generator.