Skip to content
This repository has been archived by the owner on May 9, 2018. It is now read-only.

Commit

Permalink
Update imports for 0.15
Browse files Browse the repository at this point in the history
  • Loading branch information
process-bot committed Mar 3, 2015
1 parent d3db03a commit 1a44624
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Html.elm
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ expect to use frequently will be closer to the top.
-}

import Graphics.Element (Element)
import Graphics.Element exposing (Element)
import VirtualDom


Expand Down
2 changes: 1 addition & 1 deletion src/Html/Attributes.elm
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Pretty much all of the functions in `Html.Attributes` are defined with
-}

import Html (Attribute)
import Html exposing (Attribute)
import Json.Encode as Json
import List
import String
Expand Down
13 changes: 6 additions & 7 deletions src/Html/Events.elm
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,30 @@ of events as seen in the [TodoMVC][] example.
@docs on, targetValue, targetChecked, keyCode
-}

import Html (Attribute)
import Json.Decode as Json
import Json.Decode (..)
import Html exposing (Attribute)
import JavaScript.Decode as JS exposing (..)
import Mailbox
import VirtualDom


on : String -> Json.Decoder a -> (a -> Mailbox.Message) -> Attribute
on : String -> JS.Decoder a -> (a -> Mailbox.Message) -> Attribute
on =
VirtualDom.on


-- COMMON DECODERS

targetValue : Json.Decoder String
targetValue : JS.Decoder String
targetValue =
at ["target", "value"] string


targetChecked : Json.Decoder Bool
targetChecked : JS.Decoder Bool
targetChecked =
at ["target", "checked"] bool


keyCode : Json.Decoder Int
keyCode : JS.Decoder Int
keyCode =
("keyCode" := int)

Expand Down
2 changes: 1 addition & 1 deletion src/Html/Lazy.elm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ benchmark to be sure!
@docs lazy, lazy2, lazy3
-}

import Html (Html)
import Html exposing (Html)
import VirtualDom


Expand Down

0 comments on commit 1a44624

Please sign in to comment.