Skip to content

Commit

Permalink
Prepare for release with Install.Type
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxcarlson committed Jun 16, 2024
1 parent ab5d838 commit 00e7d25
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"Install.Initializer",
"Install.TypeVariant",
"Install.Function",
"Install.Import"
"Install.Import",
"Install.Type",
],
"elm-version": "0.19.0 <= v < 0.20.0",
"dependencies": {
Expand Down
6 changes: 5 additions & 1 deletion src/Install/Type.elm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Install.Type exposing (..)
module Install.Type exposing (makeRule)

{-| `Install.Type` provides a rule that checks if a type is present
in the given module and if not, it adds it right after the imports.
Expand All @@ -14,6 +14,8 @@ in the given module and if not, it adds it right after the imports.
| Wizard String
| Spell String Int
@docs makeRule
-}

import Elm.Syntax.Declaration as Declaration exposing (Declaration)
Expand All @@ -28,6 +30,8 @@ import Review.Fix as Fix exposing (Fix)
import Review.Rule as Rule exposing (Error, Rule)


{-| Rule to add a type to a module if it is not present
-}
makeRule : String -> String -> List String -> Rule
makeRule hostModuleName typeName_ variants_ =
let
Expand Down

0 comments on commit 00e7d25

Please sign in to comment.