Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elm 0.17 compatibility #33

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
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
Expand Up @@ -8,3 +8,4 @@ elm-d3.runtime.js
elm-d3.library.js
.zedstate
tags
elm-stuff*
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ basis for the library, as well as an alternative renderer for Elm.
[elm]: http://elm-lang.org
[d3]: http://d3js.org

> **Note** this fork involves possible changes and simplifications due to [Elm-0.17](http://elm-lang.org/blog/farewell-to-frp) and [D3.js-4.0](https://github.com/d3/d3)

## Installation

First make sure that you have [node.js][node] installed, as well as the
Expand Down
12 changes: 8 additions & 4 deletions elm-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@
"source-directories": [
"src"
],
"exposed-modules": ["D3", "D3.Event"],
"exposed-modules": [
"D3",
"D3.Event"
],
"native-modules": true,
"dependencies": {
"elm-lang/core": "2.1.0 <= v < 3.0.0"
"elm-lang/core": "2.1.0 <= v < 5.0.0",
"evancz/elm-graphics": "1.0.0 <= v < 2.0.0"
},
"elm-version": "0.15.1 <= v < 0.16.0"
}
"elm-version": "0.15.1 <= v < 0.18.0"
}
6 changes: 3 additions & 3 deletions src/D3.elm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module D3
module D3 exposing
( version -- : String

, D3
Expand Down Expand Up @@ -31,7 +31,7 @@ module D3
, transition -- : D3 a a
, delay -- : (a -> Int -> Int) -> D3 a a
, duration -- : (a -> Int -> Int) -> D3 a a
) where
)

{-| Elm bindings for D3.js

Expand All @@ -57,7 +57,7 @@ module D3
@docs select, selectAll, static, append, remove, attr, classed, property, style, html, text
-}

import Graphics.Element exposing (Element)
import Element
import Json.Encode exposing (Value)
import String

Expand Down
4 changes: 2 additions & 2 deletions src/D3/Event.elm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module D3.Event
module D3.Event exposing
( Stream
, KeyboardEvent
, MouseEvent
Expand All @@ -24,7 +24,7 @@ module D3.Event

, focus -- : BasicHandler e a
, blur -- : BasicHandler e a
) where
)

{-| Event handlers

Expand Down