elm-review/tests/NoInconsistentAliases/Visitor/Options.elm
2020-08-09 18:56:12 +02:00

22 lines
509 B
Elm

module NoInconsistentAliases.Visitor.Options exposing (AliasLookup, Options, fromConfig)
import Elm.Syntax.ModuleName exposing (ModuleName)
import NoInconsistentAliases.Config as Config exposing (Config)
type alias Options =
{ lookupAlias : AliasLookup
, canMissAliases : Bool
}
type alias AliasLookup =
ModuleName -> Maybe String
fromConfig : Config -> Options
fromConfig config =
{ lookupAlias = Config.lookupAlias config
, canMissAliases = Config.canMissAliases config
}