Skip to content

Commit

Permalink
fix: init type
Browse files Browse the repository at this point in the history
  • Loading branch information
linsyking committed May 8, 2023
1 parent 5e7f04a commit 80663ac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "linsyking/messenger-core",
"summary": "Core library for Messenger.",
"license": "BSD-3-Clause",
"version": "1.1.0",
"version": "2.0.0",
"exposed-modules": {
"Definitions": [
"Messenger.Recursion",
Expand Down
17 changes: 9 additions & 8 deletions src/Messenger/GeneralModel.elm
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ General model is designed to be an abstract interface of scenes, layers, compone
- a: data type
- b: environment type
- c: message type
- d: render type
- c: init type
- d: message type
- e: render type
@docs NamedGeneralModel, NamelessGeneralModel
Expand All @@ -22,20 +23,20 @@ General model is designed to be an abstract interface of scenes, layers, compone
This has a name field.
-}
type alias NamedGeneralModel a b c d =
type alias NamedGeneralModel a b c d e =
{ name : String
, data : a
, init : b -> c -> a
, update : b -> c -> a -> ( a, b )
, view : b -> a -> d
, update : b -> d -> a -> ( a, b )
, view : b -> a -> e
}


{-| General Model without name field.
-}
type alias NamelessGeneralModel a b c d =
type alias NamelessGeneralModel a b c d e =
{ data : a
, init : b -> c -> a
, update : b -> c -> a -> ( a, b )
, view : b -> a -> d
, update : b -> d -> a -> ( a, b )
, view : b -> a -> e
}

0 comments on commit 80663ac

Please sign in to comment.