brassica-0.2.0: Featureful sound change applier
Safe HaskellSafe-Inferred
LanguageHaskell2010

Brassica.SoundChange.Frontend.Internal

Description

Warning: This module is internal, and does not follow the Package Versioning Policy. It may be useful for extending Brassica, but be prepared to track development closely if you import this module.

Synopsis

Documentation

data ApplicationOutput a r Source #

Output of a single application of rules to a wordlist: either a list of possibly highlighted words, an applied rules table, or a parse error.

Instances

Instances details
Generic (ApplicationOutput a r) Source # 
Instance details

Defined in Brassica.SoundChange.Frontend.Internal

Associated Types

type Rep (ApplicationOutput a r) :: Type -> Type #

(Show a, Show r) => Show (ApplicationOutput a r) Source # 
Instance details

Defined in Brassica.SoundChange.Frontend.Internal

(NFData a, NFData r) => NFData (ApplicationOutput a r) Source # 
Instance details

Defined in Brassica.SoundChange.Frontend.Internal

Methods

rnf :: ApplicationOutput a r -> () #

type Rep (ApplicationOutput a r) Source # 
Instance details

Defined in Brassica.SoundChange.Frontend.Internal

type Rep (ApplicationOutput a r) = D1 ('MetaData "ApplicationOutput" "Brassica.SoundChange.Frontend.Internal" "brassica-0.2.0-6DYGqWgsRcQ5pGt1m6P3TU" 'False) ((C1 ('MetaCons "HighlightedWords" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Component (a, Bool)])) :+: C1 ('MetaCons "AppliedRulesTable" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PWordLog r]))) :+: (C1 ('MetaCons "ParseError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ParseErrorBundle String Void))) :+: C1 ('MetaCons "ExpandError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ExpandError))))

data ParseOutput a Source #

Constructors

ParsedRaw [Component a] 
ParsedMDF (MDF [Component a]) 

Instances

Instances details
Functor ParseOutput Source # 
Instance details

Defined in Brassica.SoundChange.Frontend.Internal

Methods

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

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

Show a => Show (ParseOutput a) Source # 
Instance details

Defined in Brassica.SoundChange.Frontend.Internal

parseTokeniseAndApplyRules Source #

Top-level dispatcher for an interactive frontend: given a textual wordlist and a list of sound changes, returns the result of running the changes in the specified mode.