Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upAPI Ideas #322
Comments
This was referenced Aug 2, 2015
This was referenced Aug 23, 2015
evancz
referenced this issue
Aug 27, 2015
Closed
Result instead of Maybe for List.head and the like #369
evancz
added
the
meta
label
Aug 30, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
laszlopandy
Sep 11, 2015
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.
|
When thinking about what is in core, here is a good way to organize it:
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. |
evancz commentedAug 2, 2015
•
edited by rtfeldman
Edited 1 time
-
rtfeldman
edited Jan 21, 2017 (most recent)
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
Number.toFixedtoStringNever -> afunctionData Structures
List.singletonDict.keysreturn aSetArray.removeArray.updateArray.getandArray.setArray.slice 3 0take until the end of the arrayMaybe and Result
Result.formatErrortoResult.mapErrorto matchTask.mapErrorMaybeandResultin APIsMaybe.isNothingJson
Encode.dictTasks
Task.parallel- #223andThenso backticks can be removed - threadTime.utcOffset- elm/compiler#705, #486Process.sleeptoTask.sleep- #693