symantic-document-0.0.0.20170623: Document symantics.

Safe HaskellSafe
LanguageHaskell98

Language.Symantic.Document.Valid

Contents

Synopsis

Type Valid

data Valid repr Source #

Constructors

KO [Error_Valid] 
Ok repr 

Instances

Monad Valid Source # 

Methods

(>>=) :: Valid a -> (a -> Valid b) -> Valid b #

(>>) :: Valid a -> Valid b -> Valid b #

return :: a -> Valid a #

fail :: String -> Valid a #

Functor Valid Source # 

Methods

fmap :: (a -> b) -> Valid a -> Valid b #

(<$) :: a -> Valid b -> Valid a #

Applicative Valid Source # 

Methods

pure :: a -> Valid a #

(<*>) :: Valid (a -> b) -> Valid a -> Valid b #

(*>) :: Valid a -> Valid b -> Valid b #

(<*) :: Valid a -> Valid b -> Valid a #

Eq repr => Eq (Valid repr) Source # 

Methods

(==) :: Valid repr -> Valid repr -> Bool #

(/=) :: Valid repr -> Valid repr -> Bool #

Show repr => Show (Valid repr) Source # 

Methods

showsPrec :: Int -> Valid repr -> ShowS #

show :: Valid repr -> String #

showList :: [Valid repr] -> ShowS #

IsString repr => IsString (Valid repr) Source # 

Methods

fromString :: String -> Valid repr #

Semigroup repr => Semigroup (Valid repr) Source # 

Methods

(<>) :: Valid repr -> Valid repr -> Valid repr #

sconcat :: NonEmpty (Valid repr) -> Valid repr #

stimes :: Integral b => b -> Valid repr -> Valid repr #

(Doc_Text repr, Semigroup repr) => Monoid (Valid repr) Source # 

Methods

mempty :: Valid repr #

mappend :: Valid repr -> Valid repr -> Valid repr #

mconcat :: [Valid repr] -> Valid repr #

Doc_Decoration repr => Doc_Decoration (Valid repr) Source # 

Methods

bold :: Valid repr -> Valid repr Source #

underline :: Valid repr -> Valid repr Source #

italic :: Valid repr -> Valid repr Source #

Doc_Color repr => Doc_Color (Valid repr) Source # 

Methods

reverse :: Valid repr -> Valid repr Source #

black :: Valid repr -> Valid repr Source #

red :: Valid repr -> Valid repr Source #

green :: Valid repr -> Valid repr Source #

yellow :: Valid repr -> Valid repr Source #

blue :: Valid repr -> Valid repr Source #

magenta :: Valid repr -> Valid repr Source #

cyan :: Valid repr -> Valid repr Source #

white :: Valid repr -> Valid repr Source #

blacker :: Valid repr -> Valid repr Source #

redder :: Valid repr -> Valid repr Source #

greener :: Valid repr -> Valid repr Source #

yellower :: Valid repr -> Valid repr Source #

bluer :: Valid repr -> Valid repr Source #

magentaer :: Valid repr -> Valid repr Source #

cyaner :: Valid repr -> Valid repr Source #

whiter :: Valid repr -> Valid repr Source #

onBlack :: Valid repr -> Valid repr Source #

onRed :: Valid repr -> Valid repr Source #

onGreen :: Valid repr -> Valid repr Source #

onYellow :: Valid repr -> Valid repr Source #

onBlue :: Valid repr -> Valid repr Source #

onMagenta :: Valid repr -> Valid repr Source #

onCyan :: Valid repr -> Valid repr Source #

onWhite :: Valid repr -> Valid repr Source #

onBlacker :: Valid repr -> Valid repr Source #

onRedder :: Valid repr -> Valid repr Source #

onGreener :: Valid repr -> Valid repr Source #

onYellower :: Valid repr -> Valid repr Source #

onBluer :: Valid repr -> Valid repr Source #

onMagentaer :: Valid repr -> Valid repr Source #

onCyaner :: Valid repr -> Valid repr Source #

onWhiter :: Valid repr -> Valid repr Source #

(Doc_Text repr, Semigroup repr) => Doc_Text (Valid repr) Source # 

Methods

charH :: Char -> Valid repr Source #

stringH :: String -> Valid repr Source #

textH :: Text -> Valid repr Source #

ltextH :: Text -> Valid repr Source #

replicate :: Int -> Valid repr -> Valid repr Source #

integer :: Integer -> Valid repr Source #

empty :: Valid repr Source #

eol :: Valid repr Source #

space :: Valid repr Source #

spaces :: Int -> Valid repr Source #

int :: Int -> Valid repr Source #

char :: Char -> Valid repr Source #

string :: String -> Valid repr Source #

text :: Text -> Valid repr Source #

ltext :: Text -> Valid repr Source #

catH :: Foldable f => f (Valid repr) -> Valid repr Source #

catV :: Foldable f => f (Valid repr) -> Valid repr Source #

paren :: Valid repr -> Valid repr Source #

brace :: Valid repr -> Valid repr Source #

bracket :: Valid repr -> Valid repr Source #

bquote :: Valid repr -> Valid repr Source #

dquote :: Valid repr -> Valid repr Source #

fquote :: Valid repr -> Valid repr Source #

squote :: Valid repr -> Valid repr Source #

valid :: Valid repr -> Valid repr Source #

Type Error_Valid