https://github.com/kgashok/qnaelm
A REST Elm Client to consume Q&A services from Microsoft
https://github.com/kgashok/qnaelm
elm microsoft
Last synced: 3 months ago
JSON representation
A REST Elm Client to consume Q&A services from Microsoft
- Host: GitHub
- URL: https://github.com/kgashok/qnaelm
- Owner: kgashok
- Created: 2016-12-21T17:00:29.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-05-11T08:20:35.000Z (about 6 years ago)
- Last Synced: 2025-02-13T05:42:13.480Z (5 months ago)
- Topics: elm, microsoft
- Language: JavaScript
- Size: 997 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# qnaElm
A REST Elm Client to consume Q and A services from MicrosoftAn improvement over the stock example found in the elm-lang/try list.
And also connecting to Microsoft's cognitive services for Q&A.# Version 0.x
# Version 1.x
For a demo, click [this](https://preview.c9users.io/kgashok/qnamicro/index.html?_c9_id=livepreview1&_c9_host=https://ide.c9.io).
## Important Reading
JSON parsing is a minefield https://news.ycombinator.com/item?id=12796556
### Resolving Issue #19
The moment to do this is after you have received and
processed your last HTTP response. So in a branch in your `update`,
something like```
case msg of
ReceivedHttpResponse response ->
let
newModel = processInModel response model
in
if (hasLastResponse newModel) then
update SortList newModel
else
(newModel, Cmd.none)
```