Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
elm-stuff/
8 changes: 4 additions & 4 deletions elm-package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": "1.0.0",
"summary": "Elm bindings for Semantic UI",
"repository": "https://github.com/b52/elm-semantic-ui.git",
"summary": "Elm bindings for Semantic UI forked from b52/elm-semantic-ui.git",
"repository": "https://github.com/rizafahmi/elm-semantic-ui.git",
"license": "MIT",
"source-directories": [
"src"
Expand All @@ -10,8 +10,8 @@
"SemanticUi"
],
"dependencies": {
"elm-lang/core": "2.1.0 <= v < 3.0.0",
"elm-lang/core": "2.1.0 <= v < 4.0.0",
"evancz/elm-html": "4.0.1 <= v < 5.0.0"
},
"elm-version": "0.15.1 <= v < 0.16.0"
"elm-version": "0.15.0 <= v < 0.17.0"
}
6 changes: 3 additions & 3 deletions src/SemanticUi.elm
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ style : (a -> a) -> Element a -> Element a
style f element =
let oldStyle = element.state
newStyle = f oldStyle
in { element | state <- newStyle }
in { element | state = newStyle }


{-| Some elements might have different sizes. -}
Expand All @@ -83,7 +83,7 @@ type alias Sized a =
button "click" |> size Huge
-}
size : Size -> Element (Sized a) -> Element (Sized a)
size size = style <| \state -> { state | size <- size }
size size = style <| \state -> { state | size = size }


type alias Readable a =
Expand All @@ -94,7 +94,7 @@ type alias Readable a =
button "click" |> text "DON'T click"
-}
text : String -> Element (Readable a) -> Element (Readable a)
text text = style <| \state -> { state | text <- text }
text text = style <| \state -> { state | text = text }


{-| The button state driving the visual appearance. -}
Expand Down