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

API Ideas #322

Open
evancz opened this issue Aug 2, 2015 · 1 comment
Open

API Ideas #322

evancz opened this issue Aug 2, 2015 · 1 comment
Labels

Comments

@evancz
Copy link
Member

evancz commented Aug 2, 2015

This is for organization. Open a separate issue for your particular idea.

This is a collection of API ideas that have sprouted up as folks have used core. It is not an invitation to do a free for all of changes. I am just collecting the most promising ideas in one place so that we can assess them all together in a coherent way.

Primitives

Data Structures

Maybe and Result

Json

Tasks

@laszlopandy
Copy link
Contributor

When thinking about what is in core, here is a good way to organize it:

Basic types Containers Graphics Network User interaction Utils
Basics Array Color Keyboard Debug
Bitwise List Graphics.Element Mouse Json.Decode
Char Set Graphics.Collage Touch Json.Encode
Maybe Dict Graphics.Input Window Random
Result Graphics.Input.Field Time
Signal Text Date
Task Transform2D Regex
String Trampoline

As you can see, there are no networking modules left in core. Http and Websocket were removed after 0.15, when their APIs were migrated to use Tasks instead of Signals.
Organizing the classes like this in the documentation would make it much easier for developers to understand what is in core.

@elm elm locked and limited conversation to collaborators Jan 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants