autolib-todoc
Safe HaskellSafe-Inferred
LanguageHaskell98

Autolib.Multilingual

Contents

Synopsis

Documentation

data Language Source #

Constructors

DE 
UK 
NL 

Instances

Instances details
ToTransport Language Source # 
Instance details

Defined in Autolib.Multilingual

Methods

toTransport :: Atom atom => Language -> Trans atom #

fromTransport :: Atom atom => Trans atom -> Error Language #

toTransportList :: Atom atom => [Language] -> Trans atom #

fromTransportList :: Atom atom => Trans atom -> Error [Language] #

Bounded Language Source # 
Instance details

Defined in Autolib.Multilingual

Enum Language Source # 
Instance details

Defined in Autolib.Multilingual

Generic Language Source # 
Instance details

Defined in Autolib.Multilingual

Associated Types

type Rep Language 
Instance details

Defined in Autolib.Multilingual

type Rep Language = D1 ('MetaData "Language" "Autolib.Multilingual" "autolib-todoc-1.2-JsXFlSyIsVTAGFGDJnLNlV" 'False) (C1 ('MetaCons "DE" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "UK" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NL" 'PrefixI 'False) (U1 :: Type -> Type)))

Methods

from :: Language -> Rep Language x #

to :: Rep Language x -> Language #

Read Language Source # 
Instance details

Defined in Autolib.Multilingual

Show Language Source # 
Instance details

Defined in Autolib.Multilingual

Eq Language Source # 
Instance details

Defined in Autolib.Multilingual

Ord Language Source # 
Instance details

Defined in Autolib.Multilingual

type Rep Language Source # 
Instance details

Defined in Autolib.Multilingual

type Rep Language = D1 ('MetaData "Language" "Autolib.Multilingual" "autolib-todoc-1.2-JsXFlSyIsVTAGFGDJnLNlV" 'False) (C1 ('MetaCons "DE" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "UK" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NL" 'PrefixI 'False) (U1 :: Type -> Type)))

data Type a Source #

implementation note: all languages must be present as keys in the map. otherwise this adds too much strictness. we need that ($$) is lazy in the second argument (for lazily outputting kommentar of a reporter that is still running)

Constructors

Make 

Fields

Instances

Instances details
ToDoc Doc Source # 
Instance details

Defined in Autolib.ToDoc.Manual

Methods

toDocPrec :: Int -> Doc -> Doc Source #

toDocList :: [Doc] -> Doc Source #

Functor Type Source # 
Instance details

Defined in Autolib.Multilingual

Methods

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

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

Monoid Doc Source # 
Instance details

Defined in Autolib.Multilingual.Doc

Methods

mempty :: Doc #

mappend :: Doc -> Doc -> Doc #

mconcat :: [Doc] -> Doc #

Semigroup Doc Source # 
Instance details

Defined in Autolib.Multilingual.Doc

Methods

(<>) :: Doc -> Doc -> Doc #

sconcat :: NonEmpty Doc -> Doc #

stimes :: Integral b => b -> Doc -> Doc #

Show Doc Source # 
Instance details

Defined in Autolib.Multilingual.Doc

Methods

showsPrec :: Int -> Doc -> ShowS #

show :: Doc -> String #

showList :: [Doc] -> ShowS #

Container Doc String Source # 
Instance details

Defined in Autolib.ToDoc.Xml

IsString a => IsString (Type a) Source # 
Instance details

Defined in Autolib.Multilingual

Methods

fromString :: String -> Type a #

make :: [(Language, a)] -> Type a Source #

use several languages

specialize :: Language -> Type a -> a Source #

pick the version for this language. if not available, then pick version for any language.

Combinators

fold_unary :: (a -> b) -> Type a -> Type b Source #

fold_binary :: (a -> a -> a) -> Type a -> Type a -> Type a Source #

fold_list :: ([a] -> b) -> [Type a] -> Type b Source #

uniform :: a -> Type a Source #