Re: [elm-discuss] Re: text editor in Elm

2016-11-19 Thread Bulat Shamsutdinov
As far as I know Selection API (
https://developer.mozilla.org/en-US/docs/Web/API/Window/getSelection) is 
not present in Elm. So there is no way (no sane way) to do text editor in 
pure elm as of right now.

On Saturday, November 19, 2016 at 11:33:32 PM UTC+3, Joey Eremondi wrote:
>
> there is no way to implement rich text editor in pure elm
>
>
> That's certainly not true, it's certainly possible, but you'd have to 
> write all the editor code yourself, and there aren't (I think) any good 
> libraries for doing it yet.  
>
> On Sat, Nov 19, 2016 at 1:39 AM, Bulat Shamsutdinov <
> bulat.sha...@gmail.com > wrote:
>
>> Hi! As far as I got into the same question, there is no way to implement 
>> rich text editor in pure elm, it misses some core functionality like 
>> selections. The only way is to use ports to JS code and that comes with 
>> it's nasty hacks too.
>>
>> On Monday, October 31, 2016 at 9:01:46 PM UTC+3, Haitao Zhang wrote:
>>>
>>> Can anyone point to an editor done in Elm? I am particularly interested 
>>> in seeing how mouse interaction (highlight, selection, copy, paste etc) is 
>>> handled. I looked through DreamWriter. I don't think it implements the part 
>>> I mentioned in Elm, though to be honest I am not quite sure how it 
>>> accomplishes the editing actions.
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Elm Discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to elm-discuss...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] Re: text editor in Elm

2016-11-19 Thread Bulat Shamsutdinov
Hi! As far as I got into the same question, there is no way to implement 
rich text editor in pure elm, it misses some core functionality like 
selections. The only way is to use ports to JS code and that comes with 
it's nasty hacks too.

On Monday, October 31, 2016 at 9:01:46 PM UTC+3, Haitao Zhang wrote:
>
> Can anyone point to an editor done in Elm? I am particularly interested in 
> seeing how mouse interaction (highlight, selection, copy, paste etc) is 
> handled. I looked through DreamWriter. I don't think it implements the part 
> I mentioned in Elm, though to be honest I am not quite sure how it 
> accomplishes the editing actions.
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] Re: Pure Elm contenteditable rich text editor

2016-10-13 Thread Bulat Shamsutdinov
Thank you everyone! I'm currently studying Draft.js to see their way of 
implementing rich text edit.

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] Pure Elm contenteditable rich text editor

2016-10-10 Thread Bulat Shamsutdinov
Hello!

I have aside project which I really want to write in Elm. That project 
needs rich text edit (nothing fancy, just bullets and text styles).

To my knowledge there is no solution to that task in Elm (which is a 
bummer). And even ports require nasty hacks (according to previous 
discussions here)

Is there a way to implement that basic functionality using only Elm? 

   - Is it technically possible at the moment?
   - What approach would you suggest?

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] Re: JS + React + Redux - How to emulate Elm?

2016-10-05 Thread Bulat Shamsutdinov
It's not the answer for my case because React + Redux is the stack I'm to 
use now. But I will still look into it just because it looks interesting, 
thank you!

On Wednesday, October 5, 2016 at 7:54:44 PM UTC+3, Charlie Koster wrote:
>
> I don't know if this is what you're looking for but rather than 
> React/Redux I personally think CycleJS  is far 
> closer to Elm. It uses observables to chain up pure functions. Side effects 
> are handed off to the "CycleJS runtime" to do things like update the DOM or 
> perform HTTP requests.
>
> It's definitely not the same. It's definitely not the Elm architecture. 
> But you'll recognize the purity of its strategy.
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] JS + React + Redux - How to emulate Elm?

2016-10-05 Thread Bulat Shamsutdinov
Hello! 

After several weeks of learning elm (pleasant time) I found out that for 
reasons outside of my control I'm to use JS + React + Redux for now. 

Do anyone knows of a way to use JS+React+Redux in a manner close to Elm? 

I want to try to emulate elm architecture and whole FP paradigm as puristic 
as possible. 

Are there any links to tutorials or something?

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] Re: Backend to use with Elm

2016-10-05 Thread Bulat Shamsutdinov
Oh, that looks interesting, thank you for sharing! I'm going to look into 
it.

On Wednesday, October 5, 2016 at 6:40:12 PM UTC+3, Charles Scalfani wrote:
>
> We're developing Elm programs that run in node. See 
> https://github.com/panosoft?utf8=%E2%9C%93=elm
>
> I just finished a Postgres Effects Manager and I'm working on a Websocket 
> server Effects Manager.
>
> You can definitely write Elm on node. You're pretty much on your own, but 
> it's doable.
>
>
>  
>
> On Tuesday, October 4, 2016 at 11:29:22 AM UTC-7, Bulat Shamsutdinov wrote:
>>
>> Hello everyone!
>>
>> I'm an experienced developer but newbie in web. I chose to learn Elm in 
>> order to avoid all the complexity with JS and it's ecosystem (learned JS 
>> and Node on a decent level and feel like I don't want to touch it ever 
>> again without a great need).
>>
>> Is there something as good for the back-end? It would be great to use 
>> something opinionated, light, simple and functional maybe. 
>>
>> I learned myself some Golang and it is ok, I learned Node and it is not 
>> ok. Are there any "Elm-way" options (maybe not with the language itself but 
>> with the same philosophy)?
>>
>> If there was no one to ask I would go with Golang, but there is)
>>
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] Backend to use with Elm

2016-10-04 Thread Bulat Shamsutdinov
Hello everyone!

I'm an experienced developer but newbie in web. I chose to learn Elm in 
order to avoid all the complexity with JS and it's ecosystem (learned JS 
and Node on a decent level and feel like I don't want to touch it ever 
again without a great need).

Is there something as good for the back-end? It would be great to use 
something opinionated, light, simple and functional maybe. 

I learned myself some Golang and it is ok, I learned Node and it is not ok. 
Are there any "Elm-way" options (maybe not with the language itself but 
with the same philosophy)?

If there was no one to ask I would go with Golang, but there is)

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.