fluent-syntax
Safe HaskellTrustworthy
LanguageHaskell2010

Language.Fluent.TH

Synopsis

Documentation

fluent :: QuasiQuoter Source #

Parses a Resource. Strips the indentation shared by every line.

messageIdentifiers :: FilePath -> DecsQ Source #

Declares a constant for every message identifier in the given Fluent file.

messageIdentifiers "en.ftl"

declares, for the message text-field-intro,

textFieldIntro :: (IsString s) => s
textFieldIntro = "text-field-intro"

Orphan instances

Lift Attribute Source # 
Instance details

Methods

lift :: Quote m => Attribute -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Attribute -> Code m Attribute #

Lift AttributeAccessor Source # 
Instance details

Methods

lift :: Quote m => AttributeAccessor -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => AttributeAccessor -> Code m AttributeAccessor #

Lift CallArguments Source # 
Instance details

Methods

lift :: Quote m => CallArguments -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => CallArguments -> Code m CallArguments #

Lift Comment Source # 
Instance details

Methods

lift :: Quote m => Comment -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Comment -> Code m Comment #

Lift Entry Source # 
Instance details

Methods

lift :: Quote m => Entry -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Entry -> Code m Entry #

Lift Expression Source # 
Instance details

Methods

lift :: Quote m => Expression -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Expression -> Code m Expression #

Lift Identifier Source # 
Instance details

Methods

lift :: Quote m => Identifier -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Identifier -> Code m Identifier #

Lift InlineExpression Source # 
Instance details

Methods

lift :: Quote m => InlineExpression -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => InlineExpression -> Code m InlineExpression #

Lift Message Source # 
Instance details

Methods

lift :: Quote m => Message -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Message -> Code m Message #

Lift NamedArgument Source # 
Instance details

Methods

lift :: Quote m => NamedArgument -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => NamedArgument -> Code m NamedArgument #

Lift NumberLiteral Source # 
Instance details

Methods

lift :: Quote m => NumberLiteral -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => NumberLiteral -> Code m NumberLiteral #

Lift Pattern Source # 
Instance details

Methods

lift :: Quote m => Pattern -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Pattern -> Code m Pattern #

Lift PatternElement Source # 
Instance details

Methods

lift :: Quote m => PatternElement -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => PatternElement -> Code m PatternElement #

Lift Placeable Source # 
Instance details

Methods

lift :: Quote m => Placeable -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Placeable -> Code m Placeable #

Lift Resource Source # 
Instance details

Methods

lift :: Quote m => Resource -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Resource -> Code m Resource #

Lift SelectExpression Source # 
Instance details

Methods

lift :: Quote m => SelectExpression -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => SelectExpression -> Code m SelectExpression #

Lift StringLiteral Source # 
Instance details

Methods

lift :: Quote m => StringLiteral -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => StringLiteral -> Code m StringLiteral #

Lift Term Source # 
Instance details

Methods

lift :: Quote m => Term -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Term -> Code m Term #

Lift Variant Source # 
Instance details

Methods

lift :: Quote m => Variant -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Variant -> Code m Variant #

Lift VariantKey Source # 
Instance details

Methods

lift :: Quote m => VariantKey -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => VariantKey -> Code m VariantKey #

Lift VariantList Source # 
Instance details

Methods

lift :: Quote m => VariantList -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => VariantList -> Code m VariantList #