elm-review/tests/NoInconsistentAliases/Visitor/Options.elm

22 lines
509 B
Elm
Raw Normal View History

2020-08-09 19:55:15 +03:00
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
}