You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import Html exposing (..)
type alias State a =
{ a | count: Int }
type alias MoreState =
State { test: Int }
increment : State a -> State a
increment s = { s | count = s.count + 1 }
state : MoreState
state =
{ count = 0
, test = 1
}
|> increment
|> increment
main = text (String.fromInt state.count)
The text was updated successfully, but these errors were encountered:
e.g.,
The text was updated successfully, but these errors were encountered: